:root {
  --black: #191919;
  --red: #e42b2d;
  --red-dark: #b90f19;
  --blue: #456f9f;
  --green: #10a84d;
  --gold: #f7c84a;
  --text: #3f4855;
  --muted: #6f7884;
  --line: #e4e8ee;
  --page: #f5f7fb;
  --soft: #eef2f7;
  --white: #fff;
  --max: 1050px;
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.top { background: var(--black); }
.top-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 900;
  line-height: 1;
}
.brand-mark {
  width: 62px;
  height: 42px;
  border-radius: 50% 42% 48% 40%;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 30% 38%, #19c960 0 31%, transparent 32%),
    linear-gradient(135deg, #0b7634 0 42%, #df1f2a 43% 100%);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .24);
  font-size: 17px;
}
.brand-word {
  font-size: 42px;
  color: #fff;
  text-transform: uppercase;
}
.brand-word span { color: var(--red); }
.auth {
  display: flex;
  align-items: center;
  gap: 18px;
}
.btn {
  min-height: 42px;
  min-width: 0;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  color: #fff;
  background: var(--blue);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(69, 111, 159, .25);
}
.btn.red {
  background: linear-gradient(180deg, #ff4242, var(--red-dark));
  box-shadow: 0 12px 24px rgba(228, 43, 45, .24);
}
.btn.green {
  background: linear-gradient(180deg, #21c463, #0b8f3a);
  box-shadow: 0 12px 24px rgba(16, 168, 77, .24);
}

.nav {
  background: var(--red);
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}
.nav-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a {
  flex: 0 0 auto;
  padding: 24px 0;
  color: #20262e;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  position: relative;
  white-space: nowrap;
}
.nav-inner a.active::after,
.nav-inner a:first-child::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15px;
  height: 3px;
  background: #1f252c;
}

.hero {
  background: #dfeaf8;
  position: relative;
  overflow: hidden;
}
.hero-media {
  position: relative;
  min-height: 470px;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .14) 42%, rgba(255, 255, 255, .83) 70%, rgba(255, 255, 255, .97)),
    url("ek999-hero.png");
  background-size: cover;
  background-position: center;
}
.hero-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: 470px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}
.hero-card {
  width: min(460px, 100%);
  padding: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 24px 54px rgba(30, 45, 64, .22);
}
.hero-card h1 {
  margin: 0 0 16px;
  color: #202832;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 900;
  text-transform: uppercase;
}
.hero-card h1 span {
  display: block;
  color: var(--red);
}
.hero-card p {
  margin: 0 0 24px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.72;
  font-weight: 700;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 34px auto 0;
}
.content-panel,
.info-card,
.article-card,
.category-card,
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(31, 42, 56, .06);
}
.content-panel { padding: 28px 32px; }
.article-title,
.section-title {
  margin: 0 0 18px;
  color: #3d4650;
  font-size: 28px;
  line-height: 1.28;
  font-weight: 900;
}
.article-title { text-align: center; }
.content-panel p,
.info-card p,
.category-card p,
.article-card p,
.faq-item p,
.page-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 700;
}
.content-panel p strong,
.page-copy strong { color: #1472b8; }
.split {
  display: grid;
  grid-template-columns: 1fr .92fr;
  gap: 18px;
}
.info-card { padding: 22px; }
.info-card h3 {
  margin: 0 0 12px;
  color: #3b454f;
  font-size: 21px;
  line-height: 1.35;
}
.profile {
  display: grid;
  gap: 10px;
}
.profile-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 15px 16px;
  border: 1px solid #dde3ec;
  border-radius: 6px;
  background: #f8fafc;
  font-size: 15px;
  line-height: 1.55;
}
.profile-row b {
  color: var(--red);
  text-transform: uppercase;
  font-size: 13px;
}

