/* Content pages: services, categories, articles, legal, contact, search. Builds on style.css + landing.css. */

address { font-style: normal; }
.nav > a[aria-current="page"] { background: var(--mint); color: var(--primary-dark); }
.nav > a.nav__doc { display: flex; align-items: center; gap: 8px; line-height: 1.1; padding: 4px 14px 5px 5px; }
.nav__doc-img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: center 15%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--mint-strong); flex-shrink: 0; }
.nav__doc-text { display: flex; flex-direction: column; align-items: flex-start; }
.nav__doc small { font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); background: var(--mint); border-radius: 99px; padding: 2px 7px; margin-bottom: 3px; }
.nav > a.nav__doc[aria-current="page"] small, .nav > a.nav__doc:hover small { background: #fff; }
.mega__col h4 a:hover { color: var(--primary); }
.mega__col a[aria-current="page"] { color: var(--primary); font-weight: 700; }
.mega__bar span a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.footer__col h4 a:hover { color: var(--mint-strong); }
.footer__note { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 26px; }
.tag--trust { flex-wrap: wrap; gap: 4px 10px; padding: 7px 8px 7px 14px; transition: background-color .2s; }
.tag--trust__years { font-weight: 800; }
.tag--trust__cta { background: #fff; color: var(--primary); border-radius: 99px; padding: 3px 10px; font-weight: 700; }
.tag--trust:hover { background: var(--mint-strong); }
.tag--trust:hover .tag--trust__cta { background: var(--primary); color: #fff; }
a.tag:hover { background: var(--mint-strong); }

/* ---------- section scaffolding ---------- */
.section-block { margin-top: 70px; }
.block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.block-head h2 { margin-top: 12px; }
.block-head p { color: var(--muted); font-size: 14px; max-width: 640px; margin-top: 6px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- page heads ---------- */
.page-head { padding: 44px 46px; display: flex; flex-direction: column; align-items: flex-start; }
.page-head h1 { font-size: clamp(32px, 3.6vw, 48px); margin: 18px 0 12px; }
.page-head h1 mark, .page-hero h1 mark, .contact h1 mark, .post-head h1 mark { background: linear-gradient(transparent 58%, var(--mint) 58%); color: inherit; padding: 0 4px; }
.page-head > p { color: var(--muted); max-width: 680px; }
.page-head .hero__actions { margin-top: 24px; }
.page-head--compact { padding: 36px 40px; }
.page-head__meta { margin-top: 14px; font-size: 12.5px; color: var(--muted); font-weight: 600; }

.page-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.page-hero__text { padding: 40px 44px; display: flex; flex-direction: column; align-items: flex-start; }
.page-hero__text h1 { font-size: clamp(32px, 3.6vw, 48px); margin: 18px 0 12px; }
.page-hero__text > p { color: var(--muted); max-width: 560px; }
.page-hero__text .timeline { width: 100%; margin: 22px 0 6px; }
.page-hero__text .timeline li { background: #fff; }
.page-hero__text .hero__actions { margin-top: 22px; }
.page-hero__media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.page-hero__media img:last-child { margin-top: 50px; height: calc(100% - 50px); }

/* ---------- service hero image (pages without a reel) ---------- */
.lp-hero__media { position: relative; overflow: hidden; min-height: 420px; }
.lp-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-hero__media figcaption {
  position: absolute; right: 20px; bottom: 20px; padding: 12px 16px; border-radius: 16px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px); display: grid; gap: 2px; text-align: right; font-weight: 700; font-size: 18px;
}
.lp-hero__media figcaption small { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- "Kısaca" answer box + byline ---------- */
.lp-summary { margin-top: 20px; padding: 28px 32px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; background: #fff; border: 1.5px solid var(--mint); }
.lp-summary h2 { font-size: 19px; margin-bottom: 8px; }
.lp-summary h2::before { content: "✦ "; color: var(--primary); }
.lp-summary p { font-size: 15.5px; line-height: 1.65; }
.byline { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 18px; padding: 12px 16px 12px 12px; min-width: 250px; }
.byline__img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top; flex-shrink: 0; }
.byline small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.byline b { display: block; font-size: 15px; }
.byline a:hover b { color: var(--primary); }
.byline span { display: block; font-size: 12px; color: var(--muted); }
.byline--inline { background: #fff; margin-top: 22px; min-width: 0; }

/* ---------- long-form article with sticky table of contents ---------- */
.article { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 50px; margin-top: 70px; align-items: start; }
.article__toc { position: sticky; top: 100px; background: var(--card); border-radius: 20px; padding: 22px; }
.article__toc > b { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.article__toc ol { list-style: none; counter-reset: toc; margin: 12px 0 18px; display: grid; gap: 2px; }
.article__toc li { counter-increment: toc; }
.article__toc li a { display: flex; gap: 10px; padding: 7px 8px; border-radius: 10px; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.article__toc li a::before { content: counter(toc, decimal-leading-zero); color: var(--muted); font-size: 11px; font-weight: 800; padding-top: 2px; }
.article__toc li a:hover { background: #fff; color: var(--primary); }
.article__toc .btn { width: 100%; }
.article--legal { grid-template-columns: 260px minmax(0, 1fr); }

.prose { max-width: 760px; font-size: 16px; line-height: 1.75; }
.prose section { scroll-margin-top: 100px; }
.prose section + section { margin-top: 38px; padding-top: 38px; border-top: 1px solid var(--line); }
.prose h2 { font-size: clamp(22px, 2.3vw, 28px); margin-bottom: 14px; }
.prose h3 { font-size: 19px; margin: 22px 0 8px; }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + ol, .prose ol + p, .prose table + p, .prose p + table { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 4px; display: grid; gap: 8px; margin-top: 12px; }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: "✦"; position: absolute; left: 2px; top: 0; color: var(--primary); font-size: 13px; }
.prose ol { padding-left: 22px; }
.prose a { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14.5px; background: var(--card); border-radius: 16px; overflow: hidden; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--mint); color: var(--primary-dark); font-size: 13px; }
.prose tr + tr td { border-top: 1px solid var(--line); }
.prose__note { margin-top: 38px; font-size: 13px; color: var(--muted); background: var(--card); border-radius: 14px; padding: 14px 18px; line-height: 1.55; }
.article--legal .prose { font-size: 15px; }

/* ---------- cards ---------- */
.svc-card, .post-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.svc-card:hover, .post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(28,42,39,.35); }
.svc-card__img, .post-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.svc-card__hot { position: absolute; left: 12px; top: 12px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .03em; padding: 5px 10px; border-radius: 99px; box-shadow: 0 6px 16px -6px rgba(15,46,41,.6); }
.svc-card--featured { box-shadow: inset 0 0 0 1.5px var(--mint-strong); }
.mega__hot { font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); background: var(--mint); border-radius: 99px; padding: 2px 7px; margin-left: 2px; }
.svc-card__img img, .post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc-card:hover img, .post-card:hover img { transform: scale(1.04); }
.svc-card__body, .post-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.svc-card__body small, .post-card__body time { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.svc-card h3, .post-card h3 { font-size: 19px; margin: 6px 0 8px; }
.svc-card h3 a:hover, .post-card h3 a:hover { color: var(--primary); }
.svc-card p, .post-card p { font-size: 13.5px; color: var(--muted); line-height: 1.5; flex: 1; }
.svc-card .link, .post-card .link { margin-top: 14px; }
/* card explainer: animated icon + rotating facts (partials/card-anim.php) */
.ca { display: flex; align-items: center; gap: 12px; margin-top: 14px; background: #fff; border-radius: 16px; padding: 10px 14px 10px 10px; }
.ca__icon { flex: 0 0 56px; height: 56px; border-radius: 14px; background: var(--mint); display: grid; place-items: center; transition: transform .3s; }
.svc-card:hover .ca__icon { transform: scale(1.06) rotate(-3deg); }
.ca__icon svg { width: 48px; height: 48px; overflow: visible; fill: none; stroke: var(--primary); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ca__text { flex: 1; min-width: 0; }
.ca__how { display: block; font-size: 12px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.ca__facts { position: relative; height: 34px; margin-top: 4px; overflow: hidden; }
.ca__facts div { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0;
  animation: ca-tick 12s infinite; animation-delay: calc(var(--i) * 3s - var(--o, 0s)); }
.ca__facts dt { font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.ca__facts dd { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca__progress { display: block; height: 3px; border-radius: 3px; background: var(--card); overflow: hidden; margin-top: 4px; }
.ca__progress i { display: block; height: 100%; width: 100%; background: var(--mint-strong); transform-origin: left; animation: ca-progress 3s linear infinite; animation-delay: calc(0s - var(--o, 0s)); }
@keyframes ca-tick {
  0% { opacity: 0; transform: translateY(8px); }
  3%, 22% { opacity: 1; transform: none; }
  25%, 100% { opacity: 0; transform: translateY(-8px); }
}
@keyframes ca-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* icon variants */
.ca-base { stroke: var(--mint-strong); stroke-width: 2; }
.ca-spark { stroke: var(--primary); stroke-width: 2.2; transform-box: fill-box; transform-origin: center; animation: ca-twinkle 2.1s ease-in-out infinite; animation-delay: var(--d); }
@keyframes ca-twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 40%, 60% { opacity: 1; transform: scale(1) rotate(45deg); } }
.ca-fill-level { fill: var(--mint-strong); stroke: none; transform-box: fill-box; transform-origin: bottom; animation: ca-fill 4s ease-in-out infinite; }
.ca-dash { stroke: var(--primary); stroke-width: 1.4; stroke-dasharray: 2 4; opacity: .5; }
.ca-drop { fill: var(--primary); stroke: none; animation: ca-drop 4s ease-in infinite; }
@keyframes ca-fill { 0%, 25% { transform: scaleY(0); } 60%, 85% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
@keyframes ca-drop { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 35% { transform: translateY(26px); opacity: 1; } 40%, 100% { transform: translateY(26px); opacity: 0; } }
.ca-wrinkle { transform-box: fill-box; transform-origin: center; animation: ca-relax 3.6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes ca-relax { 0%, 20% { transform: scaleY(1); } 50%, 75% { transform: scaleY(.12); } 100% { transform: scaleY(1); } }
.ca-dot { fill: var(--primary); stroke: none; animation: ca-pulse 3.6s ease-in-out infinite; }
@keyframes ca-pulse { 0%, 20%, 100% { opacity: .25; } 40%, 60% { opacity: 1; } }
.ca-micro { animation: ca-micro 2.5s ease-in-out infinite; animation-delay: var(--d); }
.ca-micro .ca-bead { fill: var(--mint-strong); stroke: none; transform-box: fill-box; transform-origin: center; animation: ca-bead 2.5s ease-out infinite; animation-delay: var(--d); }
@keyframes ca-micro { 0%, 100% { transform: translateY(-4px); opacity: .35; } 30% { transform: translateY(2px); opacity: 1; } 55% { transform: translateY(-4px); opacity: .35; } }
@keyframes ca-bead { 0%, 25% { transform: scale(0); opacity: 0; } 40% { transform: scale(1.3); opacity: 1; } 80%, 100% { transform: scale(.8); opacity: 0; } }
.ca-beam { fill: var(--mint-strong); stroke: none; opacity: .55; transform-origin: 32px 6px; animation: ca-sweep 2.4s ease-in-out infinite alternate; }
@keyframes ca-sweep { from { transform: rotate(-20deg); } to { transform: rotate(20deg); } }
.ca-spot { fill: var(--primary); stroke: none; opacity: .2; animation: ca-spot 2.4s ease-in-out infinite; animation-delay: var(--d); }
@keyframes ca-spot { 0%, 100% { opacity: .15; } 30% { opacity: 1; } 60% { opacity: .15; } }

@media (prefers-reduced-motion: reduce) {
  .ca *, .ca__facts div { animation: none !important; }
  .ca__facts div:first-child { opacity: 1; }
}

/* ---------- category navigation chips ---------- */
.cat-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 40px; }
.cat-nav b { font-size: 13px; margin-right: 4px; }
.cat-nav--inline { margin-top: 22px; }
.chip-link { background: var(--card); border-radius: 99px; padding: 8px 14px; font-size: 13px; font-weight: 700; transition: .2s; }
.page-head .chip-link { background: #fff; }
.chip-link:hover { background: var(--primary); color: #fff; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; }
.contact__info { padding: 40px 44px; }
.contact__info h1 { font-size: clamp(32px, 3.6vw, 46px); margin: 18px 0 12px; }
.contact__info > p { color: var(--muted); }
.contact__map { overflow: hidden; min-height: 460px; }
.contact__map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }
.contact__quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.contact__tile { padding: 22px 24px; display: grid; gap: 4px; transition: .2s; }
.contact__tile small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.contact__tile b { font-size: 17px; overflow-wrap: anywhere; }
.contact__tile span { font-size: 13px; color: var(--muted); font-weight: 600; }
.contact__tile:hover { background: var(--mint); }

.nap { margin-top: 24px; }
.nap dl { display: grid; gap: 8px; }
.nap dl > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; background: #fff; border-radius: 14px; padding: 12px 16px; font-size: 14.5px; }
.nap dt { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); padding-top: 3px; }
.nap dd a { font-weight: 700; }
.nap dd a:hover { color: var(--primary); }
.nap__hours { display: block; }
.nap__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.prose .nap dl > div { background: var(--card); }
.prose .nap .btn { text-decoration: none; }
.prose .nap .btn--primary { color: #fff; }
.prose .nap .btn--outline { color: var(--ink); }

/* ---------- blog post head ---------- */
.post-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.post-head__text { padding: 40px 44px; display: flex; flex-direction: column; align-items: flex-start; }
.post-head__text h1 { font-size: clamp(28px, 3vw, 40px); margin: 18px 0 12px; }
.post-head__text > p { color: var(--muted); }
.post-head__media { overflow: hidden; position: relative; min-height: 320px; }
.post-head__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- search ---------- */
.search-form { display: flex; gap: 10px; width: 100%; max-width: 620px; margin-top: 18px; }
.search-form input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 13px 20px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; }
.search-form input:focus { outline: none; border-color: var(--primary); }
.search-results { display: grid; gap: 12px; max-width: 820px; }
.search-results__count { color: var(--muted); font-size: 14px; }
.search-result { padding: 20px 24px; display: grid; gap: 4px; transition: .2s; }
.search-result small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.search-result b { font-size: 18px; }
.search-result p { font-size: 14px; color: var(--muted); }
.search-result:hover { background: var(--mint); }
.notfound .hero__actions { margin-top: 20px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .contact__quick { grid-template-columns: repeat(2, 1fr); }
  .article { grid-template-columns: 230px minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 900px) {
  .card-grid, .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .page-hero, .contact, .post-head { grid-template-columns: 1fr; }
  .page-hero__media { order: -1; }
  .page-hero__media img { aspect-ratio: 4 / 5; height: auto; }
  .page-hero__media img:last-child { margin-top: 30px; height: auto; }
  .lp-hero__media { min-height: 0; aspect-ratio: 16 / 10; order: -1; }
  .lp-summary { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .byline { min-width: 0; }
  .article, .article--legal { grid-template-columns: minmax(0, 1fr); margin-top: 50px; }
  .article__toc { position: static; }
  .article__toc ol { margin-bottom: 0; }
  .article__toc .btn { display: none; }
  .page-head, .page-hero__text, .contact__info, .post-head__text { padding: 26px 22px; }
  .contact__map, .contact__map iframe { min-height: 320px; }
  .post-head__media { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
  .section-block { margin-top: 50px; }
}
@media (max-width: 600px) {
  .card-grid, .card-grid--3, .card-grid--4, .contact__quick { grid-template-columns: 1fr; }
  .nap dl > div { grid-template-columns: 1fr; gap: 2px; }
  .search-form { flex-direction: column; }
  .prose { font-size: 15.5px; }
  .prose table { display: block; overflow-x: auto; }
  .prose th, .prose td { min-width: 140px; }
}

/* ---------- mega menu: personal plan explainer (partials/animations/mega-plan.php) ----------
   12s loop in four 3s phases. Animations are attached only while the menu is open, so every
   opening restarts from phase 1. */
.mega__promo .ma { display: block; width: 100%; height: 150px; }
.ma { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ma-face path { stroke: var(--primary); stroke-width: 2.2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ma-zones > * { fill: var(--mint-strong); opacity: 0; }
.ma-bubble { opacity: 0; }
.ma-bubble path { fill: #fff; stroke: var(--mint-strong); stroke-width: 1.5; }
.ma-typing { fill: var(--primary); }
.ma-measure path { stroke: var(--primary); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.ma-points circle { fill: #fff; stroke: var(--primary); stroke-width: 1.6; opacity: 0; transform-box: fill-box; transform-origin: center; }
.ma-scan { fill: var(--mint-strong); opacity: 0; }
.ma-card { opacity: 0; }
.ma-card > rect:first-child { fill: #fff; stroke: var(--mint-strong); stroke-width: 1.5; }
.ma-card__head { fill: var(--primary); opacity: .85; }
.ma-box { fill: none; stroke: var(--primary); stroke-width: 1.5; }
.ma-row { fill: var(--mint); }
.ma-tick { stroke: var(--primary); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ma-badge { opacity: 0; transform-box: fill-box; transform-origin: center; }
.ma-badge circle { fill: var(--primary); }
.ma-badge path { stroke: #fff; stroke-width: 2.4; }
.ma-dots rect { fill: var(--primary); opacity: .2; }

.ma-steps { display: grid; margin-top: 2px; min-height: 38px; }
.ma-steps > span { grid-area: 1 / 1; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.35; opacity: 0; }
.ma-steps > span:first-child { opacity: 1; }
.mega__promo .ma-steps b { display: block; font-size: 11px; margin: 0; color: var(--primary); letter-spacing: .04em; }

:is(.nav__item--mega:hover, .nav__item--mega.is-open, .nav__item--mega:focus-within, .ma-run) .ma-face path { animation: ma-draw 12s ease-out infinite; }
:is(.nav__item--mega:hover, .nav__item--mega.is-open, .nav__item--mega:focus-within, .ma-run) .ma-bubble { animation: ma-bubble 12s ease infinite; }
:is(.nav__item--mega:hover, .nav__item--mega.is-open, .nav__item--mega:focus-within, .ma-run) .ma-typing { animation: ma-typing .9s ease-in-out infinite; animation-delay: var(--d); }
:is(.nav__item--mega:hover, .nav__item--mega.is-open, .nav__item--mega:focus-within, .ma-run) .ma-scan { animation: ma-scan 12s ease-in-out infinite; }
:is(.nav__item--mega:hover, .nav__item--mega.is-open, .nav__item--mega:focus-within, .ma-run) .ma-measure path { animation: ma-measure 12s ease infinite; }
:is(.nav__item--mega:hover, .nav__item--mega.is-open, .nav__item--mega:focus-within, .ma-run) .ma-points circle { animation: ma-point 12s ease infinite; animation-delay: var(--d); }
:is(.nav__item--mega:hover, .nav__item--mega.is-open, .nav__item--mega:focus-within, .ma-run) .ma-card { animation: ma-card 12s cubic-bezier(.2,.8,.2,1) infinite; }
:is(.nav__item--mega:hover, .nav__item--mega.is-open, .nav__item--mega:focus-within, .ma-run) .ma-tick { animation: ma-tick 12s ease infinite; animation-delay: calc(var(--d) * .45s); }
:is(.nav__item--mega:hover, .nav__item--mega.is-open, .nav__item--mega:focus-within, .ma-run) .ma-zones > * { animation: ma-zone 12s ease-in-out infinite; }
:is(.nav__item--mega:hover, .nav__item--mega.is-open, .nav__item--mega:focus-within, .ma-run) .ma-badge { animation: ma-badge 12s cubic-bezier(.3,1.6,.5,1) infinite; }
:is(.nav__item--mega:hover, .nav__item--mega.is-open, .nav__item--mega:focus-within, .ma-run) .ma-dots rect { animation: ma-dot 12s infinite; animation-delay: calc(var(--i) * 3s); }
:is(.nav__item--mega:hover, .nav__item--mega.is-open, .nav__item--mega:focus-within, .ma-run) .ma-steps > span { animation: an-step 12s infinite backwards; animation-delay: calc(var(--i) * 3s); }

/* homepage features: personal plan card + consultation card */
.feature--plan { padding: 0; display: flex; flex-direction: column; }
.feature--plan__text { padding: 24px 26px 12px; }
.feature--plan .ma-steps > span { font-size: 13.5px; }
.feature--plan .ma-steps b { display: block; font-size: 11px; color: var(--primary); letter-spacing: .04em; }
.feature--plan .ma { display: block; width: 100%; height: auto; margin-top: auto; }
.feature--plan .link { position: absolute; right: 18px; top: 26px; font-size: 12px; }
.feature--free { display: flex; flex-direction: column; }
.free__doc { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.free__doc img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--mint-strong); }
.free__doc b { display: block; font-size: 14px; }
.free__doc small { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.free__live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--primary); }
.free__live i { width: 8px; height: 8px; border-radius: 50%; background: #2fb37a; box-shadow: 0 0 0 0 rgba(47,179,122,.5); animation: free-pulse 1.8s infinite; }
@keyframes free-pulse { 70% { box-shadow: 0 0 0 8px rgba(47,179,122,0); } 100% { box-shadow: 0 0 0 0 rgba(47,179,122,0); } }
.free__list { list-style: none; display: grid; gap: 6px; margin: 14px 0 18px; font-size: 13px; font-weight: 600; }
.free__list li { display: flex; gap: 8px; align-items: center; }
.free__list li::before { content: "✓"; width: 18px; height: 18px; border-radius: 50%; background: var(--mint); color: var(--primary); display: grid; place-items: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.free__actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.free__actions .btn { padding: 10px 16px; font-size: 13px; }

@keyframes ma-draw { 0% { stroke-dashoffset: 1; } 10%, 96% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes ma-bubble { 0%, 4% { opacity: 0; transform: translateY(6px); } 8%, 22% { opacity: 1; transform: none; } 25%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes ma-typing { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-3px); opacity: 1; } }
@keyframes ma-scan { 0%, 25% { opacity: 0; transform: translateY(0); } 27% { opacity: .9; } 45% { opacity: .9; transform: translateY(98px); } 48%, 100% { opacity: 0; transform: translateY(98px); } }
@keyframes ma-measure { 0%, 28% { opacity: 0; } 34%, 94% { opacity: .55; } 98%, 100% { opacity: 0; } }
@keyframes ma-point { 0%, 31% { opacity: 0; transform: scale(0); } 35% { opacity: 1; transform: scale(1.5); } 38%, 94% { opacity: 1; transform: scale(1); } 98%, 100% { opacity: 0; transform: scale(1); } }
@keyframes ma-card { 0%, 50% { opacity: 0; transform: translateX(24px); } 55%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: none; } }
@keyframes ma-tick { 0%, 57% { stroke-dashoffset: 1; } 62%, 96% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes ma-zone { 0%, 75% { opacity: 0; } 80% { opacity: .85; } 87% { opacity: .45; } 94% { opacity: .85; } 98%, 100% { opacity: 0; } }
@keyframes ma-badge { 0%, 80% { opacity: 0; transform: scale(0); } 84%, 95% { opacity: 1; transform: scale(1); } 99%, 100% { opacity: 0; transform: scale(1); } }
@keyframes ma-dot { 0% { opacity: 1; } 24% { opacity: 1; } 25%, 100% { opacity: .2; } }

@media (prefers-reduced-motion: reduce) {
  .ma *, .ma-steps > span { animation: none !important; }
  .ma-measure path { opacity: .55; } .ma-points circle, .ma-card, .ma-zones > * { opacity: 1; } .ma-tick { stroke-dashoffset: 0; }
}

/* ---------- homepage video (lite YouTube embed) ---------- */
.video-block { margin-top: 70px; }
.video-block__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 24px; flex-wrap: wrap; }
.video-block__head h2 { margin-top: 12px; }
.video-block__head p { color: var(--muted); font-size: 14px; max-width: 420px; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0f2e29; cursor: pointer; }
.yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .3s; }
.yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,46,41,.55), transparent 45%); pointer-events: none; }
.yt:hover img { transform: scale(1.02); filter: brightness(.92); }
.yt__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 92px; height: 92px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(255,255,255,.22); transition: transform .25s, box-shadow .25s; }
.yt__play svg { width: 34px; height: 34px; fill: var(--primary); margin-left: 5px; }
.yt:hover .yt__play { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 0 18px rgba(255,255,255,.18); }
.yt__label { position: absolute; left: 24px; bottom: 22px; z-index: 2; display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 16px; }
.yt__label svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.yt.is-playing::after, .yt.is-playing .yt__play, .yt.is-playing .yt__label { display: none; }
@media (max-width: 600px) {
  .video-block { margin-top: 50px; }
  .yt__play { width: 68px; height: 68px; } .yt__play svg { width: 26px; height: 26px; }
  .yt__label { left: 16px; bottom: 14px; font-size: 13px; }
}
