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

:root {
  --bg: #F9F9F6;
  --bg-warm: #FAFAFA;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --text-light: #9A9A9A;
  --accent: #B8A88A;
  --accent-warm: #C4B59A;
  --line: rgba(26, 26, 26, 0.1);
  --line-accent: rgba(184, 168, 138, 0.45);
  --font-serif: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-sans: 'Geist Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --block-gap: clamp(72px, 8vw, 120px);
  --section-pad: 0;
  --content-max: 1280px;
  --side-pad: clamp(20px, 5vw, 64px);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.hero-title,
.section-title,
.hero-subtitle,
.compare-intro,
.about-step-label,
.expertise-card h3,
.project-name,
.pricing-title,
.brief-question {
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
}

p, li {
  text-wrap: pretty;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10001;
  padding: 12px 20px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: top 0.2s var(--ease);
}

.skip-link:focus-visible {
  top: 16px;
}

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

:focus:not(:focus-visible) {
  outline: none;
}

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px var(--side-pad);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.header.scrolled {
  padding: 14px var(--side-pad);
  background: rgba(10, 10, 15, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.nav {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  transition: color 0.3s var(--ease), text-shadow 0.3s var(--ease);
}

.nav-logo:hover {
  color: var(--accent);
  text-shadow: 0 0 16px rgba(184, 168, 138, 0.4);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.3s var(--ease);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a:hover::after {
  width: 100%;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 3px 6px;
  border-radius: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.lang-switcher:hover {
  border-color: rgba(184, 168, 138, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 3px 8px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  border-radius: 0;
  transition: all 0.25s var(--ease);
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.active {
  color: #1a1a1a;
  background: var(--accent);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(184, 168, 138, 0.35);
}

.lang-divider {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.25);
  user-select: none;
}

/* Currency Switcher Dropdown */
.currency-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.currency-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 4px 10px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #ffffff;
  cursor: pointer;
  border-radius: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s var(--ease);
}

.currency-btn:hover,
.currency-btn[aria-expanded="true"] {
  border-color: rgba(184, 168, 138, 0.55);
  background: rgba(255, 255, 255, 0.14);
}

.currency-current-flag {
  font-size: 0.9rem;
  line-height: 1;
}

.currency-arrow {
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.25s var(--ease);
}

.currency-btn[aria-expanded="true"] .currency-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.currency-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 170px;
  background: rgba(22, 22, 22, 0.96);
  border: 1px solid rgba(184, 168, 138, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  list-style: none;
  padding: 4px 0;
  z-index: 1000;
  animation: fadeInDown 0.2s var(--ease);
}

.currency-dropdown[hidden] {
  display: none !important;
}

.currency-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.currency-option strong {
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.currency-option .curr-sym {
  margin-left: auto;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 0.88rem;
}

.currency-option:hover {
  background: rgba(184, 168, 138, 0.16);
  color: #ffffff;
}

.currency-option.active {
  background: rgba(184, 168, 138, 0.22);
  color: var(--accent);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #ffffff;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background-color 0.3s var(--ease);
}

main {
  display: flex;
  flex-direction: column;
  gap: var(--block-gap);
}

/* Fullscreen 16:9 Video Background Hero */
.hero--fullscreen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  background: #000;
}

.hero-bg-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-bg-video.fade-out {
  opacity: 0.3;
  transform: scale(1.02);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.72) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 2;
}

.hero-inner-full {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(120px, 14vh, 160px) var(--side-pad) clamp(40px, 6vh, 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
}

.hero-content-full {
  max-width: 680px;
}

.hero-metrics-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.metric-pill {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-pill::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 280deg,
    rgba(184, 168, 138, 0.1) 310deg,
    rgba(184, 168, 138, 0.6) 338deg,
    rgba(255, 250, 240, 0.95) 352deg,
    rgba(184, 168, 138, 0.6) 360deg
  );
  animation: border-beam-spin 6.5s linear infinite;
  z-index: 0;
  pointer-events: none;
}

.metric-pill::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: rgba(18, 18, 24, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1;
  pointer-events: none;
}

.metric-pill > * {
  position: relative;
  z-index: 2;
}

.metric-pill:nth-child(2)::before {
  animation-delay: -2.15s;
}

.metric-pill:nth-child(3)::before {
  animation-delay: -4.3s;
}

.metric-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.pill-icon {
  font-size: 1.2rem;
}

.pill-info {
  display: flex;
  flex-direction: column;
}

.pill-info strong {
  font-size: 0.88rem;
  color: #fff;
}

.pill-info small {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Location Bar (Bottom Right Overlay) */
.hero-loc-bar {
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.hero-loc-bar-title {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.hero-loc-bar-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero-loc-bar-btn {
  background: rgba(18, 18, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 18px;
  font-size: 0.8rem;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.hero-loc-bar-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.hero-loc-bar-btn.active {
  background: var(--accent);
  color: #1a1a1a;
  border-color: var(--accent);
  font-weight: 600;
  box-shadow: 0 0 20px rgba(230, 195, 120, 0.4);
}

@media (max-width: 768px) {
  .hero-inner-full {
    padding-top: 100px;
    padding-bottom: 40px;
    padding-left: 16px;
    padding-right: 16px;
    align-items: center;
    width: 100%;
    max-width: 100%;
  }

  .hero-content-full {
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .hero-eyebrow,
  .hero-title,
  .hero-subtitle {
    text-align: center;
  }

  .hero-eyebrow {
    font-size: clamp(0.68rem, 2.5vw, 0.78rem);
    letter-spacing: 0.12em;
    margin-bottom: 14px;
  }

  .hero-title {
    font-size: clamp(1.7rem, 6.2vw, 2.35rem);
    line-height: 1.18;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .hero-subtitle {
    font-size: clamp(0.88rem, 3.2vw, 1.02rem);
    line-height: 1.6;
    margin-left: auto;
    margin-right: auto;
    max-width: 520px;
    margin-bottom: 24px;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    text-align: center;
    padding: 14px 20px;
  }

  /* Hide metric pills on mobile */
  .hero-metrics-bar {
    display: none !important;
  }

  /* Shift video background for mobile hero section */
  .hero-bg-video {
    object-position: 83% 25% !important;
  }

  .hero-bg-overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.5) 45%,
      rgba(0, 0, 0, 0.86) 100%
    );
  }

  .hero-loc-bar {
    align-self: center;
    align-items: center;
    width: 100%;
  }

  .hero-loc-bar-title {
    text-align: center;
  }

  .hero-loc-bar-btns {
    justify-content: center;
    width: 100%;
  }
}

.badge-speed {
  top: 25%;
  left: -20px;
}

.badge-accuracy {
  top: 55%;
  left: 20px;
}

.badge-savings {
  bottom: 18%;
  right: 20px;
}

.hero-index {
  position: absolute;
  bottom: 32px;
  right: 32px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.35);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: min(680px, 58vw);
  margin-right: auto;
  padding: clamp(120px, 18vh, 200px) var(--side-pad) clamp(40px, 7vh, 72px);
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.75) 60%,
    transparent 100%
  );
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-actions .btn-primary {
  background: #fff;
  color: #1a1a1a;
  border-color: #fff;
}

.hero-actions .btn-primary:hover {
  background: transparent;
  color: #fff;
}

.hero-actions .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-actions .btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}

.btn-primary:hover {
  background: transparent;
  color: var(--text);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-accent);
}

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

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s var(--ease);
}

.hero-scroll:hover {
  color: #fff;
}

.hero-scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 0;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Sections */
.section {
  padding: var(--section-pad) var(--side-pad);
  max-width: calc(var(--content-max) + var(--side-pad) * 2);
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: clamp(48px, 8vw, 80px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.section-index {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-light);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* About */
.about-steps {
  list-style: none;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 52px);
  padding-left: clamp(0px, 2vw, 24px);
  border-left: 1px solid var(--line);
}

.about-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
  padding-left: clamp(20px, 4vw, 40px);
}

.about-step-num {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding-top: 6px;
}

.about-step-text {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-muted);
}

.about-step-label {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--text);
}

/* Expertise */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}

