:root {
  --primary: #2563eb;
  --primary-dark: #153e9b;
  --primary-light: #60a5fa;
  --gold: #d4a429;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #f8fafc;
  --white: #ffffff;
  --border: rgba(15, 23, 42, 0.10);
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Poppins', Arial, sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(37, 99, 235, .12);
  transition: box-shadow .25s ease, background .25s ease;
}
.navbar.scrolled { box-shadow: 0 14px 34px rgba(15, 23, 42, .10); background: rgba(255,255,255,.96); }
.nav-wrapper { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo, .logo-link { display: inline-flex; align-items: center; min-width: 0; }
.site-logo { width: 190px; max-height: 58px; object-fit: contain; display: block; }
.nav-menu { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-link { display: inline-flex; padding: 10px 13px; border-radius: 999px; color: #1e293b; text-decoration: none; font-size: 14px; font-weight: 700; transition: all .22s ease; }
.nav-link:hover { background: rgba(37,99,235,.10); color: var(--primary); }
.nav-toggle { display: none; border: 0; background: transparent; width: 42px; height: 42px; border-radius: 12px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--ink); border-radius: 99px; transition: .2s ease; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 138px 0 78px;
  background:
    radial-gradient(circle at top left, rgba(96,165,250,.40), transparent 36%),
    radial-gradient(circle at bottom right, rgba(212,164,41,.22), transparent 30%),
    linear-gradient(135deg, #eef6ff 0%, #ffffff 44%, #e8f1ff 100%);
  overflow: hidden;
}
.hero-background::before,
.hero-background::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.hero-background::before { width: 520px; height: 520px; top: 82px; right: -170px; background: rgba(37,99,235,.12); }
.hero-background::after { width: 260px; height: 260px; left: -70px; bottom: 70px; background: rgba(212,164,41,.15); }
.hero-content { position: relative; z-index: 1; max-width: 990px; text-align: center; margin: 0 auto; }
.hero-title { font-family: 'Poppins', sans-serif; font-size: clamp(40px, 7vw, 76px); line-height: 1.03; letter-spacing: -2.2px; margin-bottom: 26px; color: #0b1d47; }
.highlight { color: var(--primary); background: linear-gradient(135deg, var(--primary), #0f3eac 60%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-subtitle { max-width: 920px; margin: 0 auto 28px; color: #475569; font-size: clamp(16px, 2vw, 19px); }
.hero-features { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 28px 0; }
.feature-badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.80); border: 1px solid rgba(37,99,235,.12); box-shadow: 0 10px 26px rgba(15,23,42,.06); font-weight: 800; color: #1e3a8a; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 30px 0 42px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 20px; border-radius: 999px; font-weight: 800; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--white); background: linear-gradient(135deg, var(--primary), var(--primary-dark)); box-shadow: 0 14px 28px rgba(37,99,235,.25); }
.btn-primary:hover { box-shadow: 0 18px 38px rgba(37,99,235,.35); }
.btn-secondary { color: #1d4ed8; background: rgba(255,255,255,.86); border-color: rgba(37,99,235,.16); }
.btn-large { min-height: 56px; padding: 15px 28px; font-size: 16px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 14px; max-width: 870px; margin: 0 auto; }
.stat-item { padding: 20px 16px; background: rgba(255,255,255,.82); border: 1px solid rgba(37,99,235,.10); border-radius: 22px; box-shadow: 0 16px 36px rgba(15,23,42,.07); }
.stat-number { font-family: 'Poppins', sans-serif; font-size: 30px; color: var(--primary); font-weight: 900; line-height: 1.1; }
.stat-label { color: var(--muted); font-weight: 700; font-size: 13px; }

.section { padding: 86px 0; background: var(--white); }
.section:nth-of-type(even) { background: #f7fbff; }
.section-header { text-align: center; max-width: 950px; margin: 0 auto 48px; }
.section-title { font-family: 'Poppins', sans-serif; font-size: clamp(30px, 4vw, 48px); line-height: 1.12; letter-spacing: -1px; margin-bottom: 16px; color: #0b1d47; }
.section-subtitle { color: #475569; font-size: 16.5px; }

.okey-cards, .tournaments-grid, .features-grid { display: grid; gap: 22px; }
.okey-cards, .tournaments-grid { grid-template-columns: repeat(3, 1fr); }
.features-grid { grid-template-columns: repeat(3, 1fr); }
.okey-card, .feature-item, .tournament-card, .contact-item, .howto-item, .cta-box {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 46px rgba(15,23,42,.08);
}
.okey-card, .feature-item, .tournament-card { padding: 30px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.okey-card:hover, .feature-item:hover, .tournament-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(37,99,235,.22); }
.okey-card.featured, .tournament-card.featured { border-color: rgba(37,99,235,.34); background: linear-gradient(180deg, #ffffff, #f4f8ff); }
.card-icon, .feature-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(212,164,41,.15)); font-size: 30px; margin-bottom: 18px; }
.okey-card h3, .feature-item h3, .tournament-card h3, .howto-text h3, .contact-item h3 { font-family: 'Poppins', sans-serif; color: #102a65; margin-bottom: 10px; line-height: 1.25; }
.okey-card p, .feature-item p, .tournament-card p, .howto-text p, .contact-item p { color: #55657a; margin-bottom: 18px; }
.card-badge, .tournament-badge { position: absolute; top: 18px; right: 18px; padding: 6px 11px; border-radius: 999px; background: linear-gradient(135deg, var(--gold), #f7c948); color: #3b2600; font-size: 12px; font-weight: 900; }

.tournament-info { display: grid; gap: 8px; margin: 18px 0; padding: 16px; border-radius: 18px; background: #f8fbff; border: 1px solid rgba(37,99,235,.10); }
.info-item { display: flex; justify-content: space-between; gap: 12px; color: #475569; font-size: 14px; }
.info-item .value { font-weight: 900; color: var(--primary-dark); }

.howto-content { display: grid; gap: 18px; max-width: 980px; margin: 0 auto 34px; }
.howto-item { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 26px; align-items: start; }
.howto-number { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; color: var(--white); font-weight: 900; font-size: 22px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); box-shadow: 0 12px 26px rgba(37,99,235,.22); }
.cta-box { max-width: 880px; margin: 0 auto; padding: 34px; text-align: center; background: linear-gradient(135deg, #eaf3ff, #ffffff); }
.cta-box h3 { font-size: 28px; color: #0b1d47; margin-bottom: 10px; }
.cta-box p { color: #475569; margin-bottom: 20px; }

.contact-content { display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 16px; padding: 20px; align-items: center; }
.contact-icon { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; font-size: 24px; background: rgba(37,99,235,.10); }
.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 17px; }
.form-group label { display: block; margin-bottom: 7px; font-weight: 900; color: #1e293b; }
.form-group input, .form-group textarea { width: 100%; border: 1px solid rgba(15,23,42,.15); border-radius: 16px; padding: 13px 14px; font: inherit; color: var(--ink); outline: none; background: #fbfdff; transition: border-color .2s ease, box-shadow .2s ease; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }

.footer { background: linear-gradient(135deg, #08152f, #0f2f72 58%, #08152f); color: rgba(255,255,255,.88); padding: 68px 0 26px; }
.footer-content { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-section h3, .footer-section h4 { color: #fff; margin-bottom: 14px; font-family: 'Poppins', sans-serif; }
.footer-section p { color: rgba(255,255,255,.72); }
.footer-section ul { list-style: none; display: grid; gap: 8px; }
.footer-section a { color: rgba(255,255,255,.76); text-decoration: none; transition: color .2s ease; }
.footer-section a:hover { color: #fff; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,.10); margin-top: 24px; padding-top: 20px; color: rgba(255,255,255,.72); }
.official-site-note { color: rgba(255,255,255,.86); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .nav-menu { position: fixed; top: 82px; left: 16px; right: 16px; display: grid; gap: 6px; padding: 14px; background: rgba(255,255,255,.97); border: 1px solid rgba(37,99,235,.12); border-radius: 20px; box-shadow: var(--shadow); transform: translateY(-16px); opacity: 0; pointer-events: none; transition: all .22s ease; }
  .nav-menu.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link { width: 100%; justify-content: center; }
  .okey-cards, .tournaments-grid, .features-grid, .contact-content, .footer-content { grid-template-columns: 1fr 1fr; }
  .contact-content { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .container { width: min(100% - 22px, 1180px); }
  .nav-wrapper { min-height: 72px; }
  .site-logo { width: 148px; max-height: 50px; }
  .nav-menu { top: 72px; }
  .hero { padding-top: 116px; }
  .hero-title { letter-spacing: -1.2px; }
  .hero-stats, .okey-cards, .tournaments-grid, .features-grid, .footer-content { grid-template-columns: 1fr; }
  .howto-item { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .okey-card, .feature-item, .tournament-card, .contact-form, .cta-box { padding: 22px; }
  .section { padding: 62px 0; }
}
