*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --red: #c62828;
  --red-dark: #a31f1f;
  --text: #1a1a1a;
  --muted: #555;
  --border: #d8d8d8;
  --hero-bg: #ececec;
  --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --font: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1120px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.55;
  background: #fff;
}

a {
  color: var(--red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Hero —— */
.hero {
  position: relative;
  background: var(--hero-bg);
  overflow: hidden;
  min-height: 420px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-color: var(--hero-bg);
  background-image:
    linear-gradient(90deg, rgba(236, 236, 236, 0.97) 42%, rgba(236, 236, 236, 0.55) 62%, rgba(236, 236, 236, 0.2) 100%),
    url("img/hero.jpg");
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 1.75rem 1rem 2.5rem;
  max-width: var(--max);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 2.5rem 1.5rem 3rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.brand__logo {
  width: 52px;
  height: 52px;
  background: var(--red);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  flex-shrink: 0;
}

.brand__logo strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand__text {
  font-size: 0.95rem;
  line-height: 1.35;
}

.brand__text strong {
  display: block;
  font-size: 1.05rem;
}

.brand__text span {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 700;
  color: var(--red);
  line-height: 1.25;
}

.hero__lead {
  margin: 0 0 1.35rem;
  font-size: 0.95rem;
  max-width: 36rem;
}

.hero__lead .hl {
  color: var(--red);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.35rem;
  border-radius: 6px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn--primary:hover {
  background: var(--red-dark);
}

.btn--outline {
  background: #fff;
  color: var(--red);
  border-color: #bbb;
}

.btn--outline:hover {
  border-color: var(--red);
}

/* —— Info bar —— */
.info-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fafafa;
  font-size: 0.8rem;
  color: var(--muted);
}

.info-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.55rem 1rem;
  max-width: var(--max);
  margin-inline: auto;
}

.info-bar__links {
  display: flex;
  gap: 1.25rem;
}

/* —— Intro —— */
.intro {
  padding: 2.5rem 1rem 3rem;
}

.intro__grid {
  display: grid;
  gap: 2rem;
  max-width: var(--max);
  margin-inline: auto;
}

@media (min-width: 900px) {
  .intro__grid {
    grid-template-columns: 1fr 280px;
    gap: 2.5rem;
    align-items: start;
  }
}

.intro__headline {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
}

.intro__headline u {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.video-wrap {
  margin-bottom: 1.5rem;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: #111;
  aspect-ratio: 16 / 9;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.intro__body p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

.intro__body .hl {
  color: var(--red);
  font-weight: 600;
}

.intro__legal {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.certificate {
  border: 3px solid var(--red);
  padding: 1.25rem 1rem 1.5rem;
  text-align: center;
  background: #fff;
  box-shadow: var(--card-shadow);
  position: relative;
}

.certificate__brand {
  font-size: 0.7rem;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.certificate__title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0.5rem 0;
}

.certificate__name {
  font-size: 1.5rem;
  font-style: italic;
  margin: 0.75rem 0;
  font-family: Georgia, "Times New Roman", serif;
}

.certificate__course {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.certificate__sub {
  font-size: 0.72rem;
  color: var(--muted);
}

.certificate__seal {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #c9a227;
  background: radial-gradient(circle at 30% 30%, #f5e6a8, #c9a227);
  font-size: 0.45rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
  color: #5a4200;
}

/* —— Courses —— */
.courses {
  padding: 0 1rem 3rem;
  max-width: var(--max);
  margin-inline: auto;
}

.courses__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .courses__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.course-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 130px;
  padding: 1.1rem 1.15rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  border: 1px solid #eee;
}

.course-card__title {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1.35;
}

.course-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.course-card__price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.course-card__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.course-card__login {
  font-size: 0.9rem;
  font-weight: 600;
}

/* —— Testimonials —— */
.testimonials {
  padding: 0 1rem 3rem;
  max-width: var(--max);
  margin-inline: auto;
}

.section-title {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--red);
}

.testimonials__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.testimonials__nav {
  display: flex;
  gap: 0.35rem;
}

.testimonials__nav button {
  width: 36px;
  height: 36px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text);
}

.testimonials__nav button:hover {
  border-color: var(--red);
  color: var(--red);
}

.testimonials__track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .testimonials__track {
    grid-template-columns: 1fr 1fr;
  }
}

.testimonial {
  padding: 0 0.25rem;
}

.testimonial__name {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}

.testimonial__quote-mark {
  color: #ccc;
  font-size: 2.5rem;
  line-height: 0.8;
  font-family: Georgia, serif;
  margin-bottom: -0.25rem;
}

.testimonial__text {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
}

.testimonial__links {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.testimonial[hidden] {
  display: none;
}

/* —— Recommend —— */
.recommend {
  padding: 0 1rem 4rem;
  max-width: var(--max);
  margin-inline: auto;
}

.recommend__box {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem;
}

.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  background: linear-gradient(145deg, #7b1fa2, #4a148c);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.15;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(74, 20, 140, 0.35);
}

.app-icon__mark {
  font-size: 1.75rem;
  font-weight: 300;
  margin-bottom: 0.15rem;
}

.recommend__text {
  flex: 1;
  min-width: 200px;
  font-size: 0.95rem;
  color: #5e35b1;
  font-weight: 500;
  margin: 0 0 1rem;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  background: #111;
  color: #fff;
  border-radius: 6px;
  font-size: 0.72rem;
  text-decoration: none;
  line-height: 1.2;
}

.store-badge:hover {
  background: #333;
  text-decoration: none;
  color: #fff;
}

.store-badge strong {
  display: block;
  font-size: 0.95rem;
}

/* —— Chat widget —— */
.chat-widget {
  text-decoration: none;
  color: inherit;
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: min(320px, calc(100vw - 2rem));
}

.chat-widget__bubble {
  background: #fff;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-size: 0.82rem;
  line-height: 1.4;
  border: 1px solid #eee;
}

.chat-widget__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  background: linear-gradient(145deg, #e8d5d5, #c62828);
}