.expertise-card {
  position: relative;
  padding: 36px 32px 40px;
  overflow: hidden;
  isolation: isolate;
}

.expertise-card::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200%;
  height: 200%;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 300deg,
    rgba(184, 168, 138, 0.12) 320deg,
    rgba(184, 168, 138, 0.55) 340deg,
    rgba(220, 210, 190, 0.75) 350deg,
    rgba(184, 168, 138, 0.55) 360deg
  );
  animation: expertise-border-glow 7s linear infinite;
  z-index: 0;
}

.expertise-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-warm);
  border: 1px solid rgba(184, 168, 138, 0.22);
  z-index: 1;
  pointer-events: none;
}

.expertise-card:nth-child(2)::before {
  animation-delay: -2.3s;
}

.expertise-card:nth-child(3)::before {
  animation-delay: -4.6s;
}

.expertise-rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.expertise-card > *:not(.expertise-rain) {
  position: relative;
  z-index: 3;
}

@keyframes expertise-border-glow {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.expertise-num {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 20px;
}

.expertise-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.expertise-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Projects */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 12vw, 140px);
}

.project {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.project--reverse {
  direction: rtl;
}

.project--reverse > * {
  direction: ltr;
}

.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-warm);
}

.project--dark .project-media {
  background: #0a0a0f;
}

/* Slideshow */
.slideshow {
  position: absolute;
  inset: 0;
}

.slideshow-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slideshow-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s var(--ease-out), visibility 0.55s;
}

.slideshow-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slideshow-slide img,
.slideshow-slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.slideshow-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(26, 26, 26, 0.28);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition:
    background 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease);
  backdrop-filter: blur(6px);
}

.slideshow:hover .slideshow-btn {
  opacity: 0.85;
}

.slideshow-btn:hover {
  background: rgba(26, 26, 26, 0.82);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.slideshow-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.slideshow-btn--prev {
  left: 16px;
}

.slideshow-btn--next {
  right: 16px;
}

.slideshow-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 0;
}

.slideshow-dot {
  width: 14px;
  height: 3px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: #C8C8C8;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease-out);
}

.slideshow-dot:hover {
  background: #9A9A9A;
  transform: scale(1.2);
}

.slideshow-dot.active {
  background: var(--text);
  transform: scale(1.15);
}

.project-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.project-name {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 380px;
  margin-bottom: 24px;
}

.project-context {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
}

.project-context li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.project-context-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Footer */
.footer {
  margin-top: var(--block-gap);
  padding: 48px var(--side-pad) 60px;
  border-top: 1px solid var(--line);
  background: var(--bg-warm);
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
}

.footer-question {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 48px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 24px);
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 30px clamp(28px, 4vw, 48px);
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--accent);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.footer-btn:hover {
  background: rgba(184, 168, 138, 0.12);
  border-color: var(--text);
}

.footer-copy {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 9998;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 18, 24, 0.92);
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 0 !important;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.3s var(--ease),
    visibility 0.3s var(--ease),
    transform 0.3s var(--ease-out),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(184, 168, 138, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--accent);
  color: #121218;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(184, 168, 138, 0.4);
}

.back-to-top:active {
  transform: translateY(1px);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .expertise-card::before {
    animation: none;
    background: conic-gradient(
      from 0deg,
      rgba(184, 168, 138, 0.15) 0deg,
      rgba(184, 168, 138, 0.15) 360deg
    );
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-scroll-dot {
    animation: none;
  }
}

/* Mobile */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 101;
  }

  .nav-toggle.active span:first-child {
    transform: rotate(45deg) translate(2px, 2px);
  }

  .nav-toggle.active span:last-child {
    transform: rotate(-45deg) translate(2px, -2px);
  }

  .hero-portrait-wrap {
    justify-content: center;
    padding-right: 0;
  }

  .hero-portrait {
    justify-content: center;
  }

  .hero-portrait-color {
    max-width: 100%;
    max-height: 100dvh;
    object-position: center;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
    padding-top: clamp(100px, 14vh, 140px);
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.6) 50%,
      transparent 100%
    );
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-scroll {
    justify-content: center;
  }

  .hero-index {
    right: 24px;
    bottom: 24px;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .expertise-card {
    padding: 32px 24px;
  }

  .project,
  .project--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 24px;
  }

  .project-media {
    aspect-ratio: 3 / 4;
  }

  .project-desc,
  .project-context {
    max-width: none;
  }

}

@media (max-width: 480px) {
  .footer-links {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .footer-btn {
    width: 100%;
  }

  .slideshow-btn {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  .slideshow-btn--prev {
    left: 10px;
  }

  .slideshow-btn--next {
    right: 10px;
  }

  .brief-options {
    grid-template-columns: 1fr;
  }

  .brief-fields {
    grid-template-columns: 1fr;
  }
}

/* Form fields */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-accent);
  background: var(--bg-warm);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text);
  transition: border-color 0.3s var(--ease);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 80px;
}

