/* =========================================================
   MIRRA BELLA — Учебная платформа
   Адаптивная верстка макета «Новый дизайн 1920»
   ========================================================= */

:root {
  --heading: #454259;
  --text: #4b4a58;
  --text-muted: #6b6979;
  --peach-1: #fdeee4;
  --peach-2: #fce1d4;
  --peach-3: #fbd2c6;
  --peach-4: #f8c7c9;
  --card-border: #f3c9be;
  --btn-pink-bg: #fbd0cb;
  --btn-pink-bg-hover: #f8bcb4;
  --btn-text: #2b2620;
  --whatsapp: #4caf66;
  --info-blue-bg: #cfe1fb;
  --info-blue-icon: #3d6fd6;
  --note-bg: #fce0c4;
  --white: #ffffff;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container-w: 1200px;
  --font-heading: "Nunito", sans-serif;
  --font-body: "Nunito Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--heading);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  text-align: center;
  margin: 0 0 12px;
}

.section-title--left {
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  /* max-width: 720px; */
  margin: 0 auto 48px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: top center url("../images/bg-soft-portrait.jpg");
  padding: 80px 0 64px;
  text-align: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  width: 90%;
  width: 480px;
  height: auto;
  margin-bottom: 35px;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--heading);
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  margin: 8px 0 12px;
}

.hero__subtitle {
  font-style: italic;
  color: var(--text-muted);
  font-size: clamp(0.85rem, 1.6vw, 1rem);
 /* max-width: 640px; */
  margin: 0;
}

/* =========================================================
   FOUNDER
   ========================================================= */
.founder {
  background:top center url("../images/bg-soft-portrait2.jpg");
  padding: 56px 0 72px;
  border-top: 1px solid rgba(90, 65, 60, 0.25);
}

.founder__grid {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}

.founder__card {
  background: rgba(255, 255, 255, 0.0);
}

.founder__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 12px 30px rgba(120, 70, 60, 0.12);
}

.founder__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.note {
	width: 28px;
}
.founder__name {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--heading);
  font-size: 1.4rem;
  margin: 20px 0 10px;
}

.founder__desc {
  color: var(--text);
  font-size: 0.98rem;
  margin: 0;
}

.founder__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.stat {
  padding: 20px 0;
  text-align: center;
}

.stat__number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--heading);
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
}

.stat__label {
  display: block;
  color: var(--text);
  font-size: 1rem;
  margin-top: 4px;
}

.note-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--note-bg);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: 20px;
}

.note-box__icon { font-size: 1.1rem; line-height: 1.4; }

.note-box p {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
}

/* =========================================================
   TEACHERS
   ========================================================= */
.teachers {
  background-image: url("../images/bg-soft-landscape.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 64px 0 72px;
}

.teachers__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px 20px;
  justify-items: center;
}

.teacher {
  text-align: center;
  max-width: 140px;
}

.teacher img {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  box-shadow: 0 8px 18px rgba(90, 55, 45, 0.15);
 /* border: 3px solid #ffffff; */
}

.teacher p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--heading);
}

/* =========================================================
   FOR WHOM
   ========================================================= */
.for-whom {
  background: var(--white);
  padding: 0;
}

.for-whom__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  align-items: center;
  padding: 0;
}

.for-whom__photo {
  align-self: stretch;
  min-height: 100%;
}

.for-whom__photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.for-whom__content {
  padding: 56px 24px 56px 0;
}

.for-whom__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0 28px;
}

.for-whom__card {
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.for-whom__card--wide {
  grid-column: 1 / -1;
}

.for-whom__card h3 {
  font-family: var(--font-heading);
  color: var(--heading);
  font-size: 1.15rem;
  margin: 0 0 10px;
}

.for-whom__card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text);
}

.info-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.info-box--blue {
  background: var(--info-blue-bg);
}

.info-box__icon {
  color: var(--info-blue-icon);
  font-size: 1.15rem;
  line-height: 1.3;
}

