/* Эффекты наведения и стекла (glav-seo). Только transform/opacity, наведение — только на устройствах с мышкой. */

/* 1. Свечение за курсором */
.gs-fx-glow { position: relative; isolation: isolate; }
.gs-fx-glow::before, .gs-fx-glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; z-index: 3; }
.gs-fx-glow::before { background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,138,0,.18), transparent 60%); }
.gs-fx-glow::after { padding: 1.5px; background: radial-gradient(180px circle at var(--gx, 50%) var(--gy, 50%), var(--acc, #ff8a00), transparent 70%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@media (hover: hover) and (pointer: fine) {
	.gs-fx-glow { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
	.gs-fx-glow:hover::before, .gs-fx-glow:hover::after { opacity: 1; }
	.gs-fx-glow:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -18px rgba(255,138,0,.45); }
	.gs-fx-glow img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
	.gs-fx-glow:hover img { transform: scale(1.05); }
	.gs-fx-glow .gp-sq--acc, .gs-fx-glow .go-sq { transition: transform .3s; }
	.gs-fx-glow:hover .gp-sq--acc { transform: translateX(4px); }
	.gs-prod.is-hl { transform: none; }
}

/* 2. 3D-наклон тарифов */
.gp-prices, .go-kits { perspective: 1100px; }
.gs-fx-tilt { transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.7,.2,1); will-change: auto; }
.gs-fx-shine { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .3s; border-radius: inherit; mix-blend-mode: soft-light;
	background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.9) 48%, transparent 62%); background-size: 250% 250%; background-position: var(--sx, 50%) var(--sy, 50%); }
@media (hover: hover) and (pointer: fine) {
	.gs-fx-tilt:hover .gs-fx-shine { opacity: 1; }
	.gs-fx-tilt:hover { box-shadow: 0 26px 50px -24px rgba(21,21,21,.35); }
	.gs-fx-tilt .gp-mini--acc, .gs-fx-tilt .go-mini--acc { transition: transform .5s; }
	.gs-fx-tilt:hover .gp-mini--acc { transform: translateZ(30px); }
}

