@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

:root {
  --blue: #244bea;
  --blue-dark: #1739c8;
  --navy: #111c4e;
  --yellow: #ffd43f;
  --sky: #edf3ff;
  --cream: #fff8dc;
  --ink: #192454;
  --muted: #66709a;
  --line: #dce4ff;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(25, 47, 133, 0.12);
  --soft-shadow: 0 12px 32px rgba(25, 47, 133, 0.09);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Poppins", "Avenir Next", Avenir, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 22%, rgba(36, 75, 234, 0.05), transparent 21rem),
    radial-gradient(circle at 92% 42%, rgba(255, 212, 63, 0.08), transparent 24rem);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--navy);
  border-radius: 10px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 228, 255, 0.75);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 84px;
  align-items: center;
  gap: 26px;
}

.logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.logo img {
  width: 142px;
  height: auto;
}

.main-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: clamp(18px, 2.1vw, 30px);
}

.main-nav a,
.header-phone {
  position: relative;
  color: #26315d;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-phone {
  display: inline-flex;
  min-height: 42px;
  padding: 9px 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.header-phone:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.hero {
  overflow: hidden;
  padding: 76px 0 74px;
  background:
    linear-gradient(118deg, #f8faff 0%, #fff 53%, #fff9e7 100%);
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(42px, 6vw, 82px);
  grid-template-columns: minmax(0, 1.02fr) minmax(400px, 0.98fr);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  margin: 0 0 16px;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 24px;
  height: 3px;
  background: var(--yellow);
  border-radius: 99px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  color: var(--navy);
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h1 span,
.section-heading span {
  color: var(--blue);
}

.hero-lead {
  max-width: 630px;
  margin-bottom: 30px;
  color: #5c668e;
  font-size: clamp(17px, 1.4vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 13px 23px;
  justify-content: center;
  align-items: center;
  gap: 9px;
  border: 2px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 25px rgba(36, 75, 234, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--blue-dark);
  box-shadow: 0 16px 30px rgba(36, 75, 234, 0.28);
}

.button-secondary {
  color: var(--blue);
  background: #fff;
  border-color: var(--line);
}

.button-yellow {
  color: var(--navy);
  background: var(--yellow);
  box-shadow: 0 11px 22px rgba(185, 143, 0, 0.2);
}

.hero-proof {
  display: flex;
  margin-top: 28px;
  align-items: center;
  gap: 12px;
  color: #5e688c;
  font-size: 14px;
}

.hero-proof strong {
  color: var(--navy);
}

.stars {
  color: #f3b400;
  letter-spacing: 1px;
}

.hero-photo-wrap {
  position: relative;
  min-height: 520px;
}

.hero-photo {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 70px 18px 70px 18px;
  box-shadow: var(--shadow);
}

.hero-badge {
  position: absolute;
  display: flex;
  right: -18px;
  bottom: 34px;
  max-width: 220px;
  padding: 16px 20px;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(25, 47, 133, 0.2);
  font-size: 13px;
  line-height: 1.35;
}

.hero-badge .badge-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--navy);
  background: var(--yellow);
  border-radius: 50%;
  font-size: 20px;
}

.hero-stats {
  display: grid;
  margin-top: 64px;
  padding: 25px 34px;
  background: var(--navy);
  border-radius: 22px;
  color: #fff;
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  padding: 4px 28px;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.stat strong {
  display: block;
  margin-bottom: 2px;
  color: var(--yellow);
  font-size: 29px;
  line-height: 1.2;
}

.stat span {
  color: #dbe1ff;
  font-size: 13px;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: #f7f9ff;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-heading.left {
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.contact-copy h2 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

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

.subject-card {
  min-height: 218px;
  padding: 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.subject-card:nth-child(odd) {
  background: var(--sky);
  border-color: #dfe8ff;
}

.subject-card:nth-child(even) {
  background: var(--cream);
  border-color: #f5e9b0;
}

.subject-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--soft-shadow);
}

.subject-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 15px;
  font-size: 24px;
}

.subject-card:nth-child(even) .subject-icon {
  color: var(--navy);
  background: var(--yellow);
}

.subject-card h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 21px;
}

.subject-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.teacher-list {
  display: grid;
  gap: 22px;
}

.teacher-card {
  display: grid;
  padding: 27px;
  align-items: center;
  gap: 28px;
  background: #fff;
  border: 1px solid #e2e8ff;
  border-radius: 26px;
  box-shadow: 0 8px 22px rgba(28, 48, 130, 0.06);
  grid-template-columns: 156px minmax(0, 1fr) 215px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.teacher-card:hover {
  border-color: #c7d3ff;
  box-shadow: var(--soft-shadow);
  transform: translateY(-2px);
}

.teacher-photo {
  width: 146px;
  height: 146px;
  object-fit: cover;
  border: 8px solid #edf2ff;
  border-radius: 50%;
}

.teacher-card:nth-child(even) .teacher-photo {
  border-color: #fff4c5;
}

.teacher-copy h3 {
  margin-bottom: 3px;
  color: var(--navy);
  font-size: 25px;
}

.teacher-role {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.teacher-copy > p:not(.teacher-role) {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  padding: 6px 10px;
  color: #3f4b78;
  background: #f1f4ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.teacher-side {
  padding-left: 25px;
  border-left: 1px solid var(--line);
  text-align: center;
}

.availability {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 11px;
  align-items: center;
  gap: 7px;
  color: #23724b;
  background: #eaf8f1;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.availability::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #32ad70;
  border-radius: 50%;
}

.teacher-side .button {
  width: 100%;
  min-height: 48px;
  padding-inline: 15px;
  font-size: 14px;
}

.teacher-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.price-intro {
  display: grid;
  margin-bottom: 28px;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.price-benefit {
  padding: 24px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 7px 22px rgba(28, 48, 130, 0.05);
}

.price-benefit strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 18px;
}

.price-benefit p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.price-benefit .benefit-mark {
  display: grid;
  width: 39px;
  height: 39px;
  margin-bottom: 15px;
  place-items: center;
  color: var(--navy);
  background: var(--yellow);
  border-radius: 12px;
  font-weight: 800;
}

.pricing-block + .pricing-block {
  margin-top: 52px;
}

.pricing-block h3 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: 27px;
}

.accordion {
  display: grid;
  gap: 12px;
}

.accordion-item {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.accordion-item:has(.accordion-button[aria-expanded="true"]) {
  border-color: #becbff;
  box-shadow: 0 10px 28px rgba(31, 55, 150, 0.09);
}

.accordion-button {
  display: grid;
  width: 100%;
  min-height: 79px;
  padding: 18px 22px;
  align-items: center;
  color: var(--navy);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  grid-template-columns: minmax(0, 1fr) auto 40px;
  gap: 18px;
}

.accordion-title {
  font-weight: 700;
}

.accordion-subtitle {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.accordion-price {
  color: var(--blue);
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

.accordion-plus {
  position: relative;
  width: 36px;
  height: 36px;
  background: #edf2ff;
  border-radius: 50%;
}

.accordion-plus::before,
.accordion-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--blue);
  border-radius: 99px;
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

.accordion-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-button[aria-expanded="true"] .accordion-plus::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.accordion-panel {
  padding: 0 22px 22px;
}

.accordion-panel[hidden] {
  display: none;
}

.price-table {
  overflow: hidden;
  border: 1px solid #e3e8fa;
  border-radius: 13px;
}

.price-row {
  display: grid;
  min-height: 47px;
  padding: 11px 16px;
  align-items: center;
  color: #4f5a83;
  background: #fbfcff;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 22px;
  font-size: 13px;
}

.price-row:nth-child(even) {
  background: #f2f5ff;
}

.price-row strong {
  color: var(--navy);
}

.price-row .duration {
  color: var(--muted);
  min-width: 58px;
}

.price-row .amount {
  min-width: 92px;
  color: var(--blue);
  font-weight: 800;
  text-align: right;
}

.price-footnote {
  margin: 13px 2px 0;
  color: var(--muted);
  font-size: 12px;
}

.group-label {
  display: inline-flex;
  margin-left: 8px;
  padding: 4px 8px;
  vertical-align: middle;
  color: #7a5d00;
  background: #fff0a8;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.review-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}

.review-card {
  position: relative;
  min-height: 295px;
  padding: 28px 24px 23px;
  background: #fff;
  border: 1px solid #e1e7fb;
  border-radius: 23px;
  box-shadow: 0 9px 25px rgba(24, 46, 127, 0.06);
}

.review-card::before {
  content: "“";
  position: absolute;
  top: 8px;
  right: 19px;
  color: #e2e9ff;
  font-family: Georgia, serif;
  font-size: 78px;
  line-height: 1;
}

.review-stars {
  margin-bottom: 17px;
  color: #f3b400;
  font-size: 14px;
  letter-spacing: 1px;
}

.review-card blockquote {
  position: relative;
  margin: 0 0 22px;
  color: #4d587e;
  font-size: 14px;
}

.reviewer {
  display: flex;
  margin-top: auto;
  align-items: center;
  gap: 11px;
}

.reviewer-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}

.reviewer strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
}

.reviewer span {
  color: var(--muted);
  font-size: 11px;
}

.contact-section {
  padding-bottom: 110px;
  background: linear-gradient(180deg, #fff 0%, #f4f7ff 100%);
}

.contact-shell {
  display: grid;
  overflow: hidden;
  min-height: 620px;
  background: var(--navy);
  border-radius: 34px;
  box-shadow: var(--shadow);
  grid-template-columns: 0.82fr 1.18fr;
}

.contact-visual {
  position: relative;
  min-height: 620px;
}

.contact-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.contact-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 28, 78, 0.08), rgba(17, 28, 78, 0.82));
}

.contact-copy {
  position: absolute;
  z-index: 2;
  right: 36px;
  bottom: 35px;
  left: 36px;
  color: #fff;
}

.contact-copy h2 {
  color: #fff;
  font-size: 38px;
}

.contact-copy p {
  margin-bottom: 22px;
  color: #e2e7ff;
  font-size: 14px;
}

.contact-details {
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.contact-details a {
  width: fit-content;
  color: #fff;
  font-weight: 600;
}

.contact-form-wrap {
  display: flex;
  padding: clamp(38px, 5vw, 66px);
  flex-direction: column;
  justify-content: center;
  background: #fff;
  border-radius: 33px 0 0 33px;
}

.contact-form-wrap h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 29px;
}

.contact-form-wrap > p {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
}

.contact-form {
  display: grid;
  gap: 15px;
}

.form-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.field label {
  display: block;
  margin: 0 0 6px 2px;
  color: #36416e;
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--navy);
  background: #f7f9ff;
  border: 1px solid #dfe5f8;
  border-radius: 11px;
  outline: none;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 75, 234, 0.12);
}

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

