fix: hero neuro-audit v2 — missing transparent states + icon thickness
- Add :focus-visible, :active states on all buttons (CTA, sticky-cta, btn-primary) - Add transition (200ms ease) on sticky-cta__btn - Match btn-primary:hover shadow to new solid base - Increase social-proof icon stroke-width 2→2.5 for visibility
This commit is contained in:
parent
40c0f6b8d3
commit
48691f0a7d
@ -26,7 +26,8 @@ main{display:flex;flex-direction:column;gap:0}
|
||||
.mobile{display:none !important}
|
||||
.desktop{display:flex}
|
||||
.btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:14px 32px;background:var(--color-primary);color:#fff;border:none;border-radius:var(--radius-pill);font-size:16px;font-weight:600;font-family:Roboto,sans-serif;cursor:pointer;transition:transform .15s,box-shadow .15s;box-shadow:0 4px 16px rgba(0,0,0,.25);text-decoration:none;min-height:48px}
|
||||
.btn-primary:hover{transform:translateY(-1px);box-shadow:var(--shadow-md)}
|
||||
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 8px 24px rgba(0,0,0,.3)}
|
||||
.btn-primary:focus-visible{outline:3px solid var(--color-primary);outline-offset:3px}
|
||||
.section-bg{position:relative}
|
||||
.section-bg::before{content:'';position:absolute;top:0;bottom:0;left:calc(-50vw + 50%);width:100vw;z-index:-1}
|
||||
.ds-hero{position:relative;padding:48px 0;overflow:hidden;background:var(--color-bg-dark);background-image:radial-gradient(ellipse 80% 70% at 20% 40%,rgba(124,58,237,.08) 0%,transparent 70%),radial-gradient(ellipse 60% 60% at 80% 60%,rgba(168,85,247,.06) 0%,transparent 70%)}
|
||||
@ -49,10 +50,11 @@ main{display:flex;flex-direction:column;gap:0}
|
||||
.ds-hero__address svg{flex-shrink:0}
|
||||
.ds-hero__hours-badge{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:rgba(255,255,255,.88);padding:2px 10px;border-radius:100px;white-space:nowrap}
|
||||
.ds-hero__social-proof{display:inline-flex;align-items:center;gap:8px;margin-top:12px;padding:8px 16px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.15);border-radius:10px;font-size:16px;color:rgba(255,255,255,.9);font-weight:500;line-height:1.5;max-width:520px}
|
||||
.ds-hero__social-proof svg{flex-shrink:0;opacity:.8}
|
||||
.ds-hero__social-proof svg{flex-shrink:0;opacity:.8;stroke-width:2.5}
|
||||
.ds-hero__cta-btn{display:inline-flex;align-items:center;gap:8px;font-family:var(--font-body);font-weight:600;background:var(--color-primary);color:#fff;border:none;border-radius:var(--radius-pill);cursor:pointer;padding:16px 40px;font-size:17px;box-shadow:0 4px 16px rgba(0,0,0,.25);margin:14px 0;text-decoration:none;width:fit-content;transition:transform 150ms ease,box-shadow 150ms ease,background 200ms ease}
|
||||
.ds-hero__cta-btn:hover{background:var(--color-primary-hover)}
|
||||
.ds-hero__cta-btn:active{transform:scale(0.98);box-shadow:0 2px 8px rgba(0,0,0,.2)}
|
||||
.ds-hero__cta-btn:focus-visible{outline:3px solid var(--color-primary);outline-offset:3px}
|
||||
.ds-hero__phone{margin-top:10px;font-size:16px;color:rgba(255,255,255,.88)}
|
||||
.ds-hero__phone a{color:rgba(255,255,255,.9);font-weight:500;text-decoration:underline}
|
||||
.ds-hero__messengers{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
|
||||
@ -74,5 +76,8 @@ main{display:flex;flex-direction:column;gap:0}
|
||||
@media(max-width:860px){.desktop{display:none!important}.mobile{display:flex!important}body{padding-top:30px}.header{position:fixed;top:0;z-index:100}.header-nav{padding:23px 10px}.top-header-row{padding:0;border-bottom:none}.header-logo img{width:158px;height:30px;margin-left:-10px}.icon-links{display:flex;gap:25px;align-items:center}.burger-btn{margin-left:5px;display:flex;flex-direction:column;gap:6px;width:24px;height:18px;background:0 0;border:none;padding:0}.burger-btn span{width:100%;height:2px;background-color:#fff;border-radius:1px}.bottom-header-row{position:absolute;right:10px;top:30px}.menu-wrapper{display:none;position:fixed;left:0;top:120px;z-index:999999;background:#fff;width:100%;height:calc(100vh - 130px);overflow:auto;padding-bottom:100px}.bottom-header-row.open .menu-wrapper{display:flex;flex-direction:column}.header-menu{width:100%;display:block;font-size:16px;padding:70px 10px 0}.header-nav a{color:#000}.header-menu .menu-item{padding:10px 0;border-bottom:1px solid #8c8c8c75}.header-menu .menu-item:last-child{border-bottom:none}.header-menu .menu-item-has-children{flex-direction:column;align-items:flex-start}.header-menu .menu-item-has-children::before{width:14px;height:18px;right:17px;background-image:url(../images/slider-arow.svg);rotate:-90deg}.header-menu .sub-menu{position:relative;top:100%;padding:0;visibility:hidden;width:max-content;gap:0;border-radius:0;overflow:hidden;max-height:0;background:#fff}.header-menu .menu-item-has-children:hover .sub-menu{visibility:visible;max-height:100vh}.header-menu .menu-item-has-children:hover::before{rotate:90deg}.btn-free-lesson-header{display:none;width:286px;margin:30px auto 0}.btn-close-menu{width:286px;margin:10px auto 0;background:#ffd43e;border-radius:10px;padding:10px;font-family:Oswald;font-weight:500;font-size:22px;display:flex;justify-content:center;text-transform:uppercase;color:var(--main-color);border:none;cursor:pointer}.icon-close-menu{position:absolute;top:6px;right:10px}}
|
||||
.sticky-cta{display:none;position:fixed;bottom:0;left:0;right:0;z-index:1000;padding:8px 16px max(12px,env(safe-area-inset-bottom));background:linear-gradient(to top,rgba(255,255,255,.98) 60%,transparent)}
|
||||
.sticky-cta--visible{display:block}
|
||||
.sticky-cta__btn{width:100%;height:56px;border:none;border-radius:var(--radius-pill);background:var(--color-primary);color:#fff;font-size:18px;font-weight:700;font-family:Roboto,sans-serif;cursor:pointer;box-shadow:0 4px 20px rgba(0,0,0,.2);display:flex;align-items:center;justify-content:center;gap:8px}
|
||||
.sticky-cta__btn{width:100%;height:56px;border:none;border-radius:var(--radius-pill);background:var(--color-primary);color:#fff;font-size:18px;font-weight:700;font-family:Roboto,sans-serif;cursor:pointer;box-shadow:0 4px 20px rgba(0,0,0,.2);display:flex;align-items:center;justify-content:center;gap:8px;transition:transform 200ms ease,box-shadow 200ms ease,background 200ms ease}
|
||||
.sticky-cta__btn:hover{background:var(--color-primary-hover)}
|
||||
.sticky-cta__btn:active{transform:scale(0.97)}
|
||||
.sticky-cta__btn:focus-visible{outline:3px solid var(--color-primary);outline-offset:3px}
|
||||
@media(max-width:639px){.sticky-cta{display:block}body{padding-bottom:80px}}
|
||||
|
||||
@ -10496,7 +10496,7 @@ footer a:hover,
|
||||
.btn-primary:hover,
|
||||
.btn-primary:focus-visible {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: var(--shadow-md);
|
||||
box-shadow: 0 8px 24px rgba(0,0,0,.3);
|
||||
}
|
||||
|
||||
.btn-primary:active {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user