/* Brief */
.brief-inner {
  max-width: 640px;
  margin: 0 auto;
}

.brief-intro {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  text-align: center;
}

.brief-progress {
  margin-bottom: 36px;
}

.brief-progress-bar {
  height: 2px;
  background: var(--line);
  margin-bottom: 12px;
}

.brief-progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.5s var(--ease-out);
}

.brief-progress-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
}

.brief-question {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 500;
  margin-bottom: 24px;
  text-align: center;
}

.brief-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.brief-option {
  padding: 18px 16px;
  border: 1px solid var(--line-accent);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.brief-option:hover {
  border-color: var(--accent);
}

.brief-option--selected {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.brief-form-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.brief-summary {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--bg-warm);
}

.brief-summary li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.88rem;
}

.brief-summary-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.brief-estimate {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 24px;
}

.brief-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.field--full {
  grid-column: 1 / -1;
}

.brief-error {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #8b3a3a;
  padding: 12px 16px;
  border: 1px solid rgba(139, 58, 58, 0.25);
  background: rgba(139, 58, 58, 0.06);
}

.brief-success {
  text-align: center;
  padding: 32px 0;
}

.brief-success-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.brief-success-text {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 8px;
}

.brief-success-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.brief-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.brief-nav[hidden],
[hidden] {
  display: none !important;
}

.brief-nav .btn:only-child,
.brief-nav .btn:last-child:not(:first-child) {
  margin-left: auto;
}

/* Brief File Upload Dropzone */
.brief-upload-dropzone {
  position: relative;
  border: 1px dashed var(--line-accent);
  background: var(--bg-warm);
  padding: 16px 20px;
  border-radius: 0;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.brief-upload-dropzone.is-dragover {
  border-color: var(--accent);
  background: rgba(184, 168, 138, 0.08);
}

.brief-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.brief-upload-label {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.brief-upload-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: rgba(184, 168, 138, 0.12);
  color: var(--accent);
  flex-shrink: 0;
}

.brief-upload-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brief-upload-text strong {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

.brief-upload-text small {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.brief-preview-box {
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 3;
  position: relative;
}

.brief-preview-box[hidden] {
  display: none !important;
}

.brief-preview-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--line-accent);
}

.brief-preview-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
}

.brief-preview-name {
  font-size: 0.85rem;
  color: var(--text);
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brief-preview-remove {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-muted);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.2s var(--ease);
}

.brief-preview-remove:hover {
  border-color: #e06c75;
  color: #e06c75;
}

/* Before / After Slider Component */
.compare-intro {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.compare-tabs-wrap {
  display: flex;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto 20px;
}

.compare-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  background: var(--bg-warm);
  border: 1px solid var(--line-accent);
  border-radius: 0;
}

.compare-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.25s var(--ease);
}

.compare-tab:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
}

.compare-tab.active {
  color: #fff;
  background: var(--text);
  border-color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.compare-tab-tag {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 0;
  background: rgba(184, 168, 138, 0.2);
  color: var(--accent);
  font-weight: 600;
}

.compare-tab.active .compare-tab-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.compare-slider-wrapper {
  position: relative;
  width: 100%;
}

.before-after-container {
  --ba-pos: 50%;
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line-accent);
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
  border-radius: 0;
  outline: none;
  transition: max-width 0.35s var(--ease), aspect-ratio 0.35s var(--ease);
}

.before-after-container.case-dress,
.before-after-container.case-perfume {
  max-width: 440px;
  aspect-ratio: 9 / 16;
  max-height: 700px;
}

.before-after-container.case-shoes,
.before-after-container.case-tshirt {
  max-width: 980px;
  aspect-ratio: 16 / 9;
  max-height: 560px;
}

@media (max-width: 768px) {
  .before-after-container.case-dress,
  .before-after-container.case-perfume {
    max-width: 360px;
    aspect-ratio: 9 / 16;
    max-height: 640px;
  }
  .before-after-container.case-shoes,
  .before-after-container.case-tshirt {
    max-width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 480px;
  }
}

.before-after-container:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ba-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ba-after {
  z-index: 1;
  background: #ffffff;
}

.ba-before {
  z-index: 2;
  background: #ffffff;
  clip-path: inset(0 calc(100% - var(--ba-pos, 50%)) 0 0);
  will-change: clip-path;
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.case-dress .ba-before .ba-img,
.case-perfume .ba-before .ba-img,
.case-shoes .ba-before .ba-img,
.case-tshirt .ba-before .ba-img {
  object-fit: contain;
  background-color: #ffffff;
}

.case-shoes .ba-before .ba-img {
  background-color: #f3f3f3;
}

.ba-badge {
  position: absolute;
  top: 16px;
  z-index: 10;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: opacity 0.25s var(--ease);
}

.ba-badge-after {
  right: 16px;
  background: rgba(18, 18, 22, 0.85);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.ba-badge-before {
  left: 16px;
  background: rgba(18, 18, 22, 0.85);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos, 50%);
  z-index: 5;
  transform: translateX(-50%);
  pointer-events: none;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: left;
}

.ba-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(184, 168, 138, 0.7);
}

.ba-handle-button {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 0;
  background: #18181c;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 12px rgba(184, 168, 138, 0.4);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.before-after-container:hover .ba-handle-button {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.8), 0 0 16px rgba(184, 168, 138, 0.6);
}

.ba-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.75);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.ba-hint.is-hidden {
  opacity: 0;
  visibility: hidden;
}

/* Proof Points / Details Card */
.compare-meta-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  max-width: 1000px;
  margin: 24px auto 0;
  padding: 28px 32px;
  background: transparent;
  border: 1px solid var(--line-accent);
  border-radius: 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.compare-meta-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 280deg,
    rgba(184, 168, 138, 0.08) 310deg,
    rgba(184, 168, 138, 0.55) 338deg,
    rgba(245, 238, 222, 0.95) 352deg,
    rgba(184, 168, 138, 0.55) 360deg
  );
  animation: border-beam-spin 8s linear infinite;
  z-index: 0;
  pointer-events: none;
}

.compare-meta-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-warm);
  z-index: 1;
  pointer-events: none;
}

.compare-meta-card > * {
  position: relative;
  z-index: 2;
}

.compare-meta-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(184, 168, 138, 0.12);
}

.compare-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.compare-meta-title-group {
  flex: 1;
}

.compare-meta-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: 600;
}

.compare-meta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--text);
  line-height: 1.35;
  margin: 0;
}

.compare-accuracy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(184, 168, 138, 0.15);
  border: 1px solid var(--accent);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-radius: 0;
}