.form-status {
  min-height: 20px;
  margin: 0;
  color: #23724b;
  font-size: 12px;
  font-weight: 600;
}

.site-footer {
  padding: 40px 0 24px;
  color: #cfd6f9;
  background: #0c153f;
}

.footer-main {
  display: grid;
  padding-bottom: 30px;
  align-items: start;
  gap: 36px;
  grid-template-columns: 1.5fr 1fr 1fr;
}

.footer-logo {
  width: 140px;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 390px;
  margin-bottom: 0;
  color: #aeb7df;
  font-size: 13px;
}

.footer-column h3 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 14px;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 7px;
}

.footer-column a,
.footer-column span {
  width: fit-content;
  color: #b7c0e5;
  font-size: 12px;
}

.footer-column a:hover {
  color: var(--yellow);
}

.footer-bottom {
  display: flex;
  padding-top: 19px;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8f99c4;
  font-size: 11px;
}

:focus-visible {
  outline: 3px solid rgba(36, 75, 234, 0.35);
  outline-offset: 3px;
}

@media (max-width: 1050px) {
  .main-nav {
    display: none;
  }

  .header-phone {
    margin-left: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr 0.9fr;
    gap: 42px;
  }

  .hero-photo-wrap,
  .hero-photo {
    min-height: 470px;
    height: 470px;
  }

  .teacher-card {
    grid-template-columns: 125px minmax(0, 1fr) 190px;
    gap: 22px;
  }

  .teacher-photo {
    width: 118px;
    height: 118px;
  }

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

  .review-card {
    min-height: 250px;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 34px, 680px);
  }

  .header-inner {
    min-height: 72px;
  }

  .logo img {
    width: 126px;
  }

  .hero {
    padding: 48px 0 58px;
  }

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

  h1 {
    font-size: clamp(40px, 10vw, 58px);
  }

  .hero-photo-wrap,
  .hero-photo {
    min-height: 440px;
    height: 440px;
  }

  .hero-badge {
    right: 14px;
  }

  .section {
    padding: 76px 0;
  }

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

  .teacher-card {
    padding: 24px;
    grid-template-columns: 108px 1fr;
  }

  .teacher-photo {
    width: 104px;
    height: 104px;
  }

  .teacher-side {
    display: grid;
    padding: 19px 0 0;
    align-items: center;
    border-top: 1px solid var(--line);
    border-left: 0;
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr;
    gap: 14px;
  }

  .teacher-side .availability {
    margin: 0;
  }

  .teacher-side .button {
    justify-self: end;
    width: auto;
    min-width: 210px;
  }

  .teacher-note {
    display: none;
  }

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

  .contact-shell {
    grid-template-columns: 1fr;
  }

  .contact-visual {
    min-height: 420px;
  }

  .contact-form-wrap {
    border-radius: 32px 32px 0 0;
  }

  .footer-main {
    grid-template-columns: 1.4fr 1fr;
  }
}

