@import url("https://fonts.googleapis.com/css2?family=Economica:wght@400;700&family=Nunito+Sans:wght@300;400;600;700&display=swap");

:root {
  --page-bg: #f4f0e8;
  --surface: #fcfaf6;
  --surface-alt: #efe6d6;
  --text: #4a4646;
  --muted: #6d675f;
  --accent: #ad3b15;
  --accent-dark: #8e2f11;
  --bar: #3f3b37;
  --border: #d8d0c3;
  --shadow: 0 8px 24px rgba(40, 35, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--page-bg);
  line-height: 1.65;
}

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

a {
  color: inherit;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

button,
a {
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 0.25rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.contact-bar {
  background: var(--bar);
  color: #f9f4eb;
  font-size: 0.95rem;
}

.contact-bar__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.1rem;
  padding: 0.45rem 0 0.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.contact-bar a {
  color: inherit;
  text-decoration: none;
}

.main-header {
  background: #fcfaf6;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 500;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.15rem 0 0.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 1.25rem 1.45rem 1.05rem;
  /* background: #fff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.1); */
  margin-top: -0.3rem;
  position: relative;
  z-index: 2;
}

.brand img {
  width: 150px;
  height: auto;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 0.3rem;
  padding: 0.6rem 0.7rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list a,
.nav-list .nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-family: inherit;
}

.nav-list .nav-link {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list .nav-link:hover,
.nav-list .nav-link:focus-visible {
  color: var(--accent);
}

.nav-item--has-dropdown {
  position: relative;
}

.nav-caret {
  margin-left: 0.35rem;
  font-size: 0.8rem;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  min-width: 18rem;
  display: none;
  list-style: none;
  margin: 0;
  padding: 0.45rem 0;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  z-index: 1000;
}

.nav-item--has-dropdown:hover .dropdown-menu,
.nav-item--has-dropdown:focus-within .dropdown-menu,
.nav-item--has-dropdown.is-open .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 0.95rem;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.82rem;
  white-space: nowrap;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: #f7efe4;
  color: var(--accent);
}

.nav-list a.is-active,
.nav-list .nav-link.is-active,
.nav-list a[aria-current="page"] {
  color: var(--accent);
}

.page-hero {
  padding: 2rem 0 1.25rem;
}

.page-hero__content {
  background: linear-gradient(rgba(248, 242, 229, 0.95), rgba(242, 232, 214, 0.94)), url("../images/bg-teacher.png");
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 2rem 2.4rem;
}

.page-hero__content h1 {
  margin: 0 0 0.7rem;
  font-family: "Economica", Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.7rem);
  color: #2f2b28;
}

.page-hero__content p {
  margin: 0;
  max-width: 44rem;
}

.page-content-section {
  padding: 1rem 0 3rem;
}

.page-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.page-content .content-side {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 1.2rem 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.page-content .content-side ul {
  margin: 0;
  padding-left: 1.1rem;
}

.page-content .content-side li + li {
  margin-top: 0.45rem;
}

.service-links {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-links a {
  display: block;
  padding: 0.7rem 0.8rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  text-decoration: none;
}

.service-links a:hover,
.service-links a:focus-visible {
  background: #fff;
  color: var(--accent);
}

.fees-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: #fff;
  border: 1px solid var(--border);
}

.fees-table th,
.fees-table td {
  border: 1px solid var(--border);
  padding: 0.75rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.fees-table th {
  background: rgba(239, 230, 214, 0.8);
}

.fees-table td:last-child,
.fees-table th:last-child {
  text-align: right;
}

.hero-slider {
  padding: 1.8rem 0 1.8rem;
}

.hero-slider__frame {
  background: linear-gradient(90deg, rgba(255, 250, 244, 0.98) 0%, rgba(241, 231, 216, 0.95) 100%);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.hero-slider__viewport {
  position: relative;
  min-height: 500px;
}

.hero-slide {
  display: none;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.8rem;
  align-items: center;
  padding: 2rem 2.4rem 1.8rem;
  min-height: 470px;
  background: linear-gradient(90deg, rgba(250, 244, 233, 0.98) 0%, rgba(239, 230, 214, 0.96) 100%);
}

.hero-slide.is-active {
  display: grid;
}

.hero-slide__copy {
  max-width: 31rem;
  padding-right: 0.25rem;
}

.slide-label {
  margin: 0 0 0.5rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-slide h1,
.hero-slide h2,
.content-copy h2,
.content-side h3,
.site-footer h2 {
  font-family: "Economica", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-slide h1,
.hero-slide h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.08;
  color: #2f2b28;
}

.hero-slide__copy p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.hero-slide__media img {
  width: 100%;
  height: 305px;
  object-fit: cover;
  border-radius: 0.3rem;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.13);
}

.hero-slider__controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1.1rem 0.9rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.62);
}

.slider-button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  cursor: pointer;
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 0.7rem;
  height: 0.7rem;
  border: none;
  border-radius: 50%;
  background: #c7bda8;
  cursor: pointer;
  padding: 0;
}

.slider-dot.is-active {
  background: var(--accent);
}

.content-section {
  padding: 2.2rem 0 3rem;
  background-image: linear-gradient(rgba(244, 240, 232, 0.9), rgba(244, 240, 232, 0.9)), url("../images/bg-teacher.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.content-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.content-copy h2 {
  margin: 0 0 0.7rem;
  font-size: 2.1rem;
  color: #2f2b28;
}

.section-label {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
}

.content-copy h3,
.content-side h2,
.content-side h3 {
  margin: 1.1rem 0 0.45rem;
  font-size: 1.45rem;
  color: #2f2b28;
}

.content-copy ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.98rem;
}

.content-copy li + li {
  margin-top: 0.45rem;
}

.content-side {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 1.2rem 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.content-side p {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
}

.site-footer {
  background-image: linear-gradient(rgba(45, 42, 39, 0.88), rgba(45, 42, 39, 0.88)), url("../images/bg-footer.png");
  background-size: cover;
  background-position: center;
  color: #f7f0e3;
  padding: 2.1rem 0 2.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.site-footer h2 {
  margin: 0 0 0.7rem;
  font-size: 1.5rem;
}

.site-footer p,
.site-footer a {
  margin: 0.2rem 0;
  color: #f7f0e3;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #ccf2ff;
}

.payment-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  padding: 1.15rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.payment-panel h3 {
  margin-top: 0;
}

.paypal-button-placeholder {
  margin: 1rem 0;
  border: 2px dashed var(--accent);
  border-radius: 0.35rem;
  padding: 1.35rem 1rem;
  background: rgba(173, 59, 21, 0.06);
  text-align: center;
  color: var(--accent);
  font-weight: 700;
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-note {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (max-width: 920px) {
  .hero-slide {
    grid-template-columns: 1fr;
    padding: 2.25rem 1.4rem 1.6rem;
  }

  .hero-slide__media img {
    height: 260px;
  }

  .content-layout,
  .footer-grid,
  .page-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem;
  }

  .nav-list a {
    width: 100%;
  }

  .nav-list .nav-link {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    width: 100%;
    box-shadow: none;
  }

  .dropdown-menu a {
    white-space: normal;
  }

  .contact-bar__inner {
    justify-content: center;
  }

  .hero-slider {
    padding-top: 1.5rem;
  }

  .hero-slider__viewport {
    min-height: auto;
  }

  .hero-slide {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .contact-bar,
  .nav-toggle,
  .hero-slider__controls {
    display: none;
  }

  .main-header {
    box-shadow: none;
  }

  .site-footer {
    background: #fff;
    color: #000;
  }

  .site-footer a {
    color: #000;
  }
}