.compare-accuracy-pill .accuracy-icon {
  color: var(--accent);
  font-size: 0.9rem;
}

.compare-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.compare-feature-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.compare-feature-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-feature-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.compare-feature-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  margin: 0;
}

.compare-feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 860px) {
  .compare-features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .compare-meta-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .compare-tabs-wrap {
    width: 100%;
    overflow: hidden;
  }
  .compare-tabs {
    width: 100%;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px;
    gap: 6px;
  }
  .compare-tabs::-webkit-scrollbar {
    display: none;
  }
  .compare-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    justify-content: center;
    padding: 9px 12px;
    font-size: 0.8rem;
    gap: 6px;
  }
  .compare-meta-card {
    padding: 20px;
  }
}

/* ROI Calculator Component */
.roi-container {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 40px;
  background: var(--bg-warm);
  border: 1px solid var(--line-accent);
  border-radius: 0;
}

.roi-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 290deg,
    rgba(184, 168, 138, 0.08) 315deg,
    rgba(184, 168, 138, 0.45) 340deg,
    rgba(245, 238, 222, 0.9) 352deg,
    rgba(184, 168, 138, 0.45) 360deg
  );
  animation: border-beam-spin 10s linear infinite;
  z-index: 0;
  pointer-events: none;
}

.roi-container::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-warm);
  z-index: 1;
  pointer-events: none;
}

.roi-container > * {
  position: relative;
  z-index: 2;
}

.roi-controls {
  margin-bottom: 40px;
}

.roi-label {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.roi-label span {
  color: var(--accent);
  font-weight: 700;
}

.roi-slider {
  width: 100%;
  accent-color: var(--accent);
  height: 6px;
  cursor: pointer;
  border-radius: 0;
}

.roi-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 40px;
}

.roi-box {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 28px;
  border: 1px solid var(--line-accent);
  background: transparent;
  border-radius: 0;
}

.roi-box::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 280deg,
    rgba(184, 168, 138, 0.08) 310deg,
    rgba(184, 168, 138, 0.5) 338deg,
    rgba(245, 238, 222, 0.95) 352deg,
    rgba(184, 168, 138, 0.5) 360deg
  );
  animation: border-beam-spin 7s linear infinite;
  z-index: 0;
  pointer-events: none;
}

.roi-box::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-warm);
  z-index: 1;
  pointer-events: none;
}

.roi-box > * {
  position: relative;
  z-index: 2;
}

.roi-box-old {
  opacity: 0.85;
}

.roi-box-old::after {
  background: #fdfdfc;
}

.roi-box-new {
  position: relative;
  border-color: var(--accent);
}

.roi-box-new::before {
  animation-delay: -3.5s;
}

.roi-box-new::after {
  background: #f7f3ec;
}

.roi-box h4 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.roi-price {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.roi-box-new .roi-price {
  color: var(--accent);
}

.roi-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.roi-details li {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.4;
}

.roi-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 4px;
  background: rgba(26, 26, 26, 0.05);
  border: 1px solid rgba(26, 26, 26, 0.1);
  color: var(--text-muted);
}

[data-theme="dark"] .roi-item-icon {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

.roi-box-new .roi-item-icon,
.roi-item-icon--accent {
  background: rgba(184, 168, 138, 0.12);
  border-color: rgba(184, 168, 138, 0.35);
  color: var(--accent);
}

[data-theme="dark"] .roi-box-new .roi-item-icon,
[data-theme="dark"] .roi-item-icon--accent {
  background: rgba(184, 168, 138, 0.15);
  border-color: rgba(184, 168, 138, 0.4);
  color: var(--accent);
}

.roi-item-icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

.roi-versus {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.roi-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent);
  color: #1a1a1a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 0;
  z-index: 5;
}

.roi-result {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.roi-result p {
  font-size: 1.2rem;
}

.roi-result strong {
  color: var(--accent);
}

/* Pricing Component */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 36px);
  align-items: stretch;
}

.pricing-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 40px 32px;
  background: transparent;
  border: 1px solid var(--line-accent);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 280deg,
    rgba(184, 168, 138, 0.08) 310deg,
    rgba(184, 168, 138, 0.55) 338deg,
    rgba(245, 238, 222, 0.95) 352deg,
    rgba(184, 168, 138, 0.55) 360deg
  );
  animation: border-beam-spin 7.5s linear infinite;
  z-index: 0;
  pointer-events: none;
}

.pricing-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-warm);
  z-index: 1;
  pointer-events: none;
}

.pricing-card > * {
  position: relative;
  z-index: 2;
}

.pricing-card:nth-child(1)::before {
  animation-delay: 0s;
}

.pricing-card:nth-child(2)::before {
  animation-delay: -2.5s;
}

.pricing-card:nth-child(3)::before {
  animation-delay: -5s;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(184, 168, 138, 0.16);
}

.pricing-card--popular {
  border-color: var(--accent);
  transform: translateY(-8px);
}

.pricing-card--popular::after {
  background: #f7f3ec;
}

.pricing-card--popular:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 48px rgba(184, 168, 138, 0.22);
}

.pricing-popular-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent);
  color: #1a1a1a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 0;
  white-space: nowrap;
  z-index: 5;
}

.pricing-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.pricing-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  min-height: 44px;
}

.pricing-price {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
}

.pricing-price span {
  font-size: 0.85rem;
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.pricing-btn {
  width: 100%;
  text-align: center;
  border-radius: 0;
}

/* New Sections: Trust, Services, Masters, Reviews, and Interactive Brief Components */

.section-intro-text {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 760px;
  margin-bottom: 36px;
  line-height: 1.7;
}

/* Trust Component */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

.trust-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 36px 28px;
  background: transparent;
  border: 1px solid var(--line-accent);
  border-radius: 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.trust-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 280deg,
    rgba(184, 168, 138, 0.08) 310deg,
    rgba(184, 168, 138, 0.55) 338deg,
    rgba(245, 238, 222, 0.95) 352deg,
    rgba(184, 168, 138, 0.55) 360deg
  );
  animation: border-beam-spin 7s linear infinite;
  z-index: 0;
  pointer-events: none;
}

.trust-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-warm);
  z-index: 1;
  pointer-events: none;
}

.trust-card > * {
  position: relative;
  z-index: 2;
}

.trust-card:nth-child(1)::before {
  animation-delay: 0s;
}

.trust-card:nth-child(2)::before {
  animation-delay: -2.33s;
}

.trust-card:nth-child(3)::before {
  animation-delay: -4.66s;
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(184, 168, 138, 0.14);
}