@media (max-width: 580px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(100% - 28px, 520px);
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    min-height: 68px;
  }

  .logo img {
    width: 116px;
  }

  .header-phone {
    min-height: 38px;
    padding: 7px 11px;
    font-size: 11px;
  }

  .hero {
    padding: 38px 0 48px;
  }

  .eyebrow,
  .section-kicker {
    font-size: 11px;
  }

  h1 {
    margin-bottom: 18px;
    font-size: clamp(37px, 11.8vw, 50px);
  }

  .hero-lead {
    margin-bottom: 24px;
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

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

  .hero-proof {
    margin-top: 22px;
    align-items: flex-start;
  }

  .hero-photo-wrap,
  .hero-photo {
    min-height: 365px;
    height: 365px;
  }

  .hero-photo {
    border-radius: 46px 14px 46px 14px;
  }

  .hero-badge {
    right: 10px;
    bottom: 18px;
    max-width: 205px;
    padding: 13px 15px;
  }

  .hero-badge .badge-icon {
    width: 38px;
    height: 38px;
  }

  .hero-stats {
    margin-top: 34px;
    padding: 18px 8px;
    border-radius: 17px;
  }

  .stat {
    padding: 2px 8px;
  }

  .stat strong {
    font-size: 22px;
  }

  .stat span {
    font-size: 9px;
    line-height: 1.25;
  }

  .section {
    padding: 62px 0;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: 34px;
  }

  .section-heading p {
    font-size: 14px;
  }

  .subject-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .subject-card {
    display: grid;
    min-height: 0;
    padding: 22px;
    grid-template-columns: 48px 1fr;
    column-gap: 15px;
  }

  .subject-icon {
    width: 46px;
    height: 46px;
    margin: 0;
    grid-row: 1 / 3;
    font-size: 20px;
  }

  .subject-card h3 {
    margin: 0 0 4px;
    font-size: 18px;
  }

  .subject-card p {
    font-size: 12px;
  }

  .teacher-list {
    gap: 17px;
  }

  .teacher-card {
    padding: 21px;
    align-items: start;
    gap: 15px;
    grid-template-columns: 82px 1fr;
  }

  .teacher-photo {
    width: 80px;
    height: 80px;
    border-width: 5px;
  }

  .teacher-copy h3 {
    font-size: 20px;
  }

  .teacher-role {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .teacher-copy > p:not(.teacher-role) {
    margin-right: -96px;
    margin-bottom: 13px;
    padding-top: 13px;
    font-size: 12px;
  }

  .tags {
    margin-right: -96px;
  }

  .tag {
    padding: 5px 8px;
    font-size: 10px;
  }

  .teacher-side {
    display: block;
    padding-top: 16px;
    text-align: left;
  }

  .teacher-side .availability {
    margin-bottom: 10px;
  }

  .teacher-side .button {
    width: 100%;
    min-width: 0;
  }

  .price-intro {
    gap: 11px;
  }

  .price-benefit {
    padding: 20px;
  }

  .pricing-block + .pricing-block {
    margin-top: 38px;
  }

  .pricing-block h3 {
    font-size: 23px;
  }

  .accordion-button {
    min-height: 72px;
    padding: 15px;
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 10px;
  }

  .accordion-title {
    font-size: 13px;
  }

  .accordion-price {
    display: none;
  }

  .accordion-plus {
    width: 34px;
    height: 34px;
  }

  .accordion-panel {
    padding: 0 13px 14px;
  }

  .price-row {
    padding: 10px;
    grid-template-columns: 1fr auto;
    gap: 5px 12px;
    font-size: 11px;
  }

  .price-row .duration {
    grid-column: 1;
    grid-row: 2;
  }

  .price-row .amount {
    min-width: 75px;
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .group-label {
    display: none;
  }

  .review-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .review-card {
    min-height: 0;
    padding: 24px 21px;
  }

  .contact-section {
    padding-bottom: 70px;
  }

  .contact-shell {
    min-height: 0;
    border-radius: 25px;
  }

  .contact-visual {
    min-height: 350px;
  }

  .contact-copy {
    right: 23px;
    bottom: 25px;
    left: 23px;
  }

  .contact-copy h2 {
    margin-bottom: 11px;
  }

  .contact-form-wrap {
    padding: 31px 21px 34px;
    border-radius: 25px 25px 0 0;
  }

  .contact-form-wrap h3 {
    font-size: 25px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 5px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Landing page component bindings */
.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.header-row {
  display: flex;
  min-height: 84px;
  align-items: center;
  gap: 28px;
}

.logo-link {
  display: inline-flex;
  flex: 0 0 auto;
}

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

.desktop-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: clamp(18px, 2.1vw, 30px);
}

.desktop-nav a {
  position: relative;
  color: #26315d;
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-call {
  display: inline-flex;
  min-height: 42px;
  padding: 9px 17px;
  align-items: center;
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.header-call:hover {
  border-color: var(--blue);
}

.rating {
  display: flex;
  margin-top: 28px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.rating strong {
  color: var(--navy);
}

.stats {
  display: grid;
  margin-top: 58px;
  padding: 24px 18px;
  color: #fff;
  background: var(--navy);
  border-radius: 22px;
  grid-template-columns: repeat(4, 1fr);
}

.stats .stat {
  padding: 4px 20px;
}

.stats .stat + .stat {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.section-pale {
  background: #f7f9ff;
}

.teacher-card > img {
  width: 146px;
  height: 146px;
  object-fit: cover;
  border: 8px solid #edf2ff;
  border-radius: 50%;
}

.teacher-card:nth-child(even) > img {
  border-color: #fff4c5;
}

.specialty {
  margin-bottom: 11px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.teacher-description {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.teacher-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.teacher-tags span {
  padding: 6px 10px;
  color: #3f4b78;
  background: #f1f4ff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.teacher-side .availability {
  display: block;
  margin-bottom: 13px;
  padding: 10px 12px;
  color: #23724b;
  background: #eaf8f1;
  border-radius: 12px;
  line-height: 1.25;
}

.teacher-side .availability::before {
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

.teacher-side .availability small,
.teacher-side .availability strong {
  display: block;
}

.teacher-side .availability small {
  margin-bottom: 3px;
  font-size: 10px;
  text-transform: uppercase;
}

.teacher-side .availability strong {
  font-size: 12px;
}

.teacher-booking,
.teacher-contact {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  justify-content: center;
  align-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 13px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}

.teacher-highlight {
  border-color: #f0cf44;
  box-shadow: 0 14px 34px rgba(177, 132, 0, 0.11);
}

.teacher-highlight .teacher-booking {
  color: var(--navy);
  background: var(--yellow);
}

.teacher-booking:hover,
.teacher-contact:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.teacher-highlight .teacher-booking:hover {
  background: #f2c62b;
}

.offer-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, 1fr);
}

.offer-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 25px;
  box-shadow: var(--soft-shadow);
}

.offer-card:nth-child(2) {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.offer-icon {
  display: grid;
  width: 57px;
  height: 57px;
  margin-bottom: 21px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
}

.offer-card:nth-child(2) .offer-icon {
  color: var(--navy);
  background: var(--yellow);
}

.offer-card h3 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 24px;
}

.offer-card:nth-child(2) h3 {
  color: #fff;
}

.offer-card ul {
  margin: 0 0 22px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}

.offer-card:nth-child(2) ul {
  color: #d4dcff;
}

.offer-card a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.offer-card:nth-child(2) a {
  color: var(--yellow);
}

.price-heading {
  max-width: 720px;
  margin-bottom: 33px;
}

.price-heading h2 {
  margin-bottom: 13px;
  color: var(--navy);
  font-size: clamp(32px, 4vw, 45px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.price-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.accordion-list {
  display: grid;
  gap: 12px;
}

.accordion-button > span:first-child strong,
.accordion-button > span:first-child small {
  display: block;
}

.accordion-button > span:first-child strong {
  color: var(--navy);
  font-size: 16px;
}

.accordion-button > span:first-child small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.accordion-button {
  grid-template-columns: minmax(0, 1fr) 40px;
}

.accordion-plus {
  display: block;
  color: transparent;
  font-size: 0;
}

.individual-price-grid {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(3, 1fr);
}

.price-card,
.course-price-card,
.course-includes {
  position: relative;
  padding: 22px;
  background: #f8faff;
  border: 1px solid #e0e7ff;
  border-radius: 15px;
}

.price-card.featured {
  padding-top: 35px;
  background: #fff9df;
  border-color: #efd35e;
}

.price-card h3,
.course-price-card h3,
.course-includes h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 15px;
}

.price-card p {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
}

.price-card p strong,
.price-main {
  color: var(--blue) !important;
  font-size: 18px !important;
  font-weight: 800;
}

.price-badge {
  display: inline-flex;
  position: absolute;
  top: 0;
  right: 16px;
  padding: 5px 10px;
  color: #755b00;
  background: var(--yellow);
  border-radius: 0 0 8px 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.course-price-grid {
  display: grid;
  gap: 13px;
  grid-template-columns: 0.8fr 1.2fr;
}

.course-price-card {
  display: flex;
  min-height: 180px;
  padding-top: 44px;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.course-price-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.course-price-card p strong {
  display: block;
  color: var(--blue);
  font-size: 30px;
}

.course-includes ul {
  display: grid;
  margin: 0;
  padding-left: 19px;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
}

.review-grid {
  grid-template-columns: repeat(4, 1fr);
}

.review {
  position: relative;
  min-height: 280px;
  padding: 27px 23px;
  background: #fff;
  border: 1px solid #e1e7fb;
  border-radius: 22px;
  box-shadow: 0 9px 25px rgba(24, 46, 127, 0.06);
}

.review-top {
  display: flex;
  margin-bottom: 16px;
  justify-content: space-between;
  align-items: center;
}

.quote-mark {
  color: #d9e2ff;
  font-family: Georgia, serif;
  font-size: 49px;
  line-height: 0.8;
}

.review > p {
  min-height: 126px;
  margin-bottom: 20px;
  color: #4d587e;
  font-size: 13px;
}

.review > strong,
.review > small {
  display: block;
}

.review > strong {
  color: var(--navy);
  font-size: 13px;
}

.review > small {
  color: var(--muted);
  font-size: 11px;
}

.contact-grid {
  display: grid;
  overflow: hidden;
  min-height: 500px;
  color: #fff;
  background: var(--navy);
  border-radius: 34px;
  box-shadow: var(--shadow);
  grid-template-columns: 0.75fr 1.25fr;
}

.contact-grid > .contact-copy {
  position: static;
  padding: 60px 42px;
  align-self: center;
  color: #fff;
}

.contact-grid > .contact-copy .eyebrow {
  color: var(--yellow);
}

.contact-grid > .contact-copy h2 {
  color: #fff;
}

.contact-grid > .contact-copy p {
  color: #d8defb;
}

.contact-list {
  display: grid;
  margin-top: 30px;
  gap: 13px;
}

.contact-list > a,
.contact-list > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-list > a > span,
.contact-list > div > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--navy);
  background: var(--yellow);
  border-radius: 11px;
  font-weight: 800;
}

.contact-list small,
.contact-list strong {
  display: block;
}

.contact-list small {
  color: #aeb9ed;
  font-size: 10px;
  text-transform: uppercase;
}

.contact-list strong {
  color: #fff;
  font-size: 13px;
}

.contact-grid > .contact-visual {
  position: relative;
  min-height: 500px;
}

.contact-grid > .contact-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.contact-grid > .contact-visual::after {
  background: linear-gradient(90deg, rgba(17, 28, 78, 0.35), rgba(17, 28, 78, 0.08));
}

.contact-grid .contact-form {
  position: relative;
  z-index: 3;
  top: auto;
  right: auto;
  width: min(500px, 100%);
  padding: 34px;
  color: var(--ink);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 55px rgba(9, 20, 70, 0.3);
  transform: none;
}

.contact-form h3 {
  margin-bottom: 20px;
  color: var(--navy);
  font-size: 27px;
}

.contact-form > label,
.contact-form .form-row label {
  display: block;
}

.contact-form label > span {
  display: block;
  margin: 0 0 6px 2px;
  color: #36416e;
  font-size: 11px;
  font-weight: 700;
}

.contact-form input:not([type="checkbox"]),
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--navy);
  background: #f7f9ff;
  border: 1px solid #dfe5f8;
  border-radius: 10px;
  outline: none;
}

.contact-form textarea {
  min-height: 90px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 75, 234, 0.12);
}

.consent {
  display: grid !important;
  align-items: start;
  grid-template-columns: 17px 1fr;
  gap: 8px;
}

.consent input {
  margin-top: 2px;
}

.consent span {
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 9px !important;
  font-weight: 400 !important;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 20px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.form-status.is-success {
  color: #18794e;
}

.form-status.is-error {
  color: #b42318;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  color: #aeb7df;
  font-size: 11px;
}

.footer-row a:hover {
  color: var(--yellow);
}

@media (max-width: 1050px) {
  .desktop-nav {
    display: none;
  }

  .header-call {
    margin-left: auto;
  }

  .teacher-card > img {
    width: 118px;
    height: 118px;
  }

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

@media (max-width: 820px) {
  .shell {
    width: min(100% - 34px, 680px);
  }

  .header-row {
    min-height: 72px;
  }

  .logo-link img {
    width: 126px;
  }

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

  .stats {
    margin-top: 35px;
  }

  .teacher-card > img {
    width: 104px;
    height: 104px;
  }

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

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

  .contact-grid > .contact-copy {
    padding: 45px 34px;
  }

  .contact-grid > .contact-visual {
    min-height: 420px;
  }
}

@media (max-width: 580px) {
  .shell {
    width: min(100% - 28px, 520px);
  }

  .header-row {
    min-height: 68px;
  }

  .logo-link img {
    width: 116px;
  }

  .header-call {
    min-height: 38px;
    padding: 7px 11px;
    font-size: 11px;
  }

  .rating {
    flex-wrap: wrap;
  }

  .stats {
    padding: 16px 5px;
  }

  .stats .stat {
    padding: 2px 5px;
  }

  .stats .stat strong {
    font-size: 18px;
  }

  .stats .stat span {
    font-size: 8px;
  }

  .teacher-card > img {
    width: 80px;
    height: 80px;
    border-width: 5px;
  }

  .specialty {
    font-size: 11px;
  }

  .teacher-description {
    margin-right: -96px;
    padding-top: 10px;
    font-size: 12px;
  }

  .teacher-tags {
    margin-right: -96px;
  }

  .teacher-tags span {
    font-size: 9px;
  }

  .teacher-side {
    text-align: left;
  }

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

  .price-card,
  .course-price-card,
  .course-includes {
    padding: 18px;
  }

  .price-card.featured {
    padding-top: 34px;
  }

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

  .review {
    min-height: 0;
  }

  .review > p {
    min-height: 0;
  }

  .contact-grid {
    min-height: 0;
    border-radius: 25px;
  }

  .contact-grid > .contact-copy {
    padding: 38px 23px;
  }

  .contact-grid > .contact-visual {
    min-height: 320px;
    padding: 0;
  }

  .footer-row {
    flex-direction: column;
    gap: 7px;
  }
}

.logo-link {
  align-items: center;
  gap: 9px;
}

.logo-link img {
  display: none;
}

.logo-link::before {
  content: "";
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  background: url("images/logo.png") left center / 142px auto no-repeat;
}

.logo-link::after {
  content: "AleKorki";
  color: var(--navy);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

@media (max-width: 580px) {
  .teacher-copy {
    display: contents;
  }

  .teacher-card > img {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .teacher-copy h3 {
    margin: 4px 0 0;
    grid-column: 2;
  }

  .teacher-copy .specialty {
    margin: 0;
    grid-column: 2;
  }

  .teacher-description,
  .teacher-tags {
    width: 100%;
    margin-right: 0;
    grid-column: 1 / -1;
  }

  .teacher-description {
    padding-top: 2px;
  }
}

@media (max-width: 580px) {
  .teacher-card .teacher-copy > .specialty {
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 11px;
  }

  .teacher-card .teacher-copy > .teacher-description {
    width: 100%;
    margin: 0;
    padding-top: 2px;
  }
}
/* Logo identyczne jak w nagłówku głównej strony na porcie 8000. */
.logo-link {
  position: relative;
  display: block;
  width: 220px;
  height: 54px;
  overflow: hidden;
}

.logo-link img {
  position: absolute;
  top: -87px;
  left: -85px;
  display: block;
  width: 388px;
  max-width: none;
  height: auto;
}

.logo-link::before,
.logo-link::after {
  display: none;
  content: none;
}

@media (max-width: 720px) {
  .logo-link {
    width: 165px;
    height: 40px;
  }

  .logo-link img {
    top: -66px;
    left: -65px;
    width: 300px;
  }
}
.header-call {
  color: var(--navy);
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 0 8px 20px rgba(185, 143, 0, 0.18);
}

.header-call:hover,
.header-call:focus-visible {
  color: var(--navy);
  background: #f2c62b;
  border-color: #f2c62b;
}
/* Typografia i sekcja przedmiotów zgodne z główną stroną na porcie 8000. */
body {
  font-family: "Montserrat", "Avenir Next", sans-serif;
}

.site-header,
.hero-copy,
.hero .stats {
  font-family: "Poppins", "Montserrat", sans-serif;
}

.hero {
  padding-bottom: 0;
}

.section {
  padding-block: 68px;
}

.section-heading {
  margin-bottom: 38px;
}

.subject-grid {
  gap: 16px;
}

.subject-card {
  display: grid;
  min-height: 172px;
  padding: 19px 18px;
  align-items: center;
  gap: 14px;
  background: #f4f7ff;
  border: 1px solid #dce5fa;
  border-radius: 8px;
  grid-template-columns: 72px minmax(0, 1fr);
}

.subject-card:nth-child(odd) {
  background: #f4f7ff;
  border-color: #dce5fa;
}

.subject-card:nth-child(even) {
  background: #fff9df;
  border-color: #f3df91;
}

.subject-card h3 {
  margin: 0 0 6px;
  color: #122147;
  font-size: 18px;
  line-height: 1.2;
}

.subject-card p {
  margin: 0;
  color: #66718d;
  font-size: 14px;
  line-height: 1.6;
}

.subject-icon,
.subject-card:nth-child(even) .subject-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0;
  place-items: center;
  overflow: hidden;
  color: #183a8c;
  background: #eaf0ff;
  border-radius: 50%;
  grid-row: auto;
}

.subject-card:nth-child(even) .subject-icon {
  background: #fff1c7;
}

.subject-glyph {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: #183a8c;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.subject-glyph-fill {
  fill: #183a8c;
  stroke: none;
}

@media (max-width: 580px) {
  .section {
    padding-block: 48px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .subject-card {
    min-height: 0;
    padding: 18px;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
  }

  .subject-icon,
  .subject-card:nth-child(even) .subject-icon {
    width: 58px;
    height: 58px;
  }

  .subject-glyph {
    width: 40px;
    height: 40px;
  }
}

/* Tutor cards aligned with the main AleKorki site. */
.teacher-list {
  display: grid;
  gap: 24px;
  margin: 0 auto;
  max-width: 1180px;
}

.teacher-card {
  display: grid;
  padding: 30px 34px;
  align-items: center;
  gap: 32px;
  background: #fff;
  border: 1px solid #e3eaf7;
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(15, 65, 145, 0.08);
  grid-template-columns: 182px minmax(0, 1fr) 232px;
  transition: none;
}

.teacher-card:hover {
  border-color: #e3eaf7;
  box-shadow: 0 14px 36px rgba(15, 65, 145, 0.08);
  transform: none;
}

.teacher-card > img,
.teacher-card:nth-child(even) > img {
  width: 182px;
  height: 182px;
  object-fit: cover;
  border: 3px solid #edf2fb;
  border-radius: 50%;
}

.teacher-copy h3 {
  margin: 0;
  color: #07377e;
  font-family: "Poppins", "Montserrat", sans-serif;
  font-size: clamp(2.25rem, 4vw, 3.45rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.specialty {
  margin: 9px 0 0;
  color: #075bea;
  font-size: 1.18rem;
  font-weight: 750;
}

.teacher-description-details {
  margin-top: 15px;
}

.teacher-description-summary {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  color: #075bea;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  list-style: none;
}

.teacher-description-summary::-webkit-details-marker {
  display: none;
}

.teacher-description-summary::marker {
  content: "";
}

.teacher-description-summary:hover {
  color: #064bc2;
}

.teacher-description-summary:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(7, 91, 234, 0.22);
  outline-offset: 4px;
}

.teacher-description-more,
.teacher-description-less {
  align-items: center;
  gap: 7px;
}

.teacher-description-more {
  display: inline-flex;
}

.teacher-description-less {
  display: none;
}

.teacher-description-details[open] .teacher-description-more {
  display: none;
}

.teacher-description-details[open] .teacher-description-less {
  display: inline-flex;
}

.teacher-description {
  display: block;
  max-width: 66ch;
  margin: 13px 0 0;
  color: #526987;
  font-size: 0.96rem;
  line-height: 1.65;
}

.teacher-tags {
  display: flex;
  margin-top: 17px;
  flex-wrap: wrap;
  gap: 9px;
}

.teacher-tags span {
  padding: 7px 13px;
  color: #1853b8;
  background: #f3f7ff;
  border: 1px solid #e2eaf9;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
}

.teacher-side {
  display: flex;
  padding: 0;
  flex-direction: column;
  gap: 12px;
  border: 0;
  text-align: center;
}

.teacher-side .availability {
  display: block;
  margin: 0;
  padding: 15px 12px;
  color: #0a3475;
  background: #f4f7fd;
  border: 1px solid #e5ebf7;
  border-radius: 17px;
}

.teacher-side .availability::before {
  display: none;
}

.teacher-side .availability small {
  display: block;
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.teacher-side .availability strong {
  display: block;
  margin-top: 3px;
  font-size: 1.32rem;
}

.teacher-booking,
.teacher-contact,
.teacher-highlight .teacher-booking {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  padding: 15px 12px;
  justify-content: center;
  align-items: center;
  color: #fff;
  background: #075bf0;
  border-radius: 17px;
  font-size: 0.95rem;
  font-weight: 750;
}

.teacher-highlight {
  border-color: #e3eaf7;
  box-shadow: 0 14px 36px rgba(15, 65, 145, 0.08);
}

.teacher-highlight .teacher-booking {
  color: #fff;
}

@media (max-width: 1050px) {
  .teacher-card {
    padding: 22px;
    gap: 18px;
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .teacher-card > img,
  .teacher-card:nth-child(even) > img {
    width: 104px;
    height: 104px;
  }

  .teacher-copy h3 {
    font-size: 2.2rem;
  }

  .specialty {
    font-size: 1rem;
  }

  .teacher-side {
    display: grid;
    padding: 0;
    border: 0;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 210px;
  }

  .teacher-side .teacher-booking,
  .teacher-side .teacher-contact {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 680px) {
  .teacher-card {
    padding: 17px;
    gap: 18px;
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .teacher-card > img,
  .teacher-card:nth-child(even) > img {
    width: 82px;
    height: 82px;
  }

  .teacher-copy h3 {
    font-size: 1.8rem;
  }

  .specialty {
    font-size: 0.88rem;
  }

  .teacher-description-details {
    grid-column: 1 / -1;
  }

  .teacher-tags {
    gap: 6px;
    margin-top: 12px;
  }

  .teacher-tags span {
    padding: 6px 9px;
    font-size: 0.74rem;
  }

  .teacher-side {
    grid-template-columns: 1fr;
  }
}

/* Static legal pages */
.legal-page {
  background: #f7f9ff;
}

.legal-page .site-header {
  position: static;
}

.legal-main {
  padding: clamp(42px, 7vw, 84px) 0;
}

.legal-shell {
  width: min(900px, calc(100% - 48px));
  margin-inline: auto;
}

.legal-intro {
  margin-bottom: 30px;
}

.legal-intro h1 {
  max-width: 18ch;
  margin: 8px 0 14px;
  color: var(--navy);
  font-size: clamp(2.15rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.legal-intro > p:not(.eyebrow) {
  max-width: 68ch;
  margin: 0 0 20px;
  color: var(--muted);
}

.legal-download {
  display: inline-flex;
  min-height: 46px;
  padding: 11px 18px;
  align-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.legal-download:hover,
.legal-download:focus-visible {
  background: var(--blue-dark);
}

.legal-document {
  padding: clamp(26px, 6vw, 58px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.legal-document h2 {
  margin: 2.4em 0 0.65em;
  color: var(--navy);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.2;
}

.legal-document h2:first-child {
  margin-top: 0;
}

.legal-document h3 {
  margin: 1.7em 0 0.45em;
  color: var(--navy);
  font-size: 1.08rem;
}

.legal-document p,
.legal-document li {
  color: #303a67;
}

.legal-document ol,
.legal-document ul {
  padding-left: 1.45rem;
}

.legal-document li + li {
  margin-top: 0.55em;
}

.legal-document ol[type="a"] {
  padding-left: 1.75rem;
}

.legal-updated {
  margin-top: 2.5rem;
  font-weight: 700;
}

@media (max-width: 580px) {
  .legal-shell {
    width: min(100% - 28px, 900px);
  }

  .legal-document {
    border-radius: 20px;
  }
}

/* Mobilna nawigacja zastępuje ukrywane linki z nagłówka na węższych ekranach. */
.mobile-menu-toggle {
    display: none;
    min-height: 44px;
    padding: 8px 12px;
    align-items: center;
    gap: 9px;
    color: var(--blue);
    background: transparent;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
    background: #f1f5ff;
}

.mobile-menu-toggle:focus-visible {
    outline: 3px solid rgba(37, 84, 235, 0.22);
    outline-offset: 2px;
}

.mobile-menu-toggle-icon {
    position: relative;
    width: 21px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: background 160ms ease;
}

.mobile-menu-toggle-icon::before,
.mobile-menu-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 21px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 160ms ease;
}

.mobile-menu-toggle-icon::before {
    top: -6px;
}

.mobile-menu-toggle-icon::after {
    top: 6px;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle-icon {
    background: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle-icon::before {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle-icon::after {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-navigation {
    position: absolute;
    z-index: 20;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 18px 34px rgba(18, 34, 92, 0.13);
}

.mobile-navigation[hidden] {
    display: none;
}

.mobile-navigation-inner {
    display: grid;
    padding-top: 8px;
    padding-bottom: 14px;
}

.mobile-navigation a {
    display: flex;
    min-height: 48px;
    padding: 12px 4px;
    align-items: center;
    color: var(--navy);
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    font-weight: 700;
}

.mobile-navigation .mobile-navigation-call {
    margin-top: 10px;
    justify-content: center;
    color: var(--navy);
    background: var(--yellow);
    border: 0;
    border-radius: 12px;
}

@media (max-width: 1050px) {
    .mobile-menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .header-call {
        display: none;
    }
}
