:root {
  --brand-orange: #f89a08;
  --brand-orange-soft: #fff1d6;
  --brand-blue: #1478c8;
  --brand-blue-dark: #07508d;
  --ink: #101114;
  --muted: #5e6673;
  --line: #e7d8bd;
  --paper: #fffaf0;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(23, 20, 14, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Vazirmatn", Arial, sans-serif;
  line-height: 1.8;
}

body.modal-open {
  overflow: hidden;
}

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

img,
iframe {
  max-width: 100%;
}

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

.shell {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 250, 240, 0.9);
  border-bottom: 1px solid rgba(16, 17, 20, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-weight: 600;
}

.nav-links a:hover,
.link-button:hover {
  color: var(--brand-blue);
}

.hero {
  padding: 72px 0 52px;
  background:
    radial-gradient(circle at 18% 20%, rgba(20, 120, 200, 0.13), transparent 30%),
    linear-gradient(135deg, #fff8e8 0%, #ffe0a0 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  color: var(--brand-blue-dark);
  font-weight: 800;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.15;
  max-width: 780px;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.25;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.hero-copy p {
  max-width: 680px;
  color: #30343a;
  font-size: 1.08rem;
}

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

.button,
.item-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.button.primary {
  background: var(--ink);
  color: var(--white);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.4);
}

.button.small {
  min-height: 40px;
}

.hero-card {
  display: grid;
  place-items: center;
  width: min(470px, 100%);
  aspect-ratio: 1;
  justify-self: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--brand-orange);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: 72px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-bottom: 16px;
}

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

.course-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 38px rgba(23, 20, 14, 0.06);
}

.course-card span,
.teacher-content span,
.admin-item span {
  color: var(--brand-blue);
  font-weight: 800;
}

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

.course-card .reserve-button {
  width: 100%;
  margin-top: 16px;
}

.course-meta {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
}

.course-meta small {
  color: var(--muted);
  font-weight: 700;
}

.consultation-note {
  margin: 28px 0 0;
  padding: 20px 22px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--brand-orange-soft);
  color: var(--ink);
  font-weight: 900;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 17, 20, 0.62);
}

.reserve-modal {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 26px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.reserve-modal h2 {
  padding-left: 42px;
}

.reserve-modal p {
  color: var(--muted);
}

.reserve-price {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--brand-orange-soft);
  color: var(--ink) !important;
  font-weight: 900;
}

.modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}

.bank-card {
  display: block;
  width: 100%;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-box {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 8px;
  background: #fffaf0;
  border: 1px solid var(--line);
}

.contact-box a {
  color: var(--brand-blue-dark);
  font-weight: 800;
}

.teachers-band {
  background: #111214;
  color: var(--white);
}

.teachers-band .eyebrow {
  color: #76c4ff;
}

.teachers-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.teacher-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #1a1c20;
}

.teacher-video {
  background: #050608;
}

.teacher-video iframe,
.teacher-video video,
.mock-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.teacher-video video {
  display: block;
  object-fit: cover;
}

.mock-video {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(248, 154, 8, 0.92), rgba(20, 120, 200, 0.88)),
    #111214;
  color: var(--white);
  font-weight: 900;
}

.teacher-content {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 18px;
  align-items: start;
}

.teacher-content p {
  margin-bottom: 0;
  color: #d9dde5;
}

.teacher-content img,
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
}

.avatar {
  display: grid;
  place-items: center;
  background: var(--brand-orange);
  color: var(--ink);
  font-size: 2rem;
  font-weight: 900;
}

.slider-shell {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 12px;
  align-items: center;
}

.testimonial-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  padding: 4px 2px 18px;
}

.testimonial-card,
.empty-slider {
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 38px rgba(23, 20, 14, 0.06);
}

.testimonial-card {
  overflow: hidden;
}

.testimonial-video iframe,
.testimonial-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #050608;
}

.testimonial-card h3 {
  margin: 0;
  padding: 16px;
}

.empty-slider {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  font-weight: 800;
}

.slider-button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.slider-button:hover {
  background: var(--ink);
  color: var(--white);
}

.info-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
}

.info-panel p,
.footer p,
.admin-hero p {
  color: var(--muted);
}

.info-panel ul {
  margin: 0;
  padding: 0 22px 0 0;
}

.footer {
  padding: 32px 0;
  background: var(--ink);
  color: var(--white);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.footer p {
  margin-bottom: 0;
  color: #d0d4dc;
}

.footer-contact {
  min-width: min(100%, 420px);
  display: grid;
  gap: 10px;
}

.footer-contact h2 {
  margin-bottom: 2px;
  font-size: 1.25rem;
}

.footer-contact a,
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.footer-contact a {
  color: #eef6ff;
  font-weight: 700;
}

.footer-contact a:hover {
  color: #76c4ff;
}

.contact-row {
  align-items: flex-start;
}

.contact-icon {
  width: 34px;
  height: 34px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.admin-layout {
  padding: 44px 0 80px;
}

.admin-hero,
.admin-section {
  margin-bottom: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.admin-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.admin-form {
  display: grid;
  gap: 14px;
}

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

.full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d6c4a5;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fffdf8;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(20, 120, 200, 0.18);
  border-color: var(--brand-blue);
}

.login-screen {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    radial-gradient(circle at 20% 18%, rgba(20, 120, 200, 0.12), transparent 28%),
    linear-gradient(135deg, #fff8e8 0%, #ffe0a0 100%);
}

.login-card {
  width: min(440px, 100%);
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.login-card img {
  width: 86px;
  height: 86px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  object-fit: cover;
}

.login-card h1 {
  margin-bottom: 6px;
  font-size: 2rem;
}

.login-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.form-error {
  min-height: 28px;
  color: #b42318;
  font-weight: 800;
}

.admin-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.admin-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
}

.admin-item div:first-child {
  display: grid;
  gap: 2px;
}

.item-actions {
  display: flex;
  gap: 8px;
}

.item-actions button {
  min-height: 38px;
  padding-inline: 14px;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

@media (max-width: 820px) {
  .nav,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .hero-grid,
  .cards-grid,
  .teachers-list,
  .info-panel,
  .grid-form,
  .slider-shell {
    grid-template-columns: 1fr;
  }

  .slider-button {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .section {
    padding: 52px 0;
  }
}

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

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

  .admin-item {
    align-items: stretch;
    flex-direction: column;
  }
}
