:root {
  --accent: #ff7a00;
  --accent-hover: #e66d00;
  --text: #1d2433;
  --muted: #687385;
  --line: #eaeaea;
  --soft-line: #eeeeee;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #ffffff;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 84px 0;
  border-bottom: 1px solid #eaeaea;
}

main .section:last-child {
  border-bottom: none;
}

.hero {
  padding: 28px 0 88px;
  border-bottom: 1px solid #eaeaea;
  background-color: #ffffff;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 18px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.75fr);
  gap: 56px;
  align-items: center;
  padding-top: 82px;
}

.pill {
  display: inline-flex;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.lead {
  max-width: 620px;
  margin: 24px 0 32px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.button {
  background-color: #ff7a00;
  color: white;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button:hover {
  background-color: #e66d00;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.note {
  max-width: 220px;
  color: var(--muted);
  font-size: 15px;
}

.hero-logo-card {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 32px;
  border: 1px solid var(--soft-line);
  border-radius: 18px;
  background-color: var(--white);
}

.hero-logo {
  width: min(360px, 88%);
  max-height: 320px;
  object-fit: contain;
}

.section-title {
  margin-bottom: 34px;
}

.about-grid,
.teacher,
.contact {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: start;
}

.about-grid > p,
.teacher-copy p:not(.pill),
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.teacher-copy p:not(.pill) {
  margin-top: 18px;
}

.teacher-name {
  margin-top: 18px;
  color: var(--accent);
}

.teacher-photo,
.course,
.form,
.stats div,
.card {
  border: 1px solid var(--soft-line);
  border-radius: 14px;
  background-color: #ffffff;
}

.teacher-photo {
  overflow: hidden;
}

.teacher-photo img {
  width: 100%;
  aspect-ratio: 0.9 / 1;
  object-fit: cover;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stats div {
  min-height: 120px;
  padding: 20px;
  display: grid;
  align-content: end;
}

.stats strong {
  font-size: 24px;
}

.stats span {
  color: var(--muted);
}

.cards,
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  padding: 24px;
}

.card span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--accent);
  font-weight: 700;
}

.card p,
.course p {
  margin: 0;
  color: var(--muted);
}

.course {
  overflow: hidden;
}

.course img {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  object-fit: cover;
}

.course div {
  padding: 22px;
}

.form {
  padding: 28px;
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}

input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #dddddd;
  border-radius: 6px;
  color: var(--text);
  background: #ffffff;
  font: inherit;
  outline: none;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.14);
}

.form-button {
  width: 100%;
  margin-top: 6px;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: #26834f;
  font-weight: 600;
}

.form-message.error {
  color: #d64545;
}

@media (max-width: 880px) {
  .hero-inner,
  .about-grid,
  .teacher,
  .contact,
  .cards,
  .course-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 34px;
    padding-top: 56px;
  }

  .hero-logo-card {
    min-height: 260px;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 62px 0;
  }

  .hero {
    padding-bottom: 62px;
  }

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

  .nav-links {
    flex-wrap: wrap;
    gap: 12px 16px;
  }

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

  .stats {
    grid-template-columns: 1fr;
  }
}