.info-box p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

/* =========================================================
   COURSES
   ========================================================= */
.courses {
  background: linear-gradient(135deg, var(--peach-2) 0%, var(--peach-3) 55%, var(--peach-4) 100%);
  padding: 64px 0 56px;
}

.courses__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-bottom: 1px solid rgba(90, 65, 60, 0.25);
  padding-bottom: 48px;
}

.course-card {
  text-align: center;
}

.course-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  box-shadow: 0 10px 22px rgba(100, 60, 50, 0.14);
}

.course-card h3 {
  font-family: var(--font-heading);
  color: var(--heading);
  font-size: 1.15rem;
  margin: 0 0 12px;
}

.course-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
}

/* =========================================================
   CTA
   ========================================================= */
.cta {
  background: var(--white);
  padding: 72px 0 56px;
}

.cta__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.cta-card {
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.cta-card h3 {
  font-family: var(--font-heading);
  color: var(--heading);
  font-size: 1.1rem;
  margin: 0 0 12px;
}

.cta-card p {
  color: var(--text);
  font-size: 0.94rem;
  margin: 0 0 20px;
  flex-grow: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  align-self: flex-start;
}
.btni {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  align-self: flex-start;
}

.btn--pink {
  background: var(--btn-pink-bg);
  color: var(--btn-text);
  align-self: center;
}

.btn--pink:hover {
  background: var(--btn-pink-bg-hover);
  transform: translateY(-1px);
}
.btn--black{
  background: #4b4a58;
  color: #fff;
  align-self: center;
}

.btn--black:hover {
  background: #4caf66;
  transform: translateY(-1px);
}

.cta__whatsapp {
  text-align: center;
  margin-top: 48px;
}

.btn--whatsapp {
  background: transparent;
  border: 1.5px solid var(--whatsapp);
  color: var(--whatsapp);
}

.btn--whatsapp:hover {
  background: rgba(76, 175, 102, 0.08);
  transform: translateY(-1px);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--white);
  padding: 24px 0 40px;
  text-align: center;
  border-top: 1px solid #f0e6e2;
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer a {
  color: #c0392b;
  font-weight: 700;
  text-decoration: underline;
}

/* =========================================================
   BACK TO TOP
   ========================================================= */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--heading);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 100;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet */
@media (max-width: 1024px) {
  .founder__grid {
    grid-template-columns: 280px 1fr;
    gap: 36px;
  }

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

  .for-whom__grid {
    gap: 0 36px;
  }
}

@media (max-width: 860px) {
  .founder__grid {
    grid-template-columns: 1fr;
  }

  .founder__photo {
    max-width: 320px;
    margin: 0 auto;
  }

  .founder__card { text-align: center; }

  .founder__stats {
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
    margin-top: 32px;
  }

  .note-box {
    grid-column: 1 / -1;
  }

  .for-whom__grid {
    grid-template-columns: 1fr;
  }

  .for-whom__photo img {
    min-height: 280px;
  }

  .for-whom__content {
    padding: 40px 0 8px;
  }

  .courses__grid,
  .cta__grid {
    grid-template-columns: repeat(2, 1fr);
  }
	.courses {
	  margin-top: 56px;
	}
}

/* Mobile */
@media (max-width: 640px) {
  .teachers {
    background-image: linear-gradient(135deg, rgba(253,238,228,0.55), rgba(251,210,198,0.55)), url("../images/bg-wavy-portrait.jpg");
  }

  .teachers__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 12px;
  }

  .teacher img {
    width: 84px;
    height: 84px;
  }

  .teacher p {
    font-size: 0.78rem;
  }

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

  .for-whom__cards {
    grid-template-columns: 1fr;
  }

  .courses__grid,
  .cta__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 56px 0 44px;
  }

  .hero__logo { width: 80%; }

  .founder,
  .courses {
    padding: 48px 0 48px;
  }

  .container { padding: 0 18px; }
}

@media (max-width: 400px) {
  .teachers__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