/* 3. Кнопки (тип определяется скриптом по цвету: gs-b-acc / gs-b-line / gs-b-dark / gs-b-any) */
.gs-b { position: relative; overflow: hidden; isolation: isolate; }
.gs-b .gs-fx-l { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: inherit; transition: transform .35s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.gs-b-acc::after, .gs-b-any::after { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); pointer-events: none;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); transition: transform .7s; }
.gs-b-line::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--ink, #151515); transform: translateY(101%); transition: transform .4s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.gs-b-line.gs-b-w::before { background: #fff; }
@property --gs-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.gs-b-dark::before { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; padding: 2px; pointer-events: none; opacity: 0; transition: opacity .3s;
	background: conic-gradient(from var(--gs-a), transparent 0 60%, var(--acc, #ff8a00) 80%, #ffd08a 90%, transparent);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@keyframes gs-spin { to { --gs-a: 360deg; } }
.gs-fx-mag { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, background-color .2s, color .2s, filter .2s !important; }
@media (hover: hover) and (pointer: fine) {
	.gs-b-acc:hover::after, .gs-b-any:hover::after { transform: skewX(-20deg) translateX(420%); }
	.gs-b-acc:hover { box-shadow: 0 14px 30px -10px rgba(255,138,0,.7); filter: none; }
	.gs-b-line:hover { background-color: transparent !important; color: #fff !important; }
	.gs-b-line:hover::before { transform: none; }
	.gs-b-line.gs-b-w:hover { color: var(--ink, #151515) !important; }
	.gs-b-dark:hover::before { opacity: 1; animation: gs-spin 2.6s linear infinite; }
	.gs-b-dark:hover { box-shadow: 0 14px 30px -12px rgba(21,21,21,.55); }
}
.gs-b:active { transform: scale(.97) !important; }

/* 4. Рифлёное стекло на картинке первого экрана */
.gs-fx-ribs { position: absolute; z-index: 1; pointer-events: none; display: flex; overflow: hidden;
	-webkit-mask: linear-gradient(90deg, transparent 0 44%, #000 58%); mask: linear-gradient(90deg, transparent 0 44%, #000 58%); }
.gs-fx-ribs i { flex: 1; background-repeat: no-repeat; transition: background-position .9s cubic-bezier(.2,.7,.2,1);
	box-shadow: inset 10px 0 18px -10px rgba(255,255,255,.5), inset -12px 0 18px -10px rgba(0,0,0,.16); }
.gp-hero-photo .gp-badges { z-index: 2; }
.go-hero-photo .go-badges { z-index: 2; }

/* 5. Жидкое стекло: плашки первого экрана и шапка при прокрутке */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.gp-hero-photo .gp-badge, .go-hero-photo .go-badge { background: rgba(255,255,255,.34); color: #151515; border: 1px solid rgba(255,255,255,.6);
		-webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
		box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -8px 18px rgba(255,255,255,.14), 0 12px 30px -10px rgba(80,30,0,.35); transition: transform .35s, background .35s; }
	.gp-hero-photo .gp-badge small, .go-hero-photo .go-badge small { color: #4a4a4a; }
	.gp-hero-photo .gp-badge b, .go-hero-photo .go-badge b { color: #151515; }
	@media (hover: hover) and (pointer: fine) {
		.gp-hero-photo .gp-badge:hover, .go-hero-photo .go-badge:hover { transform: translateY(-3px); background: rgba(255,255,255,.5); }
	}
	.gh.is-scrolled { background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); }
	.gh.is-scrolled .gh-nav { background: rgba(240,239,235,.7); }
}

/* ---------- Телефоны: касание и прокрутка ---------- */
@property --gx { syntax: "<length-percentage>"; inherits: true; initial-value: 50%; }
@property --gy { syntax: "<length-percentage>"; inherits: true; initial-value: 50%; }
.gs-fx-touch .gs-fx-glow { transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.gs-fx-touch .gs-fx-glow.is-touch::before, .gs-fx-touch .gs-fx-glow.is-touch::after { opacity: 1; transition: opacity .15s; }
.gs-fx-touch .gs-fx-glow.is-touch { transform: scale(.985); box-shadow: 0 16px 34px -18px rgba(255,138,0,.5); }
.gs-fx-touch .gs-fx-glow.is-live::after, .gs-fx-touch .gs-fx-tilt.is-live::after { opacity: 1; animation: gs-sweep 1.4s cubic-bezier(.4,0,.2,1) both; }
.gs-fx-touch .gs-fx-tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; z-index: 3; padding: 2px;
	background: radial-gradient(180px circle at var(--gx, 50%) var(--gy, 50%), var(--acc, #ff8a00), transparent 70%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@keyframes gs-sweep { 0% { --gx: -10%; --gy: 0%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { --gx: 110%; --gy: 100%; opacity: 0; } }
.gs-fx-touch .gs-fx-tilt { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.gs-fx-touch .gs-fx-tilt.is-touch .gs-fx-shine { opacity: 1; }
.gs-b-acc.is-press::after, .gs-b-any.is-press::after { transition: transform .6s; transform: skewX(-20deg) translateX(420%); }
.gs-b-line.is-press::before { transform: none; }
.gs-b-line.is-press { color: #fff !important; }
.gs-b-line.gs-b-w.is-press { color: var(--ink, #151515) !important; }
.gs-b-dark.is-press::before { opacity: 1; animation: gs-spin .75s linear; }
.gs-b.is-press { box-shadow: 0 10px 24px -10px rgba(255,138,0,.6); }
.gs-fx-touch .gs-b-acc.gs-idle::after { animation: gs-idle 4.5s ease-in-out 1.2s infinite; }
@keyframes gs-idle { 0%, 70% { transform: skewX(-20deg) translateX(0); } 88%, 100% { transform: skewX(-20deg) translateX(420%); } }
.gs-fx-ribs.is-touch i { transition: background-position .35s ease-out; }

@media (prefers-reduced-motion: reduce) {
	.gs-fx-glow, .gs-fx-glow img, .gs-fx-tilt, .gs-fx-mag, .gs-b .gs-fx-l, .gs-fx-ribs i { transition: none !important; transform: none !important; }
	.gs-b-dark:hover::before { animation: none; }
}
