/* ===================== RESET / BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #2b2b2b;
  line-height: 1.6;
  background: #ffffff;
}

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

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

ul { list-style: none; }

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover { background: #3a3a3a; }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #eee;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-img { height: 30px; width: auto; }

.logo-text {
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
}

.site-nav { flex: 1; }

.site-nav ul {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  padding: 6px 2px;
}

.site-nav a:hover { color: #777; }

.header-btn { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #1a1a1a;
}

/* ===================== HERO ===================== */
.hero {
  padding: 60px 24px 40px;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 24px;
}

.hero h1 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.25;
}

.hero-tagline {
  font-size: 18px;
  font-weight: 500;
  color: #555;
  margin-bottom: 28px;
}

.hero-copy { text-align: left; }

.hero-copy p {
  margin-bottom: 18px;
  font-size: 16px;
  color: #333;
}

.hero-image {
  margin-top: 32px;
  border-radius: 6px;
  width: 100%;
}

/* ===================== PRICES ===================== */
.prices {
  padding: 50px 24px;
  background: #f7f7f5;
}

.prices-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.prices h2 {
  font-size: 26px;
  margin-bottom: 36px;
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  text-align: center;
}

.price-card img {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  margin: 0 auto 16px;
}

.price-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ===================== CONTACT ===================== */
.contact {
  padding: 60px 24px;
  background-image: url("../img/lesson4.avif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

.contact-inner {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact h2 {
  font-size: 26px;
  text-align: center;
  margin-bottom: 28px;
}

.form-row {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.form-row input,
.form-row textarea {
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid #1a1a1a;
  outline-offset: 1px;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
}

.form-success {
  margin-top: 16px;
  text-align: center;
  color: #2a7a2a;
  font-weight: 600;
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: #1a1a1a;
  color: #f2f2f2;
  padding: 40px 24px;
  text-align: center;
}

.footer-inner { max-width: 700px; margin: 0 auto; }

.footer-inner p { margin-bottom: 10px; font-size: 14px; }

.social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 18px 0;
}

.social-links img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
}

.copyright {
  font-size: 12px;
  color: #999;
  margin-top: 20px;
}

/* ===================== MOBILE ===================== */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }

  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding-top: 12px;
  }

  .site-nav li { border-top: 1px solid #eee; }

  .site-nav a { display: block; padding: 12px 4px; }

  .header-btn { display: none; }

  .hero { padding: 40px 18px 30px; }

  .hero h1 { font-size: 26px; }

  .hero-tagline { font-size: 16px; }

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

  .prices, .contact { padding: 40px 18px; }
}

@media (max-width: 420px) {
  .logo-text { display: none; }

  .hero h1 { font-size: 22px; }
}
