:root {
  --ink: #10202d;
  --ink-soft: #263846;
  --muted: #66798a;
  --line: #d9e6f2;
  --paper: #fffdf8;
  --soft: #eef7ff;
  --blue: #30a8ff;
  --blue-dark: #1764b3;
  --cyan: #63d5ff;
  --green: #37c978;
  --yellow: #ffd34f;
  --red: #ff6f61;
  --violet: #7a68f4;
  --black: #101820;
  --shadow: 0 24px 70px rgba(16, 32, 45, 0.16);
  --hard-shadow: 8px 8px 0 var(--black);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  background:
    linear-gradient(90deg, rgba(48, 168, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(48, 168, 255, 0.055) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 211, 79, 0.32), transparent 28%),
    radial-gradient(circle at 86% 14%, rgba(99, 213, 255, 0.28), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 253, 248, 0.92));
  content: "";
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 58px);
  border-bottom: 2px solid rgba(16, 24, 32, 0.08);
  background: rgba(255, 253, 248, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 246px;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid var(--black);
  border-radius: 8px;
  background: #e7f5ff;
  box-shadow: 4px 4px 0 var(--black);
  transform: rotate(-2deg);
}

.brand img {
  width: 46px;
  height: 40px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 900;
}

nav a {
  padding: 8px 10px;
  border-radius: 999px;
  text-decoration: none;
}