.trust-num {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 12px;
}

.trust-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.trust-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Services (Pain -> Solution -> Result) Component */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 36px);
  align-items: stretch;
}

.service-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 36px 30px;
  background: transparent;
  border: 1px solid var(--line-accent);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 280deg,
    rgba(184, 168, 138, 0.08) 310deg,
    rgba(184, 168, 138, 0.55) 338deg,
    rgba(245, 238, 222, 0.95) 352deg,
    rgba(184, 168, 138, 0.55) 360deg
  );
  animation: border-beam-spin 7.5s linear infinite;
  z-index: 0;
  pointer-events: none;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-warm);
  z-index: 1;
  pointer-events: none;
}

.service-card > * {
  position: relative;
  z-index: 2;
}

.service-card:nth-child(1)::before {
  animation-delay: 0s;
}

.service-card:nth-child(2)::before {
  animation-delay: -2.5s;
}

.service-card:nth-child(3)::before {
  animation-delay: -5s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(184, 168, 138, 0.14);
}

.service-card--popular {
  border-color: var(--accent);
  transform: translateY(-6px);
}

.service-card--popular::after {
  background: #f7f3ec;
}

.service-card--popular:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 44px rgba(184, 168, 138, 0.2);
}

.popular-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent);
  color: #1a1a1a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 0;
  white-space: nowrap;
  z-index: 5;
}

.service-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.service-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 22px;
  line-height: 1.35;
  min-height: 3.4rem;
  display: flex;
  align-items: center;
}

.service-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
  flex-grow: 1;
}

.service-point {
  padding: 12px 14px;
  border-radius: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.service-pain {
  background: rgba(139, 58, 58, 0.05);
  border-left: 3px solid #b85d5d;
  color: var(--text-muted);
}

.service-solution {
  background: rgba(184, 168, 138, 0.08);
  border-left: 3px solid var(--accent);
  color: var(--text);
}

.service-result {
  background: rgba(72, 140, 100, 0.06);
  border-left: 3px solid #488c64;
  color: var(--text);
}

.point-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 0;
  margin-bottom: 4px;
}

.point-badge--pain { background: rgba(184, 93, 93, 0.15); color: #9c3f3f; }
.point-badge--solution { background: rgba(184, 168, 138, 0.2); color: #8a7352; }
.point-badge--result { background: rgba(72, 140, 100, 0.15); color: #2e6e48; }

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  gap: 12px;
}

.service-price strong {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text);
  display: block;
}

.service-price small {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.82rem;
  border-radius: 0;
}

/* Masters / Experts Component */
.masters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 36px);
}

.master-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 32px 26px;
  background: transparent;
  border: 1px solid var(--line-accent);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.master-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 280deg,
    rgba(184, 168, 138, 0.08) 310deg,
    rgba(184, 168, 138, 0.55) 338deg,
    rgba(245, 238, 222, 0.95) 352deg,
    rgba(184, 168, 138, 0.55) 360deg
  );
  animation: border-beam-spin 8s linear infinite;
  z-index: 0;
  pointer-events: none;
}

.master-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-warm);
  z-index: 1;
  pointer-events: none;
}

.master-card > * {
  position: relative;
  z-index: 2;
}

.master-card:nth-child(1)::before {
  animation-delay: 0s;
}

.master-card:nth-child(2)::before {
  animation-delay: -2.66s;
}

.master-card:nth-child(3)::before {
  animation-delay: -5.33s;
}

.master-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(184, 168, 138, 0.14);
}

.master-avatar-wrap {
  width: 72px;
  height: 72px;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1.5px solid var(--accent);
  background: rgba(184, 168, 138, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.master-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.master-avatar--placeholder {
  background: linear-gradient(135deg, rgba(184, 168, 138, 0.25) 0%, rgba(26, 26, 26, 0.1) 100%);
}

.master-initials {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
}

.master-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: rgba(184, 168, 138, 0.16);
  color: var(--accent);
  border-radius: 0;
  margin-bottom: 12px;
}

.master-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.master-role {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.master-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Reviews (Yandex Maps Style) Component */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 32px);
}

.review-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 32px 28px;
  background: transparent;
  border: 1px solid var(--line-accent);
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.review-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 280deg,
    rgba(184, 168, 138, 0.08) 310deg,
    rgba(184, 168, 138, 0.55) 338deg,
    rgba(245, 238, 222, 0.95) 352deg,
    rgba(184, 168, 138, 0.55) 360deg
  );
  animation: border-beam-spin 8s linear infinite;
  z-index: 0;
  pointer-events: none;
}

.review-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: #ffffff;
  z-index: 1;
  pointer-events: none;
}

.review-card > * {
  position: relative;
  z-index: 2;
}

.review-card:nth-child(1)::before {
  animation-delay: 0s;
}

.review-card:nth-child(2)::before {
  animation-delay: -2.66s;
}

.review-card:nth-child(3)::before {
  animation-delay: -5.33s;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(184, 168, 138, 0.16);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 8px;
  flex-wrap: wrap;
}

.review-stars {
  color: #f5a623;
  font-size: 1.15rem;
  letter-spacing: 2px;
}

.review-verified {
  font-size: 0.7rem;
  font-weight: 600;
  color: #2e7d32;
  background: rgba(46, 125, 50, 0.08);
  padding: 3px 8px;
  border-radius: 0;
}

.review-text {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 24px;
  font-style: normal;
}

.review-author-box {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.review-author-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.review-author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}

/* Interactive Brief Option Cards & Live Estimate Banner */
.brief-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.brief-card-option {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 22px 20px;
  background: transparent;
  border: 1px solid var(--line-accent);
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 6px;
  user-select: none;
}

.brief-card-option::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 280deg,
    rgba(184, 168, 138, 0.08) 310deg,
    rgba(184, 168, 138, 0.5) 338deg,
    rgba(245, 238, 222, 0.9) 352deg,
    rgba(184, 168, 138, 0.5) 360deg
  );
  animation: border-beam-spin 7s linear infinite;
  z-index: 0;
  pointer-events: none;
}

.brief-card-option::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-warm);
  z-index: 1;
  pointer-events: none;
}

.brief-card-option > * {
  position: relative;
  z-index: 2;
}

.brief-card-option:nth-child(2)::before { animation-delay: -1.75s; }
.brief-card-option:nth-child(3)::before { animation-delay: -3.5s; }
.brief-card-option:nth-child(4)::before { animation-delay: -5.25s; }

.brief-card-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 168, 138, 0.12);
}

.brief-card-option--selected {
  border-color: var(--accent);
}

