/* ===== RESET & BASE ===== */
* { margin:0; padding:0; box-sizing:border-box; }
html, body { overflow-x:hidden; width:100%; min-height:100vh; background:#050505; color:#f3f3f3; font-family:'Inter',sans-serif; font-size:15px; line-height:1.5; scroll-behavior:smooth; }
a { color:inherit; text-decoration:none; cursor:pointer; }
.container { max-width:1200px; margin:0 auto; padding:0 20px; position:relative; z-index:2; }

/* ===== ФОН ===== */
.site-background { position:fixed; inset:0; width:100%; height:100%; pointer-events:none; z-index:-1; background-color:#050505; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 1080'%3E%3Cdefs%3E%3CradialGradient id='atm' cx='50%25' cy='40%25' r='60%25'%3E%3Cstop offset='0%25' stop-color='%232a0a4a' stop-opacity='0.12'/%3E%3Cstop offset='100%25' stop-color='%23050505' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='%23050505'/%3E%3Crect width='100%25' height='100%25' fill='url(%23atm)'/%3E%3Cline x1='0' y1='200' x2='1920' y2='200' stroke='%237B2CFF' stroke-width='0.5' opacity='0.03'/%3E%3Cline x1='0' y1='400' x2='1920' y2='400' stroke='%237B2CFF' stroke-width='0.8' opacity='0.04'/%3E%3Cline x1='0' y1='600' x2='1920' y2='600' stroke='%237B2CFF' stroke-width='0.3' opacity='0.02'/%3E%3Cline x1='0' y1='800' x2='1920' y2='800' stroke='%237B2CFF' stroke-width='0.6' opacity='0.035'/%3E%3Cline x1='0' y1='1000' x2='1920' y2='1000' stroke='%237B2CFF' stroke-width='0.4' opacity='0.025'/%3E%3Cline x1='200' y1='0' x2='200' y2='1080' stroke='%237B2CFF' stroke-width='0.3' opacity='0.02'/%3E%3Cline x1='600' y1='0' x2='600' y2='1080' stroke='%237B2CFF' stroke-width='0.3' opacity='0.02'/%3E%3Cline x1='1000' y1='0' x2='1000' y2='1080' stroke='%237B2CFF' stroke-width='0.3' opacity='0.015'/%3E%3Cline x1='1400' y1='0' x2='1400' y2='1080' stroke='%237B2CFF' stroke-width='0.3' opacity='0.02'/%3E%3Cline x1='1700' y1='0' x2='1700' y2='1080' stroke='%237B2CFF' stroke-width='0.3' opacity='0.015'/%3E%3Cpath d='M0,300 Q240,200 480,300 T960,300 T1440,300 T1920,300' stroke='%237B2CFF' stroke-width='1.2' fill='none' opacity='0.05'/%3E%3Cpath d='M0,500 Q240,400 480,500 T960,500 T1440,500 T1920,500' stroke='%237B2CFF' stroke-width='0.8' fill='none' opacity='0.035'/%3E%3Cpath d='M0,700 Q240,600 480,700 T960,700 T1440,700 T1920,700' stroke='%237B2CFF' stroke-width='1.5' fill='none' opacity='0.045'/%3E%3Cpath d='M0,900 Q240,800 480,900 T960,900 T1440,900 T1920,900' stroke='%237B2CFF' stroke-width='0.6' fill='none' opacity='0.03'/%3E%3C/svg%3E"); background-size:cover; background-position:center; background-repeat:no-repeat; animation:bgFloat 60s ease-in-out infinite alternate; will-change:transform; }
@keyframes bgFloat { 0% { transform:scale(1) translateX(0) translateY(0); } 100% { transform:scale(1.02) translateX(-8px) translateY(-4px); } }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width:10px; }
::-webkit-scrollbar-track { background:#050505; }
::-webkit-scrollbar-thumb { background:#7B2CFF; border:2px solid #050505; }
::-webkit-scrollbar-thumb:hover { background:#9E45FF; }

/* ===== HEADER ===== */
.header { position:sticky; top:0; z-index:100; padding:1rem 0; background:rgba(5,5,5,0.6); backdrop-filter:blur(6px); border-bottom:1px solid rgba(123,44,255,0.15); }
.header-inner { display:flex; align-items:center; justify-content:space-between; gap:1.5rem; flex-wrap:wrap; }
.logo { font-family:'Inter',sans-serif; font-size:0.82rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:#f3f3f3; padding:0.55rem 1.15rem; border:1px solid rgba(123,44,255,0.4); border-radius:60px; transition:0.25s; display:inline-flex; align-items:center; gap:0.4rem; }
.logo:hover { background:#7B2CFF; border-color:#7B2CFF; box-shadow:0 0 18px rgba(123,44,255,0.3); }
.logo::after { content:none; }
.nav { display:flex; gap:2rem; margin-left:auto; align-items:center; font-family:'Inter',sans-serif; font-weight:600; font-size:0.9rem; color:#a7a7a7; text-transform: uppercase; letter-spacing: 0.05em; }
.nav a { transition:color 0.2s; position:relative; padding-bottom:2px; }
.nav a.active { color:#f3f3f3; }
.nav a.active::after { content:''; position:absolute; left:0; right:0; bottom:-2px; height:1px; background:#7B2CFF; }
.nav a:hover { color:#f3f3f3; }
.burger { display:none; flex-direction:column; gap:5px; cursor:pointer; background:none; border:none; padding:8px; margin:-8px; }
.burger span { width:25px; height:2px; background:#f3f3f3; transition:0.3s; }
.burger:focus-visible { outline:2px solid #9E45FF; outline-offset:2px; }

/* Видимый фокус для интерактивных элементов */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible {
    outline:2px solid #9E45FF; outline-offset:3px; border-radius:4px;
}

/* Цвет выделения текста */
::selection { background:rgba(123,44,255,0.55); color:#fff; }

/* ===== HERO ===== */
.hero { position:relative; min-height:100vh; display:flex; align-items:center; overflow:hidden; isolation:isolate; z-index:1; }
#heroSpectrum3d { position:absolute; top:0; left:0; width:100%; height:100%; display:block; z-index:3; pointer-events:none; opacity:0.45; mix-blend-mode:screen; }
.hero-content { position:relative; z-index:2; display:flex; flex-direction:column; justify-content:center; align-items:center; min-height:100vh; padding:1rem 0; text-align:center; width:100%; perspective:800px; }
.hero-title { font-family:'Anton',sans-serif; font-size:clamp(3.5rem,12vw,14rem); font-weight:400; letter-spacing:-0.03em; line-height:0.9; text-transform:uppercase; color:#f3f3f3; max-width:100%; word-break:break-word; text-shadow:0 0 40px rgba(0,0,0,0.5); position:relative; z-index:2; opacity:0; transform:perspective(800px) rotateX(25deg) translateZ(-300px) scale(1.2); transition:none; }
.hero-title.animated { opacity:1; transform:perspective(800px) rotateX(0deg) translateZ(0) scale(1); transition:transform 1.4s cubic-bezier(0.23,1,0.32,1), opacity 1.2s ease; }
.hero-sub { font-family:'Inter',sans-serif; font-size:clamp(1rem,2.5vw,2rem); font-weight:600; letter-spacing:0.3em; text-transform:uppercase; color:#a7a7a7; margin-top:0.5rem; position:relative; z-index:2; opacity:0; transform:perspective(800px) rotateX(15deg) translateZ(-100px) scale(0.9); transition:none; }
.hero-sub.animated { opacity:1; transform:perspective(800px) rotateX(0deg) translateZ(0) scale(1); transition:transform 0.9s cubic-bezier(0.23,1,0.32,1) 0.4s, opacity 0.8s ease 0.4s; }
.hero-cta { display:flex; justify-content:center; margin-top:2rem; position:relative; z-index:2; opacity:0; transform:translateY(30px) scale(0.95); transition:none; }
.hero-cta.animated { opacity:1; transform:translateY(0) scale(1); transition:transform 0.7s cubic-bezier(0.23,1,0.32,1) 0.8s, opacity 0.6s ease 0.8s; }

/* ===== BUTTONS ===== */
.hero-cta .btn-primary { font-size:clamp(1rem,2vw,1.4rem); padding:1rem 3rem; border-width:2px; }
.btn-primary { display:inline-block; padding:1rem 2.8rem; border:1px solid rgba(123,44,255,0.6); border-radius:60px; font-family:'Inter',sans-serif; font-weight:700; font-size:1rem; text-transform:uppercase; letter-spacing:0.05em; color:#f3f3f3; background:rgba(0,0,0,0.3); backdrop-filter:blur(4px); transition:0.25s; cursor:pointer; line-height:1.2; text-align:center; }
.btn-primary:hover { background:#7B2CFF; border-color:#7B2CFF; box-shadow:0 0 20px rgba(123,44,255,0.3); transform:scale(1.02); }
.btn-secondary { display:inline-block; padding:0.6rem 1.8rem; border:1px solid rgba(123,44,255,0.4); border-radius:60px; font-family:'Inter',sans-serif; font-weight:600; font-size:0.85rem; text-transform:uppercase; letter-spacing:0.05em; color:#f3f3f3; background:rgba(0,0,0,0.3); backdrop-filter:blur(4px); transition:0.25s; cursor:pointer; line-height:1.2; }
.btn-secondary:hover { background:#7B2CFF; border-color:#7B2CFF; box-shadow:0 0 15px rgba(123,44,255,0.25); }

/* ===== SECTION ===== */
.section { padding:5rem 0; position:relative; z-index:2; }
.section + .section { padding-top:2.5rem; }
#portfolio { padding-top:3rem; }
.section-header { margin-bottom:3rem; text-align: center; }
#portfolio .section-header { margin-bottom:2.2rem; }
.section-title { font-family:'Anton',sans-serif; font-size:clamp(2rem,5vw,3.5rem); font-weight:400; letter-spacing:-0.02em; line-height:1.1; text-transform:uppercase; color:#f3f3f3; margin-bottom:1rem; }
.section-sub { font-family:'Inter',sans-serif; font-size:1rem; color:#a7a7a7; max-width:500px; margin:0 auto 2rem; }

/* ===== STATS ===== */
.stats-section { padding-top:0; }
.stats-section + .section { padding-top:2.5rem; }
.stats-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.2rem; }
.stat-card { background:#0d0d10; border:1px solid rgba(123,44,255,0.16); border-radius:14px; padding:2rem 1.4rem; text-align:center; display:flex; flex-direction:column; align-items:center; gap:0.5rem; transition:transform .35s cubic-bezier(0.23,1,0.32,1), border-color .3s, box-shadow .35s; }
.stat-card:hover { border-color:rgba(158,69,255,0.55); transform:translateY(-4px); box-shadow:0 14px 34px rgba(123,44,255,0.16); }
.stat-num { font-family:'Anton',sans-serif; font-size:clamp(2.2rem,6vw,4rem); line-height:1; letter-spacing:-0.02em; color:#f3f3f3; background:linear-gradient(135deg,#ffffff 0%,#a97bff 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.stat-label { font-family:'Inter',sans-serif; font-size:0.72rem; text-transform:uppercase; letter-spacing:0.12em; color:#a7a7a7; }
@media (max-width:760px) { .stats-grid { grid-template-columns:1fr; } }
@media (max-width:520px) { .stat-card { padding:1.5rem 1rem; } }

/* ===== SERVICES ===== */
.services-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.2rem; }
.service-card { background:#0d0d10; border:1px solid rgba(123,44,255,0.16); border-radius:14px; padding:2rem 1.4rem; text-align:center; display:flex; flex-direction:column; align-items:center; gap:0.9rem; transition:transform .35s cubic-bezier(0.23,1,0.32,1), border-color .3s, box-shadow .35s; }
.service-card:hover { border-color:rgba(158,69,255,0.55); transform:translateY(-4px); box-shadow:0 14px 34px rgba(123,44,255,0.16); }
.service-icon { width:2.4rem; height:2.4rem; color:#a97bff; transition:transform .3s, color .3s; }
.service-card:hover .service-icon { transform:scale(1.12); color:#c9aaff; }
.service-name { font-family:'Anton',sans-serif; font-size:1.15rem; font-weight:400; letter-spacing:0.04em; text-transform:uppercase; color:#f3f3f3; }
.service-desc { font-family:'Inter',sans-serif; font-size:0.82rem; line-height:1.55; color:#8e8e8e; }
@media (max-width:760px) { .services-grid { grid-template-columns:1fr; } }
@media (max-width:520px) { .service-card { padding:1.5rem 1.2rem; } }

/* ===== PORTFOLIO / CASES MARQUEE ===== */
/* touch-action: pan-y — горизонтальное перетаскивание обрабатывает наш скрипт,
   вертикальная прокрутка страницы остаётся нативной (без конфликта и дёрганий). */
.marquee { position:relative; z-index:2; overflow:hidden; will-change:transform; margin:0 calc(50% - 50vw); padding:0 0 1.1rem; touch-action:pan-y; -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image:linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.marquee-track { display:flex; gap:1rem; width:max-content; will-change:transform; transform:translate3d(0,0,0); backface-visibility:hidden; contain:layout style; }
.marquee-track .case { contain:layout paint style; }
.marquee { contain:paint; }
.marquee-track { transform-style:flat; }
.case { position:relative; }

.case { width:250px; flex:0 0 250px; }
.portfolio-card { background:#0d0d10; border:1px solid rgba(123,44,255,0.16); border-radius:14px; overflow:hidden; transition:transform .35s cubic-bezier(0.23,1,0.32,1), border-color .3s, box-shadow .35s; cursor:pointer; position:relative; height:100%; contain:paint; }
.portfolio-card:hover { border-color:rgba(158,69,255,0.55); transform:translateY(-6px); box-shadow:0 18px 44px rgba(123,44,255,0.18); }

.track-cover { width:100%; aspect-ratio:1/1; background:linear-gradient(135deg,#170a29 0%,#2e1550 100%); position:relative; overflow:hidden; }
.track-cover img { width:100%; height:100%; object-fit:cover; display:block; transform:translateZ(0); }
.portfolio-card:hover .track-cover img { transform:scale(1.07) translateZ(0); transition:transform .6s cubic-bezier(0.23,1,0.32,1); }
.portfolio-card .track-cover img { transition:transform .45s cubic-bezier(0.23,1,0.32,1); }
.portfolio-card::after { content:''; position:absolute; inset:0; border-radius:14px; background:linear-gradient(180deg, rgba(5,5,5,0) 45%, rgba(5,5,5,0.75) 100%); opacity:.7; pointer-events:none; }

.track-info { padding:1rem 1.1rem 1.1rem; }
.track-title { font-family:'Inter',sans-serif; font-size:1.05rem; font-weight:700; letter-spacing:0.01em; color:#f3f3f3; margin-bottom:0.2rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.track-artist { font-family:'Inter',sans-serif; font-size:0.78rem; color:#8e8e8e; margin-bottom:0.7rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.track-genre { font-family:'Inter',sans-serif; font-size:0.62rem; color:#a97bff; text-transform:uppercase; letter-spacing:0.1em; background:rgba(123,44,255,0.1); border:1px solid rgba(123,44,255,0.22); padding:0.18rem 0.5rem; border-radius:20px; display:inline-block; }

.play-btn { position:absolute; top:calc(50% - 96px); left:50%; transform:translate(-50%,-50%) scale(0.85); width:52px; height:52px; border-radius:50%; background:rgba(10,6,20,0.72); border:1px solid rgba(255,255,255,0.35); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:0.3s; opacity:0; z-index:3; text-decoration:none; -webkit-tap-highlight-color:transparent; }
.play-icon { width:22px; height:22px; fill:currentColor; display:block; margin-left:3px; }
.portfolio-card:hover .play-btn { opacity:1; transform:translate(-50%,-50%) scale(1); }
.play-btn:hover { background:#7B2CFF; border-color:#7B2CFF; box-shadow:0 0 24px rgba(123,44,255,0.45); }
/* На телефоне наведения нет — показываем кнопку всегда */
@media (hover: none) {
    .play-btn { opacity:1; transform:translate(-50%,-50%) scale(1); }
    .portfolio-card:hover .play-btn { transform:translate(-50%,-50%) scale(1); }
}

.marquee-hint { text-align:center; margin-top:1.2rem; font-family:'Inter',sans-serif; font-size:0.72rem; letter-spacing:0.12em; text-transform:uppercase; color:#4a4a4a; position:relative; z-index:2; }

.section-header, .contact-card, .marquee { opacity:0; transform:translateY(20px); }
.section-header.in, .contact-card.in, .marquee.in { opacity:1; transform:none; transition:opacity .7s ease, transform .7s cubic-bezier(0.23,1,0.32,1); }

/* ===== CONTACT ===== */
.contact-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(250px,1fr)); gap:2rem; }
.contact-card { background:rgba(13,13,16,0.75); backdrop-filter:blur(6px); border:1px solid rgba(123,44,255,0.2); border-radius:12px; padding:2.5rem 2rem; transition:0.25s; display:flex; flex-direction:column; align-items:center; gap:1.5rem; text-align:center; }
.contact-card:hover { border-color:#7B2CFF; transform:translateY(-4px); box-shadow:0 12px 40px rgba(123,44,255,0.15); }

/* ===== BRAND ICONS (contacts) ===== */
.card-title { display:flex; align-items:center; justify-content:center; gap:0.6rem; font-family:'Inter',sans-serif; font-size:0.95rem; font-weight:800; letter-spacing:0.12em; color:#f3f3f3; margin:0; }
.brand-icon { width:1.35rem; height:1.35rem; flex:0 0 auto; display:block; color:#a7a7a7; transition:color .25s, transform .25s; }
.contact-card:hover .brand-icon { transform:scale(1.12); }
.contact-card:nth-child(1):hover .brand-icon { color:#29A9EB; }
.contact-card:nth-child(2):hover .brand-icon { color:#EA4335; }
.contact-card:nth-child(3):hover .brand-icon { color:#E1306C; }

/* ===== FOOTER ===== */
.footer { padding:2rem 0; text-align:center; border-top:1px solid rgba(123,44,255,0.15); background:rgba(5,5,5,0.8); backdrop-filter:blur(6px); position:relative; z-index:2; }
.footer p { font-family:'Inter',sans-serif; font-size:0.8rem; color:#565656; letter-spacing:0.05em; text-transform:uppercase; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav { display:none; }
    .nav.open {
        display:flex; flex-direction:column; gap:1rem; align-items:flex-start;
        position:absolute; top:100%; left:0; width:100%;
        background:rgba(5,5,5,0.97); backdrop-filter:blur(10px);
        padding:1.2rem 20px 1.4rem; border-bottom:1px solid rgba(123,44,255,0.25);
    }
    .nav.open a { padding:0.35rem 0; font-size:1rem; }
    .burger { display:flex; }
    .burger.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
    .burger.open span:nth-child(2) { opacity:0; }
    .burger.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
    .contact-grid { grid-template-columns:1fr; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .site-background { animation:none; }
    .flag { animation:none; }
    html, body { scroll-behavior:auto; }
    .portfolio-card, .stat-card, .service-card, .contact-card, .track-cover img { transition:none; }
}



/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .hero-title { font-size:clamp(3.5rem,12vw,5.5rem); line-height:1.15; letter-spacing:0.02em; }
    .hero-sub { font-size:clamp(0.9rem,3vw,1.2rem); letter-spacing:0.15em; }
    .hero-cta .btn-primary { font-size:1rem; padding:0.8rem 2rem; }
    #heroSpectrum3d { opacity:0.35; }
}

@media (max-width: 480px) {
    .hero-title { font-size:clamp(3rem,13vw,4.5rem); line-height:1.15; letter-spacing:0.02em; }
    .hero-sub { font-size:clamp(0.8rem,3vw,1rem); }
    .hero-cta .btn-primary { font-size:0.9rem; padding:0.7rem 1.5rem; }
    #heroSpectrum3d { opacity:0.3; }
}

@media (min-width: 1400px) {
    .hero-title { font-size:14rem; }
}

/* ===== LANGUAGE FLAGS ===== */
.lang-switch { display:flex; gap:0.8rem; align-items:center; margin-right:1.5rem; }
.flag { width:36px; height:24px; border-radius:4px; cursor:pointer; position:relative; box-shadow:0 0 0 1px rgba(255,255,255,0.1); transition:transform 0.3s ease, box-shadow 0.3s ease; transform-style:preserve-3d; animation:flagWave 3s ease-in-out infinite alternate; flex-shrink:0; background-size:cover; background-position:center; }
.flag:hover { transform:scale(1.15) perspective(200px) rotateY(5deg); }
.flag.active { box-shadow:0 0 0 2px #7B2CFF, 0 0 15px rgba(123,44,255,0.5); transform:scale(1.1) perspective(200px) rotateY(0deg); animation-play-state:paused; }
.flag:focus-visible { outline:2px solid #9E45FF; outline-offset:2px; }
@keyframes flagWave { 0% { transform:perspective(200px) rotateY(-3deg) scale(1); } 100% { transform:perspective(200px) rotateY(3deg) scale(1); } }
.flag-ru { background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%203%202%27%3E%3Crect%20width%3D%273%27%20height%3D%272%27%20fill%3D%27%23fff%27%2F%3E%3Crect%20y%3D%270.66%27%20width%3D%273%27%20height%3D%270.66%27%20fill%3D%27%230039a6%27%2F%3E%3Crect%20y%3D%271.33%27%20width%3D%273%27%20height%3D%270.67%27%20fill%3D%27%23d52b1e%27%2F%3E%3C%2Fsvg%3E"); }
.flag-us { background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2019%2010%27%3E%3Crect%20width%3D%2719%27%20height%3D%2710%27%20fill%3D%27%23b22234%27%2F%3E%3Crect%20y%3D%271%27%20width%3D%2719%27%20height%3D%270.8%27%20fill%3D%27%23fff%27%2F%3E%3Crect%20y%3D%273%27%20width%3D%2719%27%20height%3D%270.8%27%20fill%3D%27%23fff%27%2F%3E%3Crect%20y%3D%275%27%20width%3D%2719%27%20height%3D%270.8%27%20fill%3D%27%23fff%27%2F%3E%3Crect%20y%3D%277%27%20width%3D%2719%27%20height%3D%270.8%27%20fill%3D%27%23fff%27%2F%3E%3Crect%20y%3D%279%27%20width%3D%2719%27%20height%3D%270.8%27%20fill%3D%27%23fff%27%2F%3E%3Crect%20width%3D%278.5%27%20height%3D%275.5%27%20fill%3D%27%233c3b6e%27%2F%3E%3Cg%20fill%3D%27%23fff%27%3E%3Ccircle%20cx%3D%270.5%27%20cy%3D%270.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%271.5%27%20cy%3D%270.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%272.5%27%20cy%3D%270.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%273.5%27%20cy%3D%270.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%274.5%27%20cy%3D%270.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%275.5%27%20cy%3D%270.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%276.5%27%20cy%3D%270.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%277.5%27%20cy%3D%270.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%270.5%27%20cy%3D%271.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%271.5%27%20cy%3D%271.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%272.5%27%20cy%3D%271.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%273.5%27%20cy%3D%271.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%274.5%27%20cy%3D%271.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%275.5%27%20cy%3D%271.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%276.5%27%20cy%3D%271.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%277.5%27%20cy%3D%271.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%270.5%27%20cy%3D%272.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%271.5%27%20cy%3D%272.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%272.5%27%20cy%3D%272.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%273.5%27%20cy%3D%272.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%274.5%27%20cy%3D%272.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%275.5%27%20cy%3D%272.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%276.5%27%20cy%3D%272.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%277.5%27%20cy%3D%272.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%270.5%27%20cy%3D%273.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%271.5%27%20cy%3D%273.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%272.5%27%20cy%3D%273.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%273.5%27%20cy%3D%273.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%274.5%27%20cy%3D%273.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%275.5%27%20cy%3D%273.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%276.5%27%20cy%3D%273.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%277.5%27%20cy%3D%273.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%270.5%27%20cy%3D%274.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%271.5%27%20cy%3D%274.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%272.5%27%20cy%3D%274.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%273.5%27%20cy%3D%274.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%274.5%27%20cy%3D%274.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%275.5%27%20cy%3D%274.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%276.5%27%20cy%3D%274.5%27%20r%3D%270.2%27%2F%3E%3Ccircle%20cx%3D%277.5%27%20cy%3D%274.5%27%20r%3D%270.2%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
.flag-ja { background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%203%202%27%3E%3Crect%20width%3D%273%27%20height%3D%272%27%20fill%3D%27%23fff%27%2F%3E%3Ccircle%20cx%3D%271.5%27%20cy%3D%271%27%20r%3D%270.6%27%20fill%3D%27%23bc002d%27%2F%3E%3C%2Fsvg%3E"); }
.flag-es { background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%203%202%27%3E%20%3Crect%20width%3D%273%27%20height%3D%272%27%20fill%3D%27%23AA151B%27%2F%3E%20%3Crect%20y%3D%270.5%27%20width%3D%273%27%20height%3D%271%27%20fill%3D%27%23F1BF00%27%2F%3E%20%3Cg%20transform%3D%27translate%281.06%2C0.42%29%20scale%280.17%29%27%3E%20%3Cpath%20d%3D%27M-1.6%20-1.5%20L1.6%20-1.5%20L1.6%20-0.4%20Q1.6%200.7%200%201.6%20Q-1.6%200.7%20-1.6%20-0.4%20Z%27%20fill%3D%27%23AD1519%27%20stroke%3D%27%238B0000%27%20stroke-width%3D%270.5%27%2F%3E%20%3Crect%20x%3D%27-1.6%27%20y%3D%27-0.55%27%20width%3D%271.05%27%20height%3D%271.05%27%20fill%3D%27%23F1BF00%27%2F%3E%20%3Crect%20x%3D%27-0.55%27%20y%3D%27-0.55%27%20width%3D%272.15%27%20height%3D%271.05%27%20fill%3D%27%23AD1519%27%2F%3E%20%3Crect%20x%3D%27-0.55%27%20y%3D%270.5%27%20width%3D%271.05%27%20height%3D%271.05%27%20fill%3D%27%23AD1519%27%2F%3E%20%3Crect%20x%3D%270.5%27%20y%3D%270.5%27%20width%3D%271.05%27%20height%3D%271.05%27%20fill%3D%27%23F1BF00%27%2F%3E%20%3Ccircle%20cx%3D%27-1.05%27%20cy%3D%27-0.05%27%20r%3D%270.34%27%20fill%3D%27%238B5A2B%27%20stroke%3D%27%23F1BF00%27%20stroke-width%3D%270.16%27%2F%3E%20%3Ccircle%20cx%3D%270.95%27%20cy%3D%27-0.05%27%20r%3D%270.34%27%20fill%3D%27%238B5A2B%27%20stroke%3D%27%23F1BF00%27%20stroke-width%3D%270.16%27%2F%3E%20%3Ccircle%20cx%3D%270.25%27%20cy%3D%271.0%27%20r%3D%270.34%27%20fill%3D%27%238B5A2B%27%20stroke%3D%27%23F1BF00%27%20stroke-width%3D%270.16%27%2F%3E%20%3Ccircle%20cx%3D%27-0.75%27%20cy%3D%271.0%27%20r%3D%270.34%27%20fill%3D%27%238B5A2B%27%20stroke%3D%27%23F1BF00%27%20stroke-width%3D%270.16%27%2F%3E%20%3Cpath%20d%3D%27M-1.6%20-1.5%20L-1.6%20-2.4%20M1.6%20-1.5%20L1.6%20-2.4%27%20stroke%3D%27%23F1BF00%27%20stroke-width%3D%270.42%27%2F%3E%20%3Crect%20x%3D%27-1.85%27%20y%3D%27-2.7%27%20width%3D%273.7%27%20height%3D%270.38%27%20rx%3D%270.16%27%20fill%3D%27%23F1BF00%27%2F%3E%20%3Crect%20x%3D%27-0.4%27%20y%3D%27-2.98%27%20width%3D%270.8%27%20height%3D%270.32%27%20rx%3D%270.12%27%20fill%3D%27%23F1BF00%27%2F%3E%20%3Crect%20x%3D%27-1.2%27%20y%3D%27-2.95%27%20width%3D%270.5%27%20height%3D%270.28%27%20rx%3D%270.1%27%20fill%3D%27%23F1BF00%27%2F%3E%20%3Crect%20x%3D%270.7%27%20y%3D%27-2.95%27%20width%3D%270.5%27%20height%3D%270.28%27%20rx%3D%270.1%27%20fill%3D%27%23F1BF00%27%2F%3E%20%3C%2Fg%3E%20%3C%2Fsvg%3E"); }
.flag-cn { background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%203%202%27%3E%20%3Crect%20width%3D%273%27%20height%3D%272%27%20fill%3D%27%23DE2910%27%2F%3E%20%3Cg%20fill%3D%27%23FFDE00%27%3E%20%3Cpath%20d%3D%27M0.36%200.2%20L0.435%200.44%20L0.69%200.455%20L0.478%200.61%20L0.535%200.855%20L0.36%200.71%20L0.185%200.855%20L0.242%200.61%20L0.03%200.455%20L0.285%200.44%20Z%27%2F%3E%20%3Cg%20transform%3D%27translate%281.02%2C0.28%29%20scale%280.2%29%20rotate%2820%29%27%3E%3Cpath%20d%3D%27M0%20-1%20L0.224%20-0.309%20L0.951%20-0.309%20L0.363%200.118%20L0.588%200.809%20L0%200.382%20L-0.588%200.809%20L-0.363%200.118%20L-0.951%20-0.309%20L-0.224%20-0.309%20Z%27%2F%3E%3C%2Fg%3E%20%3Cg%20transform%3D%27translate%281.32%2C0.62%29%20scale%280.2%29%20rotate%2845%29%27%3E%3Cpath%20d%3D%27M0%20-1%20L0.224%20-0.309%20L0.951%20-0.309%20L0.363%200.118%20L0.588%200.809%20L0%200.382%20L-0.588%200.809%20L-0.363%200.118%20L-0.951%20-0.309%20L-0.224%20-0.309%20Z%27%2F%3E%3C%2Fg%3E%20%3Cg%20transform%3D%27translate%281.28%2C1.02%29%20scale%280.2%29%20rotate%2865%29%27%3E%3Cpath%20d%3D%27M0%20-1%20L0.224%20-0.309%20L0.951%20-0.309%20L0.363%200.118%20L0.588%200.809%20L0%200.382%20L-0.588%200.809%20L-0.363%200.118%20L-0.951%20-0.309%20L-0.224%20-0.309%20Z%27%2F%3E%3C%2Fg%3E%20%3Cg%20transform%3D%27translate%280.98%2C1.24%29%20scale%280.2%29%20rotate%2880%29%27%3E%3Cpath%20d%3D%27M0%20-1%20L0.224%20-0.309%20L0.951%20-0.309%20L0.363%200.118%20L0.588%200.809%20L0%200.382%20L-0.588%200.809%20L-0.363%200.118%20L-0.951%20-0.309%20L-0.224%20-0.309%20Z%27%2F%3E%3C%2Fg%3E%20%3C%2Fg%3E%20%3C%2Fsvg%3E"); }

@media (max-width: 900px) {
    .flag { width:28px; height:19px; }
    .lang-switch { gap:0.5rem; margin-right:0.8rem; }
}
@media (max-width: 768px) {
    .lang-switch { order:-1; }
}
@media (max-width: 520px) {
    .flag { width:22px; height:15px; border-radius:3px; }
    .lang-switch { gap:0.35rem; margin-right:0.5rem; }
}
