/* LOQOS Kids - Main Stylesheet v5 */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Segoe UI',system-ui,-apple-system,sans-serif; color:#333; background:#f8f9ff; line-height:1.6; }
a { text-decoration:none; color:inherit; }
img { max-width:100%; }
.container { max-width:1200px; margin:0 auto; padding:0 20px; }

/* ===== HEADER ===== */
.site-header { background:#fff; box-shadow:0 2px 20px rgba(0,0,0,0.06); position:sticky; top:32px; z-index:1000; }
body:not(.admin-bar) .site-header { top:0; }
.header-inner { display:flex; align-items:center; justify-content:space-between; height:64px; }
.logo { font-size:24px; font-weight:800; color:#2DB5A0; letter-spacing:-0.5px; }
.logo span { color:#FF6B6B; }
.main-nav { display:flex; gap:6px; }
.main-nav a { padding:8px 14px; border-radius:12px; font-weight:600; font-size:14px; color:#555; transition:all 0.2s; display:flex; align-items:center; gap:5px; }
.main-nav a:hover { background:#f0faf8; color:#2DB5A0; }
.nav-icon { font-size:15px; }
.lang-switcher { display:flex; gap:4px; }
.lang-switcher span, .lang-switcher li, .lang-switcher a { padding:4px 10px; border-radius:8px; font-size:13px; font-weight:600; cursor:pointer; background:#f0f0f0; color:#666; list-style:none; display:inline-block; }
.lang-switcher .active, .lang-switcher .current-lang { background:#2DB5A0; color:#fff; }
.mobile-menu-btn { display:none; background:none; border:none; font-size:28px; cursor:pointer; }

/* ===== HERO ===== */
.hero { background:linear-gradient(135deg,#2DB5A0 0%,#6C63FF 100%); color:#fff; padding:50px 0 40px; text-align:center; }
.hero h1 { font-size:44px; font-weight:900; margin-bottom:10px; letter-spacing:-1px; }
.hero-sub { font-size:18px; opacity:0.9; margin-bottom:28px; }
.hero-buttons { display:flex; gap:16px; justify-content:center; }
.btn { padding:14px 36px; border-radius:30px; font-weight:700; font-size:16px; transition:all 0.3s; display:inline-block; }
.btn-primary { background:#fff; color:#2DB5A0; box-shadow:0 4px 15px rgba(0,0,0,0.15); }
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,0,0,0.2); }
.btn-outline { border:2px solid rgba(255,255,255,0.6); color:#fff; background:transparent; }
.btn-outline:hover { background:rgba(255,255,255,0.15); }

/* ===== SECTIONS ===== */
section { padding:48px 0; }
.section-title { font-size:30px; font-weight:800; text-align:center; margin-bottom:10px; color:#2c3e50; }
.section-desc { text-align:center; color:#666; font-size:16px; margin-bottom:32px; }

/* ===== FEATURE CARDS ===== */
.features { background:#fff; }
.features-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:24px; }
.feature-card { background:#fff; border-radius:20px; padding:32px 24px; text-align:center; box-shadow:0 4px 20px rgba(0,0,0,0.06); border:2px solid transparent; transition:all 0.3s; position:relative; overflow:hidden; }
.feature-card::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; background:linear-gradient(90deg,#2DB5A0,#6C63FF); }
.feature-card:hover { transform:translateY(-4px); box-shadow:0 8px 30px rgba(0,0,0,0.1); border-color:#2DB5A0; }
.feature-icon { font-size:44px; margin-bottom:14px; }
.feature-card h3 { font-size:19px; font-weight:700; margin-bottom:8px; color:#2c3e50; }
.feature-card p { color:#666; font-size:14px; line-height:1.5; }

/* ===== GAMES GRID ===== */
.games-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:20px; }
.game-card { background:#fff; border-radius:20px; padding:28px 20px; text-align:center; box-shadow:0 4px 16px rgba(0,0,0,0.06); transition:all 0.3s; display:flex; flex-direction:column; align-items:center; }
.game-card:hover { transform:translateY(-4px); box-shadow:0 8px 30px rgba(0,0,0,0.12); }
.game-card-icon { font-size:40px; margin-bottom:10px; }
.game-card h3 { font-size:17px; font-weight:700; margin-bottom:6px; color:#2c3e50; }
.game-card p { color:#666; font-size:13px; margin-bottom:14px; }
.play-btn { background:linear-gradient(135deg,#2DB5A0,#27a08d); color:#fff; padding:10px 28px; border-radius:25px; font-weight:700; font-size:14px; margin-top:auto; transition:all 0.3s; }
.game-card:hover .play-btn { background:linear-gradient(135deg,#6C63FF,#5a52e0); }

/* ===== GAME PLAY AREA ===== */
.game-play-area { padding:20px 0; }
.back-btn { display:inline-flex; align-items:center; gap:8px; color:#2DB5A0; font-weight:600; font-size:16px; margin-bottom:16px; padding:8px 16px; border-radius:12px; transition:background 0.2s; }
.back-btn:hover { background:#f0faf8; }
.game-title { font-size:26px; font-weight:800; margin-bottom:16px; color:#2c3e50; }
.game-iframe-wrap { width:100%; border-radius:20px; overflow:hidden; box-shadow:0 8px 40px rgba(0,0,0,0.12); background:#f0f0f5; }
.game-iframe-wrap iframe { width:100%; height:600px; border:none; display:block; }

/* ===== TESTS / SPEECH / CABINET ===== */
.tests-page, .speech-page, .cabinet-page { padding:40px 0 60px; }
.tests-page .section-title, .speech-page .section-title, .cabinet-page .section-title { margin-bottom:8px; }
.tests-page .section-desc, .speech-page .section-desc, .cabinet-page .section-desc { margin-bottom:32px; }

/* ===== POPULAR GAMES ===== */
.popular-games { background:#f0faf8; }

/* ===== GAMES PAGE ===== */
.games-page { padding:40px 0 60px; }
.games-page .section-title { margin-bottom:8px; }
.games-page .section-desc { margin-bottom:32px; }

/* ===== FOOTER ===== */
.site-footer { background:#1a1a2e; color:#ccc; padding:50px 0 0; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px; padding-bottom:36px; }
.footer-col h3 { color:#fff; margin-bottom:10px; }
.footer-col h4 { color:#fff; font-size:15px; margin-bottom:14px; }
.footer-col p { font-size:14px; line-height:1.7; }
.footer-col a { display:block; color:#aaa; font-size:14px; padding:4px 0; transition:color 0.2s; }
.footer-col a:hover { color:#2DB5A0; }
.footer-bottom { border-top:1px solid #333; padding:18px 0; text-align:center; font-size:13px; color:#777; }

/* ===== RESPONSIVE ===== */
@media (max-width:768px) {
  .main-nav { display:none; }
  .mobile-menu-btn { display:block; }
  .hero h1 { font-size:30px; }
  .hero-sub { font-size:15px; }
  .hero { padding:36px 0 28px; }
  .features-grid, .games-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:24px; }
  .game-iframe-wrap iframe { height:400px; }
  .header-inner { height:52px; }
  section { padding:36px 0; }
}
@media (max-width:480px) {
  .footer-grid { grid-template-columns:1fr; }
  .hero-buttons { flex-direction:column; align-items:center; }
  .game-iframe-wrap iframe { height:320px; }
}