nav a:hover {
  color: #fff;
  background: var(--blue-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  min-height: calc(100svh - 83px);
  padding: clamp(42px, 7vw, 92px) clamp(18px, 5vw, 76px) clamp(34px, 6vw, 72px);
  overflow: hidden;
}

.hero-content {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(4.3rem, 10vw, 9.7rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  max-width: 1060px;
  font-size: clamp(2.15rem, 4.6vw, 4.85rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin: 10px 0 8px;
  font-size: clamp(1.18rem, 1.4vw, 1.5rem);
  line-height: 1.14;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: #34495c;
  font-size: clamp(1.14rem, 2vw, 1.48rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  border: 2px solid var(--black);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--black);
  font-weight: 950;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:hover {
  box-shadow: 1px 1px 0 var(--black);
  transform: translate(3px, 3px);
}

.button.primary {
  color: #fff;
  background: var(--blue-dark);
}

.button.secondary {
  color: var(--black);
  background: var(--yellow);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 13px;
  border: 2px solid rgba(16, 24, 32, 0.1);
  border-radius: 999px;
  color: #263846;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 950;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 560px;
  place-items: center;
  isolation: isolate;
}

.hero-visual.logo-hero {
  min-height: 520px;
}

.hero-visual::before {
  position: absolute;
  inset: 5% 2% 4% 4%;
  z-index: -2;
  border: 2px solid var(--black);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 211, 79, 0.92), rgba(99, 213, 255, 0.62) 48%, rgba(122, 104, 244, 0.38)),
    #eaf7ff;
  box-shadow: var(--hard-shadow);
  content: "";
  transform: rotate(1.5deg);
}

.hero-visual::after {
  position: absolute;
  inset: 14% 9% 11% 12%;
  z-index: -1;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.13) 1px, transparent 1px),
    linear-gradient(rgba(16, 24, 32, 0.13) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
}

.hero-visual img {
  position: relative;
  z-index: 2;
  display: block;
  width: min(330px, 61vw);
  height: auto;
  filter: drop-shadow(0 34px 20px rgba(23, 100, 179, 0.22));
  transform: translate(-12%, 9%) scale(1.12);
}

.hero-visual.logo-hero::before {
  inset: 7% 0 5% 3%;
  background:
    linear-gradient(135deg, rgba(255, 211, 79, 0.38), rgba(231, 245, 255, 0.7) 48%, rgba(99, 213, 255, 0.5)),
    #eaf7ff;
  transform: rotate(1deg);
}

.hero-visual.logo-hero::after {
  inset: 12% 7% 13% 10%;
  background:
    linear-gradient(90deg, rgba(23, 100, 179, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(23, 100, 179, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
}

.hero-visual .title-logo {
  width: min(520px, 82vw);
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 30px 24px rgba(23, 100, 179, 0.18));
  transform: rotate(-1deg);
}

.hero-board {
  position: absolute;
  top: 12%;
  right: 3%;
  z-index: 1;
  width: min(278px, 44vw);
  padding: 20px;
  border: 6px solid var(--black);
  border-radius: 8px;
  color: #eafff5;
  background: #163149;
  box-shadow: 7px 7px 0 var(--black);
  transform: rotate(2.5deg);
}

.hero-board p {
  margin: 0 0 14px;
  color: var(--yellow);
  font-weight: 950;
}

.hero-board span {
  display: block;
  height: 12px;
  margin: 0 0 14px;
  border-radius: 999px;
}

.hero-board span:nth-child(2) {
  width: 72%;
  background: var(--yellow);
}

.hero-board span:nth-child(3) {
  width: 100%;
  background: var(--green);
}

.hero-board span:nth-child(4) {
  width: 58%;
  margin-bottom: 0;
  background: var(--cyan);
}

.signal-card {
  position: absolute;
  z-index: 3;
  min-width: 150px;
  padding: 13px 14px;
  border: 2px solid var(--black);
  border-radius: 8px;
  background: #fff;
  box-shadow: 5px 5px 0 var(--black);
}

.signal-card span {
  display: block;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 950;
}

.signal-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.card-a {
  left: 1%;
  bottom: 21%;
  transform: rotate(-4deg);
}

.card-b {
  right: 5%;
  bottom: 8%;
  background: var(--yellow);
  transform: rotate(3deg);
}

.intro-band,
.section,
.comic-feature,
.teacher-band,
.site-footer {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 76px);
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  gap: clamp(28px, 5vw, 70px);
  color: #fff;
  background:
    linear-gradient(135deg, #10202d, #163149 54%, #1764b3);
}

.intro-band .eyebrow,
.teacher-band .eyebrow {
  color: var(--yellow);
}

.intro-band p,
.comic-copy p,
.section p,
.teacher-band p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
}

.intro-band p,
.teacher-band p {
  color: #d9e9f4;
}

.metric-strip {
  display: grid;
  gap: 12px;
}

.metric-strip article {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
}

.metric-strip strong {
  display: block;
  color: #fff;
  font-size: 1.35rem;
}

.metric-strip span {
  display: block;
  margin-top: 4px;
  color: #d9e9f4;
  font-weight: 700;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.section-heading > p {
  max-width: 430px;
  margin: 0;
}

.topic-section {
  background: rgba(255, 255, 255, 0.46);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.topic-grid article,
.news-list article,
.teacher-panel,
.check-list {
  border: 2px solid rgba(16, 24, 32, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
}

.topic-grid article {
  position: relative;
  min-height: 250px;
  padding: 20px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(16, 32, 45, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.topic-grid article:hover {
  box-shadow: 0 20px 44px rgba(16, 32, 45, 0.13);
  transform: translateY(-4px);
}

.topic-grid article::after {
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 110px;
  height: 110px;
  border: 2px solid var(--black);
  border-radius: 8px;
  content: "";
  transform: rotate(12deg);
}

.topic-grid article:nth-child(1)::after {
  background: var(--cyan);
}

.topic-grid article:nth-child(2)::after {
  background: var(--red);
}

.topic-grid article:nth-child(3)::after {
  background: var(--green);
}

.topic-grid article:nth-child(4)::after {
  background: var(--violet);
}

.topic-grid article:nth-child(5)::after {
  background: var(--yellow);
}

.topic-grid article:nth-child(6)::after {
  background: var(--blue);
}

.topic-grid article:nth-child(7)::after {
  background: #8de7c0;
}

.topic-grid article:nth-child(8)::after {
  background: #ff9b8f;
}

.topic-grid span {
  display: inline-block;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.comic-feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  overflow: hidden;
  background: #fff2bf;
}

.comic-showcase {
  display: grid;
  grid-template-columns: 1.05fr 0.78fr;
  grid-template-rows: repeat(2, minmax(150px, 1fr));
  gap: 14px;
}

.comic-showcase img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  border: 2px solid var(--black);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.comic-showcase img:first-child {
  grid-row: span 2;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.52fr);
  gap: clamp(24px, 5vw, 66px);
  align-items: start;
}

.material-lab {
  background:
    linear-gradient(135deg, rgba(55, 201, 120, 0.1), transparent 38%),
    rgba(255, 255, 255, 0.62);
}

.check-list,
.teacher-panel {
  padding: 22px;
  box-shadow: 0 14px 34px rgba(16, 32, 45, 0.08);
}

.check-list p {
  position: relative;
  margin: 0;
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 900;
}

.check-list p::before {
  position: absolute;
  left: 0;
  top: 16px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 2px solid var(--black);
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  content: "✓";
  font-size: 0.78rem;
  font-weight: 950;
}

.check-list p:last-child {
  border-bottom: 0;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.news-list article {
  padding: 22px;
  box-shadow: 0 14px 34px rgba(16, 32, 45, 0.08);
}

time {
  color: var(--violet);
  font-weight: 950;
  font-size: 0.86rem;
}

.teacher-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: clamp(24px, 5vw, 66px);
  align-items: center;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(16, 32, 45, 0.95), rgba(23, 100, 179, 0.92)),
    url("grafika/comiks7-cloud-1.png") center / cover;
}

.teacher-panel {
  border-color: var(--black);
  border-left: 10px solid var(--yellow);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.93);
}

.teacher-panel p {
  color: var(--muted);
}

.teacher-panel div + div {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.teacher-panel strong {
  display: block;
  font-size: 1.22rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 2px solid var(--black);
  color: #fff;
  background: var(--black);
}

.site-footer p {
  margin: 4px 0 0;
  color: #dce9f4;
}

.copyright {
  white-space: nowrap;
}

@media (max-width: 1060px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero,
  .intro-band,
  .comic-feature,
  .split,
  .teacher-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 500px;
    max-width: 640px;
  }

  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading > p {
    max-width: 720px;
  }
}

@media (max-width: 680px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  nav {
    gap: 4px;
    font-size: 0.86rem;
  }

  h1 {
    font-size: clamp(3.15rem, 18vw, 5.4rem);
  }

  .hero-visual {
    min-height: 390px;
  }

  .hero-visual img {
    width: min(250px, 70vw);
    transform: translate(-9%, 12%) scale(1.05);
  }

  .hero-visual.logo-hero {
    min-height: 330px;
  }

  .hero-visual .title-logo {
    width: min(420px, 88vw);
    max-height: 300px;
	transform: rotate(-1deg);
  }

  .hero-board {
    top: 8%;
    right: 0;
    width: min(214px, 57vw);
  }

  .signal-card {
    min-width: 124px;
    padding: 10px 11px;
  }

  .card-a {
    left: 0;
    bottom: 17%;
  }

  .card-b {
    right: 0;
    bottom: 4%;
  }

  .topic-grid,
  .news-list,
  .comic-showcase {
    grid-template-columns: 1fr;
  }

  .comic-showcase {
    grid-template-rows: none;
  }

  .comic-showcase img:first-child {
    grid-row: auto;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