.offer-band {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 24px;
  align-items: center;
  padding: 26px 30px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(228, 43, 45, .96), rgba(184, 14, 23, .98)),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 34%);
  box-shadow: 0 18px 40px rgba(228, 43, 45, .22);
}
.offer-band h2 { margin: 0 0 8px; font-size: 26px; line-height: 1.25; }
.offer-band p { margin: 0; color: rgba(255,255,255,.88); font-weight: 700; line-height: 1.7; }
.offer-badge {
  min-height: 150px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 38px;
  font-weight: 900;
  color: #111820;
  background: linear-gradient(180deg, #fff, #ffeeb8);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
}
.offer-badge span { display: block; font-size: 16px; color: var(--red); }

.category-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.category-card { overflow: hidden; }
.category-img {
  height: 170px;
  position: relative;
  background: #111820;
}
.category-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-icon {
  position: absolute;
  left: 14px;
  bottom: 14px;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #14202b;
  background: linear-gradient(180deg, #fff08b, #f7b31d);
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0,0,0,.2);
}
.category-body,
.article-body { padding: 18px; }
.category-body h3,
.article-body h3 {
  margin: 0 0 10px;
  color: #3a4350;
  font-size: 20px;
  line-height: 1.35;
}
.mini-btn,
.read-more {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.mini-btn::after,
.read-more::after { content: "›"; margin-left: 7px; font-size: 19px; line-height: 1; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.step {
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  border-left: 5px solid var(--red);
  box-shadow: 0 12px 26px rgba(31, 42, 56, .06);
}
.step b {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: #fff;
  background: var(--green);
}
.step h3 { margin: 0 0 10px; color: #3b4652; }
.step p { margin: 0; color: var(--muted); line-height: 1.72; font-weight: 700; }

.article-card { overflow: hidden; }
.article-img {
  height: 155px;
  position: relative;
  background: #151b22;
}
.article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-tag {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.page-hero {
  background: linear-gradient(135deg, #1a1a1a, #333842);
  color: #fff;
  padding: 46px 0;
}
.page-hero .wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: center;
}
.page-hero h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 38px;
  line-height: 1.2;
}
.page-hero p {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 700;
}
.page-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 22px 45px rgba(0,0,0,.3);
}
.page-copy {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 22px;
  align-items: start;
}
.side-list {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 10px;
}
.side-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: #3d4650;
  font-weight: 900;
}
.article-detail img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  margin: 12px 0 20px;
}
.article-detail ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.article-detail li {
  padding: 16px 18px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #dde3ec;
  color: #536071;
  font-weight: 700;
  line-height: 1.75;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.faq-item { padding: 22px; }
.faq-item h3 { margin: 0 0 10px; color: #394451; }
.footer {
  margin-top: 48px;
  background: #30363d;
  color: #fff;
}
.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer strong { font-size: 22px; }
.footer span,
.footer p { color: rgba(255,255,255,.74); font-weight: 700; line-height: 1.7; }
.copyline {
  padding: 14px 16px 22px;
  text-align: center;
  color: rgba(255,255,255,.7);
  font-size: 13px;
}

@media (max-width: 860px) {
  .top-inner {
    min-height: 140px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: 15px 0 18px;
  }
  .brand-word { font-size: 34px; }
  .auth { width: 100%; gap: 12px; }
  .auth .btn { flex: 1 1 0; padding: 0 18px; }
  .nav-inner { width: 100%; padding: 0 16px; min-height: 60px; gap: 24px; }
  .nav-inner a { padding: 20px 0; font-size: 13px; }
  .hero-media {
    min-height: 640px;
    background-image:
      linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.05) 45%, rgba(255,255,255,.96) 68%),
      url("ek999-hero.png");
    background-position: center top;
  }
  .hero-inner {
    min-height: 640px;
    align-items: flex-end;
    padding-bottom: 32px;
  }
  .hero-card { padding: 24px; }
  .hero-card h1 { font-size: 34px; }
  .hero-actions .btn { width: 100%; }
  .split,
  .offer-band,
  .page-copy,
  .page-hero .wrap {
    grid-template-columns: 1fr;
  }
  .category-grid,
  .article-grid,
  .steps,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .content-panel { padding: 24px 20px; }
  .article-title,
  .section-title { font-size: 25px; text-align: center; }
  .profile-row { grid-template-columns: 1fr; gap: 6px; }
  .offer-badge { min-height: 120px; }
  .page-hero h1 { font-size: 31px; }
  .side-list { position: static; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .brand-mark { width: 54px; height: 38px; }
  .brand-word { font-size: 31px; }
  .auth { flex-direction: column; }
  .auth .btn { width: 100%; }
  .hero-card h1 { font-size: 30px; }
  .hero-card p,
  .content-panel p,
  .page-copy p { font-size: 15px; }
  .category-img { height: 150px; }
}