.brief-card-option--selected::after {
  background: #f3eee5;
}

.brief-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.brief-card-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.brief-estimate-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 20px 24px;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 0;
  margin-bottom: 24px;
}

.brief-estimate-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 280deg,
    rgba(184, 168, 138, 0.15) 310deg,
    rgba(184, 168, 138, 0.65) 338deg,
    rgba(245, 238, 222, 0.98) 352deg,
    rgba(184, 168, 138, 0.65) 360deg
  );
  animation: border-beam-spin 6.5s linear infinite;
  z-index: 0;
  pointer-events: none;
}

.brief-estimate-banner::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: #f6f2eb;
  z-index: 1;
  pointer-events: none;
}

.brief-estimate-banner > * {
  position: relative;
  z-index: 2;
}

.brief-estimate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.brief-estimate-val--price {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
}

.brief-estimate-val--time {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.brief-estimate-included {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.btn-block {
  width: 100%;
  text-align: center;
  display: block;
  border-radius: 0;
}

/* Universal Keyframes for Border Beam Spin */
@keyframes border-beam-spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ==========================================================================
   Tablets Responsive Adaptation (769px - 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  :root {
    --side-pad: clamp(16px, 3.5vw, 32px);
    --block-gap: clamp(56px, 7vw, 88px);
  }

  .section {
    padding: 0 var(--side-pad);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .masters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .compare-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ==========================================================================
   Standard Tablets & Mobile Landscape Adaptation (<= 900px)
   ========================================================================== */
@media (max-width: 900px) {
  :root {
    --side-pad: 20px;
    --block-gap: 56px;
  }

  .section {
    padding: 0 var(--side-pad);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .section-head {
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 18px;
  }

  .section-title {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    line-height: 1.25;
    overflow-wrap: break-word;
  }

  .section-intro-text {
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 100%;
    margin-bottom: 28px;
  }

  .hero-bg-video {
    object-position: 83% 25% !important;
  }

  /* 1-column layouts for all card grids */
  .trust-grid,
  .services-grid,
  .masters-grid,
  .reviews-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
  }

  .trust-card,
  .service-card,
  .master-card,
  .review-card,
  .pricing-card {
    width: 100%;
    max-width: 100%;
    padding: 28px 22px;
    box-sizing: border-box;
  }

  .service-card--popular,
  .pricing-card--popular {
    transform: none;
  }

  /* Compare section */
  .compare-tabs-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 18px;
  }

  .compare-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 6px;
    box-sizing: border-box;
  }

  .compare-tab {
    flex: 1 1 calc(50% - 8px);
    min-width: 130px;
    padding: 10px 8px;
    font-size: 0.78rem;
    justify-content: center;
    text-align: center;
  }

  .compare-meta-card {
    width: 100%;
    max-width: 100%;
    padding: 20px 16px;
    box-sizing: border-box;
  }

  .compare-features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .before-after-container.case-dress,
  .before-after-container.case-perfume {
    max-width: min(380px, 100%);
    aspect-ratio: 9 / 16;
    max-height: 580px;
  }

  .before-after-container.case-shoes,
  .before-after-container.case-tshirt {
    max-width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 420px;
  }

  /* ROI Calculator */
  .roi-container {
    padding: 28px 18px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .roi-comparison {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
  }

  .roi-versus {
    padding: 8px 0;
    font-size: 1.1rem;
  }

  .roi-box {
    padding: 22px 18px;
    width: 100%;
    box-sizing: border-box;
  }

  .roi-price {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }

  /* Projects */
  .projects-list {
    gap: 40px;
  }

  .project {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-media {
    aspect-ratio: 4 / 3;
    max-height: 380px;
    width: 100%;
  }

  .project-context,
  .project-desc {
    max-width: 100%;
    width: 100%;
  }

  /* Navigation Drawer */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 280px;
    max-width: 82vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
    flex-direction: column;
    padding: 90px 28px 40px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    z-index: 99;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(3.75px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    transform: translateY(-3.75px) rotate(-45deg);
  }
}

/* ==========================================================================
   Mobile Phones Adaptation (<= 640px)
   ========================================================================== */
@media (max-width: 640px) {
  :root {
    --side-pad: 16px;
    --block-gap: 48px;
  }

  .section {
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .section-head {
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
  }

  .section-title {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    line-height: 1.25;
  }

  .section-index {
    font-size: 0.7rem;
  }

  .section-intro-text {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 22px;
  }

  /* Hero Section */
  .hero-inner-full {
    padding: 96px 16px 36px;
  }

  .hero-title {
    font-size: clamp(1.65rem, 6.4vw, 2.25rem);
    line-height: 1.18;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.58;
  }

  /* Brief Options Grid */
  .brief-options-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }

  .brief-card-option {
    width: 100%;
    padding: 14px;
    box-sizing: border-box;
  }

  .field-row {
    flex-direction: column;
    gap: 12px;
  }

  .brief-form-actions {
    flex-direction: column;
    gap: 12px;
  }

  .brief-form-actions .btn {
    width: 100%;
  }

  /* Back to Top */
  .back-to-top {
    right: 14px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    z-index: 9998;
  }

  /* Footer */
  .footer-inner {
    padding: 36px 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-links {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .footer-btn {
    width: 100%;
    padding: 20px 24px;
  }

  .footer-legal {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .footer-legal-dot {
    display: none;
  }
}

/* ==========================================================================
   BYN Graphic Symbol (Official Belarusian Ruble glyph)
   ========================================================================== */
.byn-sym {
  width: 0.88em;
  height: 0.88em;
  display: inline-block;
  vertical-align: -0.1em;
  fill: currentColor;
}

/* ==========================================================================
   AI Assistant Floating Widget (Fixed Right-Side Tab & Glass Chat Window)
   ========================================================================== */
.ai-widget {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 9999;
  font-family: var(--font-sans);
  pointer-events: none;
}

/* Vertical Tab Trigger (Fixed to right screen edge) */
.ai-widget-trigger {
  pointer-events: auto;
  position: relative;
  width: 42px;
  min-height: 240px;
  background: rgba(18, 18, 24, 0.95);
  border: 1.5px solid var(--accent);
  border-right: none;
  border-radius: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 0 16px;
  gap: 14px;
  color: #ffffff;
  cursor: pointer;
  box-shadow: -8px 8px 24px rgba(0, 0, 0, 0.45), -2px 0 16px rgba(184, 168, 138, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
}

.ai-widget-trigger:hover {
  transform: translateX(-5px);
  background: rgba(26, 26, 36, 0.98);
  border-color: var(--accent-warm);
  box-shadow: -12px 10px 30px rgba(0, 0, 0, 0.6), -4px 0 24px rgba(184, 168, 138, 0.35);
}

.ai-widget-trigger:active {
  transform: translateX(-2px);
}

.ai-widget.is-open .ai-widget-trigger {
  border-color: var(--accent-warm);
  background: rgba(28, 28, 38, 0.98);
  transform: translateX(-4px);
}

/* Corner Accent (Straight angles / geometric 45-deg wedge) */
.ai-tab-corner {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  background: #22c55e;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
  pointer-events: none;
}

/* Tab Header (Status dot & AI sparkle) */
.ai-tab-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
}

.ai-tab-status-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  border-radius: 0 !important;
  animation: ai-tab-pulse 2s infinite ease-in-out;
}

@keyframes ai-tab-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.ai-tab-sparkle {
  color: var(--accent);
  display: block;
}

/* Vertical Text Label */
.ai-tab-label {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

.ai-tab-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #ffffff;
  white-space: nowrap;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Chat Window */
.ai-chat-window {
  pointer-events: auto;
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  width: min(400px, calc(100vw - 70px));
  height: 560px;
  max-height: min(560px, calc(100vh - 40px));
  background: rgba(18, 18, 24, 0.97);
  border: 1.5px solid rgba(184, 168, 138, 0.4);
  border-radius: 0 !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(184, 168, 138, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: aiChatSlideLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10000;
}

.ai-chat-window[hidden] {
  display: none !important;
}

@keyframes aiChatSlideLeft {
  from { opacity: 0; transform: translateY(-50%) translateX(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(-50%) translateX(0) scale(1); }
}

/* Header */
.ai-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(26, 26, 34, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-chat-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(184, 168, 138, 0.25), rgba(184, 168, 138, 0.05));
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
}

.ai-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border: 1.5px solid #181820;
  border-radius: 0 !important;
}

.ai-chat-header-info {
  flex-grow: 1;
}

.ai-chat-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-chat-badge {
  font-size: 0.6rem;
  background: var(--accent);
  color: #121218;
  padding: 1px 5px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.ai-chat-status {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
}

.ai-chat-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.ai-chat-close:hover {
  color: #ffffff;
  transform: scale(1.15);
}

/* Chat Body */
.ai-chat-body {
  flex-grow: 1;
  padding: 18px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(184, 168, 138, 0.3) transparent;
}

.ai-chat-body::-webkit-scrollbar {
  width: 4px;
}
.ai-chat-body::-webkit-scrollbar-thumb {
  background: rgba(184, 168, 138, 0.3);
}

/* Messages */
.ai-msg {
  display: flex;
  flex-direction: column;
  max-width: 86%;
  animation: aiMsgFadeIn 0.25s var(--ease);
}

@keyframes aiMsgFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-msg--bot {
  align-self: flex-start;
}

.ai-msg--user {
  align-self: flex-end;
}

.ai-msg-bubble {
  padding: 12px 14px;
  font-size: 0.82rem;
  line-height: 1.5;
  word-break: break-word;
}

.ai-msg--bot .ai-msg-bubble {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  border-left: 2px solid var(--accent);
}

.ai-msg--bot .ai-msg-bubble strong {
  color: #ffffff;
}

.ai-bullet {
  margin: 4px 0;
  padding-left: 6px;
  color: rgba(255, 255, 255, 0.85);
}

.ai-tg-link {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}

.ai-chat-link {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}

.ai-chat-btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
  padding: 6px 12px;
  background: rgba(184, 168, 138, 0.16);
  border: 1px solid var(--accent);
  border-radius: 0 !important;
  color: var(--accent);
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.ai-chat-btn-link:hover {
  background: var(--accent);
  color: #121218 !important;
  box-shadow: 0 0 12px rgba(184, 168, 138, 0.4);
  transform: translateY(-1px);
}

.ai-msg--user .ai-msg-bubble {
  background: rgba(184, 168, 138, 0.2);
  border: 1px solid rgba(184, 168, 138, 0.4);
  color: #ffffff;
}

/* Typing Dots Animation */
.ai-typing-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
}

.ai-typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 0 !important;
  opacity: 0.4;
  animation: aiTypingBounce 1.2s infinite ease-in-out both;
}

.ai-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.ai-typing-dots span:nth-child(2) { animation-delay: -0.16s; }
.ai-typing-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes aiTypingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
  40% { transform: scale(1.1); opacity: 1; }
}

/* Quick Prompts */
.ai-quick-prompts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.ai-prompt-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(184, 168, 138, 0.25);
  padding: 8px 12px;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.ai-prompt-btn:hover {
  background: rgba(184, 168, 138, 0.16);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateX(3px);
}

/* Input Form */
.ai-chat-form {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(14, 14, 18, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-chat-action-btn {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s var(--ease);
}

.ai-chat-action-btn:hover {
  background: rgba(184, 168, 138, 0.15);
  border-color: var(--accent);
}

.ai-chat-voice-btn.recording {
  background: #e74c3c;
  border-color: #e74c3c;
  color: #fff;
  animation: pulse-voice 1.2s infinite;
}

@keyframes pulse-voice {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.8; }
}

.ai-chat-preview-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(26, 26, 36, 0.95);
  border-top: 1px solid rgba(184, 168, 138, 0.2);
}

.ai-chat-preview-box img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border: 1px solid var(--accent);
}

.ai-chat-preview-name {
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-chat-remove-preview {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  padding: 0 4px;
}

.ai-chat-remove-preview:hover {
  color: var(--accent);
}

.ai-msg-photo-thumb {
  max-width: 160px;
  max-height: 120px;
  object-fit: cover;
  margin-bottom: 6px;
  display: block;
  border: 1px solid var(--accent);
}

.ai-chat-input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #ffffff;
  outline: none;
  min-width: 0;
  transition: border-color 0.2s var(--ease);
}

.ai-chat-input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.09);
}

.ai-chat-send-btn {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #121218;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.ai-chat-send-btn:hover {
  background: #c8b998;
  transform: scale(1.06);
}

/* Mobile Adjustments for Chat Widget and Back-to-Top */
@media (max-width: 991px) {
  .back-to-top {
    right: 14px !important;
    bottom: 16px !important;
    width: 42px !important;
    height: 42px !important;
    border: 1.5px solid var(--accent) !important;
    border-radius: 0 !important;
    z-index: 9998 !important;
  }

  .ai-widget {
    position: fixed !important;
    top: auto !important;
    bottom: 66px !important;
    right: 14px !important;
    left: auto !important;
    width: 42px !important;
    height: 42px !important;
    transform: none !important;
    z-index: 9999 !important;
    pointer-events: none !important;
  }

  .ai-widget-trigger {
    pointer-events: auto !important;
    position: relative !important;
    width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    background: rgba(18, 18, 24, 0.94) !important;
    border: 1.5px solid var(--accent) !important;
    border-radius: 0 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(184, 168, 138, 0.25) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    color: var(--accent) !important;
    transform: none !important;
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease) !important;
  }

  .ai-widget-trigger:hover,
  .ai-widget-trigger:active {
    transform: translateY(-2px) !important;
    background: rgba(28, 28, 38, 0.98) !important;
    border-color: var(--accent-warm) !important;
  }

  .ai-widget.is-open .ai-widget-trigger {
    display: none !important;
  }

  .ai-tab-corner {
    display: none !important;
  }

  .ai-tab-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .ai-tab-status-dot {
    width: 6px !important;
    height: 6px !important;
    background: #22c55e !important;
    box-shadow: 0 0 6px #22c55e !important;
    border-radius: 0 !important;
    animation: ai-tab-pulse 2s infinite ease-in-out !important;
    display: inline-block !important;
  }

  .ai-tab-sparkle {
    width: 14px !important;
    height: 14px !important;
    color: var(--accent) !important;
    display: inline-block !important;
    fill: currentColor !important;
  }

  .ai-tab-label,
  .ai-tab-text {
    display: none !important;
  }

  .ai-chat-window {
    position: fixed !important;
    top: auto !important;
    bottom: 12px !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    height: min(540px, calc(100vh - 60px)) !important;
    max-height: calc(100vh - 60px) !important;
    transform: none !important;
    border-radius: 0 !important;
    border: 1.5px solid var(--accent) !important;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85) !important;
    animation: aiChatSlideUpMobile 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 10010 !important;
  }
}

