/* ===== Эффекты для сайта репетитора ===== */

/* ---------- Градиент на первом экране ---------- */
[data-efx-hero] { isolation: isolate; }
.efx-grad { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.6s ease;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, rgba(0, 0, 0, .55) 75%, rgba(0, 0, 0, .15) 90%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, rgba(0, 0, 0, .55) 75%, rgba(0, 0, 0, .15) 90%, transparent 100%); }
.efx-grad.is-on { opacity: 1; }
.efx-grad canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* слева светлее, чтобы заголовок и текст читались */
.efx-grad::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(250, 249, 246, .55) 0%, rgba(250, 249, 246, .15) 42%, rgba(250, 249, 246, 0) 62%); }
@media (max-width: 1023px) { .efx-grad::after { background: linear-gradient(180deg, rgba(250, 249, 246, .1) 0%, rgba(250, 249, 246, .55) 55%, rgba(250, 249, 246, .7) 100%); } }
.efx-grad--css { background: radial-gradient(40% 50% at 66% 45%, #EDBFAE, transparent 70%), radial-gradient(35% 45% at 85% 20%, #F3E2CC, transparent 70%), radial-gradient(45% 55% at 50% 80%, #F4D8CA, transparent 72%), #FAF6F1;
  background-size: 140% 140%; animation: efxFb 18s ease-in-out infinite alternate; }
.efx-grad--css canvas { display: none; }
@keyframes efxFb { from { background-position: 0 0; } to { background-position: 100% 60%; } }
@media (prefers-reduced-motion: reduce) { .efx-grad--css { animation: none; } }

/* ---------- Карточки «Чем помогут занятия» ---------- */
[data-efx-card] { overflow: hidden; isolation: isolate; }
.efx-card-shader { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; border-radius: inherit; }
/* 1 — узор под карточкой: сверху матовая светлая подложка, узор живёт по краям */
[data-efx-b="1"] [data-efx-card] { background: transparent !important; }
[data-efx-b="1"] [data-efx-card]::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; background: rgba(255, 253, 250, .8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
[data-efx-b="1"] [data-efx-card] > .relative { z-index: 2; }
/* 3 — при наведении: в покое почти белая, при наведении узор проступает */
[data-efx-b="3"] [data-efx-card] { background: transparent !important; }
[data-efx-b="3"] [data-efx-card]::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; background: rgba(255, 255, 255, .94); transition: background .45s ease; }
[data-efx-b="3"] [data-efx-card]:hover::before { background: rgba(255, 253, 250, .7); }
[data-efx-b="3"] [data-efx-card] > .relative { z-index: 2; }
/* 2 — узор только в круглой иконке */
[data-efx-b="2"] [data-efx-card] .rounded-full { position: relative; overflow: hidden; }
.efx-icon-shader { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; }
[data-efx-b="2"] [data-efx-card] .rounded-full > svg { position: relative; z-index: 1; filter: drop-shadow(0 1px 2px rgba(120, 60, 45, .35)); }

/* ---------- Рисованное подчёркивание ---------- */
[data-efx-under] { position: relative; display: inline-block; }
.efx-ul { position: absolute; left: -2%; width: 104%; top: 100%; height: .32em; margin-top: -.06em; overflow: visible; pointer-events: none; color: #C17B6C; }
.efx-ul path { stroke: currentColor; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; }
/* до прорисовки линии не видно совсем (иначе круглый кончик линии висит точкой у последней буквы) */
[data-efx-under][data-efx-drawn] .efx-ul path { stroke-dashoffset: 0; opacity: .9; transition: stroke-dashoffset 1s cubic-bezier(.6, 0, .25, 1), opacity .15s; }
[data-efx-punct] .efx-ul { width: calc(100% - .42em); }
@media (max-width: 767px) { .efx-ul path { stroke-width: 5; } }
@media (prefers-reduced-motion: reduce) { .efx-ul path { stroke-dashoffset: 0; opacity: .9; } }
/* рукописное слово */
@font-face { font-family: "Caveat"; font-weight: 600; font-display: swap; src: url(/fonts/caveat-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; font-weight: 600; font-display: swap; src: url(/fonts/caveat-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
[data-efx-hand] { font-family: "Caveat", cursive; font-weight: 600; font-size: 1.18em; letter-spacing: 0; color: #C17B6C; line-height: .9; }

/* ---------- «Нажатие» кнопок ---------- */
@keyframes efxPress { 0% { transform: scale(1); } 50% { transform: scale(.95); } 100% { transform: scale(1); } }
.efx-press { animation: efxPress .3s cubic-bezier(.36, 0, .66, -.56); }


/* ---------- Фото на первом экране растворяется в фоне снизу ---------- */
html body #root div[class~="cursor-pointer"] > img[src$="hero.webp"] { -webkit-mask-image: linear-gradient(to bottom, #000 72%, rgba(0, 0, 0, .85) 80%, rgba(0, 0, 0, .5) 88%, rgba(0, 0, 0, .18) 95%, transparent 100%) !important; mask-image: linear-gradient(to bottom, #000 72%, rgba(0, 0, 0, .85) 80%, rgba(0, 0, 0, .5) 88%, rgba(0, 0, 0, .18) 95%, transparent 100%) !important; }

/* ---------- Новый подвал ---------- */
.efx-ft-on { padding: 0 16px max(24px, env(safe-area-inset-bottom)); }
.efx-ft { max-width: 1152px; margin: 0 auto; padding-top: 48px; border-top: 1px solid rgba(193, 123, 108, .2); color: #4A4A4A; }
.efx-ft-on .efx-ft-top { text-align: left; }
.efx-ft-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start; }
.efx-ft-contact { justify-self: end; }
#site-footer-addon .efx-ft-name, #site-footer-addon .efx-ft-name * { font-family: "Yeseva One", Georgia, serif !important; }
.efx-ft-name { margin: 0; font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1.1; color: #2A2A2A; }
.efx-ft-surname { color: #C17B6C; }
.efx-ft-desc { margin: 14px 0 0; max-width: 34ch; font-size: .95rem; line-height: 1.55; color: rgba(74, 74, 74, .75); }
.efx-ft-nav { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 10px 28px; justify-content: start; padding-top: 6px; }
.efx-ft-nav a { color: #4A4A4A; font-size: .95rem; text-decoration: none; background: linear-gradient(#C17B6C, #C17B6C) 0 100% / 0 1px no-repeat; transition: background-size .3s, color .2s; padding-bottom: 2px; justify-self: start; }
.efx-ft-nav a:hover { color: #C17B6C; background-size: 100% 1px; }
.efx-ft-cap { margin: 0 0 12px; font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #C17B6C; }
.efx-ft-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.efx-ft-btn { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px 10px 10px; border-radius: 999px; background: #fff; border: 1px solid rgba(193, 123, 108, .22); color: #4A4A4A; font-size: .95rem; font-weight: 500; text-decoration: none; box-shadow: 0 10px 24px -18px rgba(120, 60, 45, .6); transition: border-color .2s, box-shadow .2s; }
.efx-ft-btn:hover { border-color: #C17B6C; box-shadow: 0 14px 28px -18px rgba(120, 60, 45, .75); }
.efx-ft-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #C17B6C; color: #fff; }
.efx-ft-ic svg { width: 17px; height: 17px; }
.efx-ft-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(193, 123, 108, .12); font-size: .85rem; color: rgba(74, 74, 74, .6); }
.efx-ft-up { display: inline-flex; align-items: center; gap: 6px; color: #4A4A4A; text-decoration: none; }
.efx-ft-up svg { width: 15px; height: 15px; }
.efx-ft-up:hover { color: #C17B6C; }
.efx-ft a:focus-visible { outline: 2px solid #C17B6C; outline-offset: 3px; border-radius: 6px; }
@media (max-width: 760px) {
  .efx-ft-on .efx-ft-top { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 28px; }
  .efx-ft-desc { margin-inline: auto; }
  .efx-ft-contact { justify-self: center; }
  .efx-ft-btns { justify-content: center; }
}
@media (max-width: 600px) {
  .efx-ft { padding-top: 36px; }
  .efx-ft-on .efx-ft-top { grid-template-columns: minmax(0, 1fr); gap: 28px; text-align: center; }
  .efx-ft-desc { margin-inline: auto; }
  .efx-ft-nav { justify-content: center; text-align: center; }
  .efx-ft-nav a { justify-self: center; }
  .efx-ft-btns { justify-content: center; }
  .efx-ft-bottom { margin-top: 28px; }
}
.efx-ft-on::before { display: none !important; }
/* у фото на сайте была кремовая плашка снизу (::after) — она и давала «белую штуку»; убираем, фото само растворяется маской */
html body div[class~="cursor-pointer"][class~="max-w-none"]::after { content: none !important; display: none !important; background: none !important; }
#site-footer-addon .efx-ft-name { margin: 0; font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1.1; color: #2A2A2A; font-weight: 400; letter-spacing: 0; }
#site-footer-addon .efx-ft-name .efx-ft-surname { font-size: 1em !important; color: #C17B6C !important; letter-spacing: 0 !important; text-transform: none !important; margin: 0 !important; display: inline-block; }

/* ---------- Объёмные кнопки «Записаться» ---------- */
#root [data-efx-3d], [data-efx-3d] { overflow: visible !important; isolation: isolate; box-shadow: 0 5px 0 #8E4E42, 0 16px 30px -12px rgba(120, 60, 45, .55) !important;
  transition: transform .25s cubic-bezier(.3, .7, .4, 1.4), box-shadow .25s ease !important; }
[data-efx-3d] > div { border-radius: inherit; }
/* блик сайта (::after) ездит за пределы кнопки, когда она без обрезки — обрезаем его по форме кнопки */
[data-efx-3d]::after { display: none !important; }
#root [data-efx-3d]:hover, [data-efx-3d]:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #8E4E42, 0 22px 36px -14px rgba(120, 60, 45, .6) !important; }
#root [data-efx-3d]:active, [data-efx-3d]:active { transform: translateY(4px); box-shadow: 0 1px 0 #8E4E42, 0 6px 14px -6px rgba(120, 60, 45, .5) !important; transition-duration: .08s !important; }
.efx-roll { position: relative; display: inline-block; height: 1.35em; line-height: 1.35em; vertical-align: middle; clip-path: inset(0 -300px); }
.efx-roll-line { display: block; white-space: nowrap; }
.efx-roll-b { position: absolute; left: 50%; top: 0; translate: -50% 0; }
.efx-roll-line > span { display: inline-block; transition: transform .38s cubic-bezier(.6, 0, .2, 1), opacity .38s; transition-delay: calc(var(--i) * 8ms); }
.efx-roll-b > span { transform: translateY(110%); opacity: 0; }
[data-efx-3d]:hover .efx-roll-a > span, [data-efx-3d]:focus-visible .efx-roll-a > span { transform: translateY(-110%); opacity: 0; }
[data-efx-3d]:hover .efx-roll-b > span, [data-efx-3d]:focus-visible .efx-roll-b > span { transform: none; opacity: 1; }
.efx-outline { position: absolute; left: -6px; top: -6px; width: calc(100% + 12px); height: calc(100% + 12px); overflow: visible; pointer-events: none; z-index: -1; }
.efx-outline rect { fill: none; stroke: #C17B6C; stroke-width: 2; stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset .7s cubic-bezier(.5, 0, .2, 1), opacity .2s; }
[data-efx-3d]:hover .efx-outline rect { stroke-dashoffset: 0; opacity: 1; }
.efx-splash { position: absolute; left: 50%; top: 50%; width: 150%; height: auto; aspect-ratio: 342 / 208; translate: -50% -50%; overflow: visible; pointer-events: none; z-index: -1; stroke: #D4AF7A; }
.efx-splash path { stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; }
[data-efx-burst] .efx-splash path { animation: efxSplash .75s cubic-bezier(.3, 0, .2, 1) forwards; }
/* в конце брызги гаснут полностью, чтобы не оставались точки */
@keyframes efxSplash { 0% { stroke-dashoffset: 1; opacity: 1; } 45% { stroke-dashoffset: 0; opacity: 1; } 85% { opacity: 1; } 100% { stroke-dashoffset: -1; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { [data-efx-burst] .efx-splash path { animation: none; } .efx-roll-line > span { transition: none; } }
/* свой блик внутри кнопки — по форме кнопки, раз в несколько секунд */
[data-efx-3d] > div:first-of-type { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { [data-efx-3d] > div:first-of-type::after { animation: none; display: none; } }

/* ---------- Подвал: без разрыва с блоком «Готовы начать», живые кнопки ---------- */
.efx-ft-joined #sec-cta { padding-bottom: 40px !important; }
.efx-ft-joined .efx-ft { border-top: 0; padding-top: 8px; }
.efx-ft-joined .efx-ft-on { padding-top: 0 !important; margin-top: 0 !important; }
#site-footer-addon .efx-ft-name .efx-ft-surname { color: #C17B6C !important; }
.efx-ft-top { align-items: center; padding: 28px 32px; border-radius: 28px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(193, 123, 108, .14); box-shadow: 0 24px 50px -36px rgba(120, 60, 45, .45); }
.efx-ft-btn { position: relative; overflow: hidden; isolation: isolate; gap: 10px; padding: 9px 16px 9px 9px; transition: color .35s ease, border-color .35s, box-shadow .35s, transform .25s cubic-bezier(.3, .7, .4, 1.4); }
.efx-ft-fill { position: absolute; z-index: -1; left: 25px; top: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; background: linear-gradient(120deg, #C17B6C, #D4AF7A); transform: scale(0); transition: transform .5s cubic-bezier(.6, 0, .2, 1); }
.efx-ft-btn:hover .efx-ft-fill, .efx-ft-btn:focus-visible .efx-ft-fill { transform: scale(9); }
.efx-ft-btn:hover, .efx-ft-btn:focus-visible { color: #fff !important; border-color: transparent; transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(193, 123, 108, .8); }
.efx-ft-btn:active { transform: translateY(1px) scale(.98); }
.efx-ft-btn .efx-ft-ic { transition: background .35s, color .35s, transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.efx-ft-btn:hover .efx-ft-ic { background: rgba(255, 255, 255, .22); transform: rotate(-12deg) scale(1.06); }
.efx-ft-arr { width: 0; height: 16px; opacity: 0; transform: translate(-6px, 6px); transition: width .35s, opacity .3s, transform .35s; }
.efx-ft-btn:hover .efx-ft-arr, .efx-ft-btn:focus-visible .efx-ft-arr { width: 16px; opacity: 1; transform: none; }
@media (max-width: 760px) { .efx-ft-top { padding: 24px 18px; } }
@media (prefers-reduced-motion: reduce) { .efx-ft-fill, .efx-ft-arr, .efx-ft-btn, .efx-ft-btn .efx-ft-ic { transition: none; } }

/* ---------- Подвал компактнее ---------- */
.efx-ft-joined #sec-cta { padding-bottom: 28px !important; }
.efx-ft-top { padding: 18px 24px; gap: 24px; border-radius: 22px; }
#site-footer-addon .efx-ft-name { font-size: 1.5rem !important; }
.efx-ft-desc { margin-top: 6px; font-size: .85rem; max-width: 40ch; }
.efx-ft-cap { display: none; }
.efx-ft-btn { padding: 7px 14px 7px 7px; font-size: .9rem; overflow: visible; }
.efx-ft-btn .efx-ft-fill { overflow: hidden; }
.efx-ft-btn { clip-path: none; }
.efx-ft-ic { width: 28px; height: 28px; }
.efx-ft-ic svg { width: 15px; height: 15px; }
.efx-ft-bottom { margin-top: 14px; padding-top: 0; border-top: 0; justify-content: center; gap: 18px; }
@media (max-width: 760px) {
  .efx-ft-top { padding: 18px 14px; gap: 14px; }
  #site-footer-addon .efx-ft-name { font-size: 1.35rem !important; }
  .efx-ft-btns { display: flex; width: auto; gap: 8px; }
  .efx-ft-btn { padding: 7px 12px 7px 7px; }
  .efx-ft-btn .efx-ft-lb { flex: none; }
  .efx-ft-arr { display: none; }
}
/* объём и брызги у кнопок подвала */
.efx-ft-btn { box-shadow: 0 4px 0 #EAD3C9, 0 12px 22px -16px rgba(120, 60, 45, .6); }
.efx-ft-btn:hover, .efx-ft-btn:focus-visible { box-shadow: 0 5px 0 #8E4E42, 0 16px 28px -14px rgba(193, 123, 108, .8); }
.efx-ft-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #8E4E42; }
.efx-ft-btn .efx-splash { width: 170%; stroke: #D4AF7A; }
/* заливка не должна вылезать за кнопку, когда кнопка без обрезки */
.efx-ft-fill { left: 21px; width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.efx-ft-btn:hover .efx-ft-fill, .efx-ft-btn:focus-visible .efx-ft-fill { transform: scale(6.5); }
.efx-ft-btn > .efx-ft-fill { clip-path: none; }
.efx-ft-btns .efx-ft-btn { isolation: isolate; }
.efx-ft-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: #fff; }
.efx-ft-btn::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; }

/* ---------- Отзывы ---------- */
[data-efx-rev] .avr-card { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s !important; }
[data-efx-rev] .avr-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(120, 60, 45, .55) !important; }
[data-efx-rev] .avr-stars span { display: inline-block; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), color .3s, text-shadow .3s; transition-delay: calc(var(--i) * 60ms); }
[data-efx-rev] .avr-card:hover .avr-stars span { transform: scale(1.3) rotate(-8deg); color: #E0A84F; text-shadow: 0 0 10px rgba(224, 168, 79, .55); }

/* ---------- Образование и опыт ---------- */
[data-efx-edu] .group { opacity: 0; transform: translateX(16px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * .12s); }
[data-efx-edu][data-efx-in] .group { opacity: 1; transform: none; }
[data-efx-edu] .group > div:first-child { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1), background-color .3s !important; }
[data-efx-edu] .group:hover > div:first-child { transform: rotate(-10deg) scale(1.12); }
.efx-count { display: inline-block; min-width: .6em; font-variant-numeric: tabular-nums; }

.efx-ft-clip { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; background: #fff; }
.efx-ft-btn::before, .efx-ft-btn::after { display: none; }
@media (max-width: 760px) {
  .efx-ft-btns { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .efx-ft-btn { flex-direction: column; justify-content: center; gap: 6px; padding: 10px 4px; border-radius: 18px; font-size: .8rem; }
  .efx-ft-btn .efx-ft-lb { text-align: center; }
  .efx-ft-ic { width: 34px; height: 34px; }
  .efx-ft-desc { font-size: .82rem; }
}

/* ---------- Неоновая рамка ---------- */
/* рамка существует только пока светится — в остальное время браузер её не рисует */
.efx-neon { position: absolute; inset: 0; z-index: 5; border-radius: inherit; pointer-events: none; display: none; }
.efx-neon::before, .efx-neon::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.efx-neon::before { background: radial-gradient(220px circle at var(--nx, 50%) var(--ny, 50%), #E8946F, rgba(212, 175, 122, .9) 35%, transparent 70%); }
.efx-neon::after { padding: 3px; filter: blur(6px); opacity: .7; background: radial-gradient(180px circle at var(--nx, 50%) var(--ny, 50%), #F0A07C, transparent 70%); }
[data-lit] > .efx-neon { display: block; animation: efxNeonIn .35s ease; }
@keyframes efxNeonIn { from { opacity: 0; } }
/* касание на телефоне: вся рамка вспыхивает и гаснет */
[data-tap] > .efx-neon { display: block; animation: efxNeonTap 1.4s ease-out forwards; }
[data-tap] > .efx-neon::before { background: conic-gradient(from 0deg at var(--nx, 50%) var(--ny, 50%), #E8946F, #D4AF7A, #F4C7A8, #C17B6C, #E8946F); }
[data-tap] > .efx-neon::after { background: conic-gradient(from 0deg at var(--nx, 50%) var(--ny, 50%), #E8946F, #D4AF7A, #C17B6C, #E8946F); }
@keyframes efxNeonTap { 0% { opacity: 0; } 15% { opacity: 1; } 60% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Старый подвал, чуть аккуратнее ---------- */
.efx-ft-polish #site-footer-addon .ft-name { font-size: 24px !important; }
.efx-ft-polish #site-footer-addon .ft-links { gap: 14px; }
.efx-ft-polish #site-footer-addon .ft-link { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff;
  border: 1px solid rgba(193, 123, 108, .18); box-shadow: 0 8px 18px -14px rgba(120, 60, 45, .5); text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s, background .25s; flex-direction: row !important; }
.efx-ft-polish #site-footer-addon .ft-link:hover { transform: translateY(-2px); border-color: #C17B6C; box-shadow: 0 14px 24px -14px rgba(193, 123, 108, .7); }
.efx-ft-polish #site-footer-addon .ft-ic { transition: background .25s, color .25s; }
.efx-ft-polish #site-footer-addon .ft-link:hover .ft-ic { background: #C17B6C; color: #fff; transform: none; box-shadow: none; }
.efx-ft-polish #site-footer-addon .ft-lb { font-size: 13px; margin: 0 !important; }
@media (max-width: 480px) {
  .efx-ft-polish #site-footer-addon .ft-links { flex-wrap: wrap; gap: 8px; }
  .efx-ft-polish #site-footer-addon .ft-link { padding: 5px 12px 5px 5px; }
}


/* ---------- Наклон карточек за мышкой ---------- */
.efx-tiltable, .avr-benefits-grid > div { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
[data-tilt] { transition: transform .08s linear, box-shadow .3s; box-shadow: 0 30px 50px -28px rgba(90, 50, 40, .55); }
.efx-glare2 { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .55), rgba(255, 255, 255, .12) 35%, transparent 60%); }
[data-tilt] .efx-glare2, [data-tilt] > .efx-glare2 { opacity: 1; }

/* ---------- Глубина фото ---------- */
[data-efx-depth] { transition: transform .5s cubic-bezier(.2, .8, .2, 1); transform: translate3d(calc(var(--dx, 0) * -34px), calc(var(--dy, 0) * 10px), 0) rotate(calc(var(--dx, 0) * -2deg)); }
.efx-grad canvas { transition: transform .9s cubic-bezier(.2, .8, .2, 1); transform: scale(1.12) translate3d(calc(var(--dx, 0) * 50px), calc(var(--dy, 0) * 32px), 0); }


/* ---- просмотр фото ---- */
.efx-lb { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top)) 16px; background: rgba(30, 24, 20, .82); animation: efxLb .3s ease; cursor: zoom-out; }
@keyframes efxLb { from { opacity: 0; } }
.efx-lb figure { margin: 0; max-width: min(1100px, 100%); }
.efx-lb img { display: block; max-width: 100%; max-height: 80vh; margin: 0 auto; }
.efx-lb figcaption { margin-top: 14px; text-align: center; color: #F4ECE4; font-family: "Yeseva One", Georgia, serif; font-size: 1.1rem; }
.efx-lb-x { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .efx-ph img, .efx-cf-main img.is-in, .efx-lf-main img.is-in, .efx-ci-preview img { transition: none; animation: none; } }
@media (max-width: 860px) { .efx-ci-t { font-size: 1.02rem; } }

/* =========================================================
   Сертификаты и занятия: исходная сетка карточек, отполированная.
   A — снимок целиком на светлой плашке, ровные карточки, аккуратные подписи
   B — как A + номер 01–03 и тонкая линия над подписью
   C — как A, но снимок в рамке-паспарту с тонкой золотистой каймой
   ========================================================= */
[data-efx-pc] { border-radius: 22px !important; box-shadow: 0 1px 2px rgba(60, 40, 30, .06), 0 18px 40px -26px rgba(90, 50, 40, .35) !important;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s !important; }
[data-efx-pc]:hover { box-shadow: 0 1px 2px rgba(60, 40, 30, .06), 0 30px 50px -28px rgba(90, 50, 40, .5) !important; }
[data-efx-pc] > div:first-child { border-radius: 16px !important; margin: 12px 12px 0; background: #F4EFE8 !important; }
#sec-certs [data-efx-pc] { display: flex; flex-direction: column; }
#sec-certs [data-efx-pc] > div:first-child { aspect-ratio: 5 / 4 !important; height: auto !important; }
#sec-certs [data-efx-pc] > div:first-child img { object-fit: contain !important; padding: 16px; transform: none !important; transition: transform .7s cubic-bezier(.2, .8, .2, 1) !important; }
[data-efx-pc]:hover > div:first-child img { transform: scale(1.04) !important; }
#sec-certs [data-efx-pc] > div:last-of-type { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 18px 22px 22px !important; }
[data-efx-pc] h3, [data-efx-pc] p { margin: 0; font-size: 1rem !important; line-height: 1.45 !important; color: #4A4A4A !important; font-weight: 400 !important; text-wrap: balance; }
#sec-certs .grid, #sec-lessons .grid { align-items: stretch; }

/* B: номер и линия */
[data-efx-pc]-no { display: block; margin: 0 auto 10px; padding-bottom: 10px; width: 48px; border-bottom: 1px solid rgba(193, 123, 108, .5); font-family: "Yeseva One", Georgia, serif; font-size: 1.35rem; line-height: 1; color: #C17B6C; text-align: center; }

/* C: рамка-паспарту */
.efx-cv3 #sec-certs [data-efx-pc] > div:first-child, .efx-mv3 #sec-lessons [data-efx-pc] > div:first-child { background: #FBF8F3 !important; box-shadow: inset 0 0 0 1px rgba(212, 175, 122, .55), inset 0 0 0 7px #FBF8F3, inset 0 0 0 8px rgba(212, 175, 122, .3); border-radius: 6px !important; }
.efx-cv3 #sec-certs [data-efx-pc] > div:first-child img { padding: 26px; filter: drop-shadow(0 6px 10px rgba(90, 50, 40, .18)); }
.efx-mv3 #sec-lessons [data-efx-pc] > div:first-child { padding: 12px; }
.efx-mv3 #sec-lessons [data-efx-pc] > div:first-child img { border-radius: 2px; }
#sec-lessons [data-efx-pc] > div:last-of-type { padding: 16px 20px 20px !important; }
/* плашка: размер задаёт сама плашка, а не картинка */
html body #sec-certs [data-efx-pc] > div:first-child { position: relative; aspect-ratio: 5 / 4 !important; height: auto !important; min-height: 0 !important; background: #F4EFE8 !important; }
html body #sec-certs [data-efx-pc] > div:first-child img { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; }
html body #sec-lessons [data-efx-pc] > div:first-child { background: #F4EFE8 !important; }
html.efx-cv3 body #sec-certs [data-efx-pc] > div:first-child, html.efx-mv3 body #sec-lessons [data-efx-pc] > div:first-child { background: #FBF8F3 !important; }

/* ---------- Сертификаты и «Как проходят занятия»: исходный вид без лупы и без зума внутри карточки ---------- */
.efx-soft #sec-certs .group > div:first-child::after, .efx-soft #sec-lessons .group > div:first-child::after,
.efx-soft #sec-certs .group > div:first-child::before, .efx-soft #sec-lessons .group > div:first-child::before { display: none !important; }
.efx-soft #sec-certs .group img, .efx-soft #sec-lessons .group img { transform: none !important; transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .4s ease !important; }
.efx-soft #sec-certs .group:hover img { transform: translateY(-4px) !important; }
.efx-soft #sec-lessons .group { transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .6s ease !important; }
@media (hover: hover) { .efx-soft #sec-lessons .group:hover { transform: translateY(-4px); } }
/* в просмотре фото курсор подсказывает зум */
.lbx .lbx-img { cursor: zoom-in; }
.lbx.is-zoomed .lbx-img { cursor: grab; }

/* сертификаты чуть крупнее (~18% для вертикальных) */
html.efx-soft body #sec-certs .group > div:first-child { aspect-ratio: 6 / 5 !important; }
html.efx-soft body #sec-certs .group > div:first-child img { padding: 8px !important; }

/* блик на кнопках «Записаться» — внутри кнопки, по её форме (на телефоне тоже) */
.efx-shine { position: absolute; inset: 0; z-index: 1; border-radius: inherit; overflow: hidden; pointer-events: none; }
.efx-shine::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 35%; transform: translateX(-160%) skewX(-20deg); will-change: transform;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: efxShine 3.6s ease-in-out infinite; }
@keyframes efxShine { 0%, 55% { transform: translateX(-160%) skewX(-20deg); } 100% { transform: translateX(420%) skewX(-20deg); } }
@media (prefers-reduced-motion: reduce) { .efx-shine::after { animation: none; display: none; } }

/* переход от первого экрана: подложка сайта тоже плавно уходит в фон */
.efx-soft #root section:first-of-type > div[class^="absolute inset-0 bg-gradient-to-br"] { -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); }

/* фото на первом экране: приближение при наведении/касании медленное и мягкое */
html.efx-soft #root div[class="relative cursor-pointer w-full max-w-none"] { transform: none !important; }
html.efx-soft #root div[class="relative cursor-pointer w-full max-w-none"] > img { transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); transform-origin: 50% 60%; }
@media (hover: hover) { html.efx-soft #root div[class="relative cursor-pointer w-full max-w-none"]:hover > img { transform: scale(1.04); } }
/* фон первого экрана на всю ширину окна (у секции бывает на 15px уже — оставалась полоска справа) */
.efx-grad { right: auto; width: 100vw; }
.efx-soft #root section:first-of-type > div[class^="absolute inset-0 bg-gradient-to-br"] { right: auto; width: 100vw; }
