/* Home page only: hero carousel, welcome, clients strip, product tiles, service cards, why-us cards. */

.hero { position: relative; min-height: 350px; overflow: hidden; color: #fff; display: flex; align-items: flex-end; }
.slide-bg { position: absolute; inset: 0; background:
  radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .42) 0 90px, transparent 91px),
  radial-gradient(circle at 34% 8%, rgba(255, 255, 255, .3) 0 70px, transparent 71px),
  radial-gradient(circle at 8% 70%, rgba(255, 255, 255, .22) 0 120px, transparent 121px),
  linear-gradient(120deg, #5a2fe0 0%, #8267f0 45%, #b5b0f3 100%); }
.molecule { position: absolute; right: 0; top: 0; width: 55%; height: 100%; opacity: .5; }
.molecule path, .molecule polygon { stroke: #2b2670; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.molecule text { fill: #2b2670; font: 500 44px var(--font); }
.caption-wrap { position: relative; width: 100%; padding: 0 max(16px, env(safe-area-inset-left, 0px)); }
.caption { position: relative; width: 100%; max-width: 1334px; margin: 0 auto; padding: 20px 26px 34px; background: rgba(40, 38, 60, .62); border-radius: 10px 10px 0 0; text-align: center; backdrop-filter: blur(2px); }
.caption h1 { font-size: 1.28rem; font-weight: 500; letter-spacing: .03em; margin-bottom: 8px; }
.caption p { font-size: 1rem; letter-spacing: .02em; min-height: 3.2em; }
.dots { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 6px; }
.dots button { width: 30px; height: 4px; padding: 0; border: 0; background: rgba(255, 255, 255, .45); cursor: pointer; }
.dots button[aria-current="true"] { background: #fff; }
.arrow { position: absolute; top: 40%; width: 44px; height: 44px; border: 0; background: none; color: #fff; font-size: 34px; cursor: pointer; opacity: .85; }
.arrow:hover { opacity: 1; }
.arrow.prev { left: max(8px, 4%); }
.arrow.next { right: max(8px, 4%); }

.welcome { padding-block: 56px 20px; }
.welcome p { margin-top: 18px; text-align: center; color: var(--muted); font-size: 1rem; line-height: 1.5rem; letter-spacing: .02em; }
section.block { padding-block: 56px; }

.clients { margin-top: 28px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; align-items: center; gap: 28px; width: max-content; padding-block: 12px; padding-right: 28px; animation: slide 50s linear infinite; }
.clients:hover .track { animation-play-state: paused; }
.client { display: flex; align-items: center; justify-content: center; flex: none; width: 200px; height: 116px; padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.client img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .track { animation: none; } .clients { overflow-x: auto; -webkit-mask-image: none; mask-image: none; } }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 30px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 154px; padding: 22px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); text-decoration: none; color: var(--heading); font-size: 1.1rem; letter-spacing: .03em; text-align: center; transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile svg { width: 60px; height: 60px; fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); padding: 22px 26px 26px; min-width: 0; }
.card h3 { color: var(--heading); font-size: 1.2rem; font-weight: 500; letter-spacing: .02em; margin-bottom: 8px; }
a.card { display: block; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.svc { text-align: center; }
.svc p { color: var(--muted); font-size: .98rem; line-height: 1.5rem; }
.svc-row2 { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 868px; margin-inline: auto; width: 100%; }
.why .card p { font-style: italic; color: var(--fg); font-size: 1rem; line-height: 1.5rem; }

@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .cards3 { grid-template-columns: 1fr; }
  .svc-row2 { grid-template-columns: 1fr; max-width: none; }
  .arrow { display: none; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .hero { min-height: 400px; }
  .caption { padding: 18px 16px 34px; }
  .molecule { width: 100%; opacity: .3; }
  section.block { padding-block: 44px; }
}