@keyframes aiChatSlideUpMobile {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   Privacy Checkbox, Cookie Consent Banner & Legal Modal (Republic of Belarus Law No. 99-З)
   ========================================================================== */

/* Brief Privacy Checkbox */
.field-privacy {
  margin-top: 4px;
}

.brief-privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.brief-privacy-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.brief-privacy-custom-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1px solid var(--accent);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.brief-privacy-custom-check svg {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.brief-privacy-checkbox:checked + .brief-privacy-custom-check {
  background: var(--text);
  border-color: var(--text);
}

.brief-privacy-checkbox:checked + .brief-privacy-custom-check svg {
  opacity: 1;
  transform: scale(1);
}

.brief-privacy-checkbox:focus-visible + .brief-privacy-custom-check {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.brief-privacy-text {
  flex: 1;
}

.legal-trigger-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

.legal-trigger-link:hover {
  color: var(--accent);
  text-decoration-color: var(--text);
}

/* Footer Legal Links */
.footer-legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--text-light);
}

.footer-legal-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.footer-legal-link:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal-dot {
  color: var(--line-accent);
}

/* Cookie Banner (Republic of Belarus Law 99-З compliant) */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 10005;
  background: rgba(12, 12, 16, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
  padding: 16px 32px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
  pointer-events: none;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cookie-banner-content {
  flex: 1;
}

.cookie-banner-desc {
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

.cookie-inline-link {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.cookie-inline-link:hover {
  color: var(--accent);
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-cookie-accept,
.btn-cookie-decline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 24px;
  cursor: pointer;
  border-radius: 0;
  white-space: nowrap;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.btn-cookie-accept:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.btn-cookie-decline:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  color: #e0e0e0;
}

/* Legal Modal */
body.modal-open {
  overflow: hidden;
}

.legal-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background: rgba(15, 15, 15, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
}

.legal-modal-backdrop.is-open {
  opacity: 1;
}

.legal-modal-container {
  width: 100%;
  max-width: 800px;
  max-height: 86vh;
  background: var(--bg);
  border: 1px solid var(--line-accent);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s var(--ease-out);
}

.legal-modal-backdrop.is-open .legal-modal-container {
  transform: translateY(0) scale(1);
}

.legal-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--line);
}

.legal-modal-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
}

.legal-modal-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

.legal-modal-close {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.legal-modal-close:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}

.legal-modal-tabs {
  display: flex;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-warm);
  overflow-x: auto;
  scrollbar-width: none;
}

.legal-modal-tabs::-webkit-scrollbar {
  display: none;
}

.legal-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 14px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.legal-tab-btn:hover {
  color: var(--text);
}

.legal-tab-btn.active {
  color: var(--text);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.legal-modal-body {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
}

.legal-content-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.legal-content-subtitle {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.legal-content-text h3 {
  font-size: 0.98rem;
  font-weight: 600;
  margin: 22px 0 8px;
  color: var(--text);
}

.legal-content-text p {
  margin-bottom: 12px;
  color: var(--text-muted);
}

.legal-content-text ul {
  padding-left: 22px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.legal-content-text li {
  margin-bottom: 6px;
}

.legal-content-text strong {
  color: var(--text);
}

.legal-content-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  background: var(--bg-warm);
}

.legal-modal-ok-btn {
  padding: 10px 24px;
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  .cookie-banner {
    padding: 14px 18px;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .cookie-banner-desc {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .cookie-banner-actions {
    display: flex;
    gap: 10px;
    width: 100%;
  }

  .cookie-banner-actions button {
    flex: 1;
    text-align: center;
    padding: 9px 14px;
    font-size: 0.74rem;
  }
}

@media (max-width: 600px) {
  .legal-modal-backdrop {
    padding: 12px;
  }
  .legal-modal-container {
    max-height: 92vh;
  }
  .legal-modal-header,
  .legal-modal-body,
  .legal-modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .legal-modal-tabs {
    padding-left: 16px;
    padding-right: 16px;
  }
  .legal-tab-btn {
    padding: 12px 10px;
    font-size: 0.76rem;
  }
}

/* ==========================================================================
   Google Form Brief Banner & Action Link
   ========================================================================== */
.brief-google-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px auto 28px;
  padding: 14px 18px;
  background: rgba(184, 168, 138, 0.08);
  border: 1px dashed rgba(184, 168, 138, 0.35);
  border-radius: 0;
  width: 100%;
  max-width: 680px;
  box-sizing: border-box;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.brief-google-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--accent);
  color: #121218 !important;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 0;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.brief-google-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(184, 168, 138, 0.35);
  filter: brightness(1.1);
}