:root {
  --background: #fbf7f2;
  --surface: #ffffff;
  --surface-soft: #fffaf5;
  --text: #2c2434;
  --muted: #71657b;
  --primary: #75579a;
  --primary-dark: #4d356f;
  --accent: #c58b76;
  --accent-soft: #f5ded4;
  --calm: #dceee8;
  --line: rgba(117, 87, 154, 0.14);
  --shadow: 0 22px 70px rgba(77, 53, 111, 0.16);
  --shadow-soft: 0 14px 34px rgba(77, 53, 111, 0.10);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 2%, rgba(117, 87, 154, 0.18), transparent 28rem),
    radial-gradient(circle at 94% 12%, rgba(197, 139, 118, 0.18), transparent 24rem),
    linear-gradient(180deg, #fbf7f2 0%, #fffaf5 48%, #fbf7f2 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(117, 87, 154, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 87, 154, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

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

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

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

button {
  font: inherit;
}

.page-section {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding: 88px 20px;
}

.header {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.header::after {
  content: "";
  position: absolute;
  right: -9rem;
  top: 9rem;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: rgba(220, 238, 232, 0.8);
  filter: blur(4px);
  z-index: -1;
}

.nav {
  position: sticky;
  top: 14px;
  z-index: 30;
  width: min(calc(100% - 28px), var(--max-width));
  margin: 16px auto 0;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo__symbol {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 24px rgba(77, 53, 111, 0.22);
}

.logo__text {
  display: grid;
  line-height: 1.22;
}

.logo__text strong {
  font-size: 1rem;
  white-space: nowrap;
}

.logo__text small {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__links a {
  padding: 11px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--primary-dark);
  background: rgba(117, 87, 154, 0.10);
  transform: translateY(-1px);
}

.nav__links .nav__phone {
  color: #fff;
  background: var(--primary-dark);
  box-shadow: 0 10px 22px rgba(77, 53, 111, 0.22);
}

.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(117, 87, 154, 0.11);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-btn span {
  width: 21px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary-dark);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-btn.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.95fr);
  align-items: center;
  gap: 54px;
  padding-top: 58px;
}

.label {
  margin-bottom: 12px;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.label--light {
  color: rgba(255, 255, 255, 0.84);
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 850px;
  font-size: clamp(3rem, 7vw, 6.8rem);
}

h2 {
  font-size: clamp(2.05rem, 4.4vw, 4.05rem);
}

h3 {
  font-size: clamp(1.28rem, 2.1vw, 1.7rem);
}

.hero__text {
  max-width: 630px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.18rem, 2vw, 1.48rem);
}

.hero__buttons {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 18px 36px rgba(77, 53, 111, 0.28);
}

.button--secondary {
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.button--light {
  color: var(--primary-dark);
  background: #fff;
  box-shadow: 0 16px 34px rgba(44, 36, 52, 0.14);
}

.phone-card {
  width: min(100%, 420px);
  margin-top: 28px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.phone-card span {
  color: var(--muted);
  font-weight: 800;
}

.phone-card a {
  color: var(--primary-dark);
  font-size: 1.18rem;
  font-weight: 900;
  white-space: nowrap;
}

.hero__visual {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}

.hero__visual::before,
.hero__visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero__visual::before {
  width: min(78vw, 430px);
  height: min(78vw, 430px);
  background: linear-gradient(135deg, rgba(117, 87, 154, 0.28), rgba(197, 139, 118, 0.20));
  animation: softFloat 7s ease-in-out infinite;
}

.hero__visual::after {
  width: min(58vw, 300px);
  height: min(58vw, 300px);
  transform: translate(42px, 42px);
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.74);
}

.visual-card {
  position: relative;
  z-index: 2;
  width: min(84vw, 390px);
  min-height: 455px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 28%, rgba(117, 87, 154, 0.28), transparent 36%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(245, 222, 212, 0.64));
  box-shadow: var(--shadow);
}

.visual-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 62px;
  width: 214px;
  height: 214px;
  transform: translateX(-50%);
  border-radius: 46% 54% 56% 44%;
  background: linear-gradient(145deg, var(--primary), var(--accent));
  opacity: 0.92;
}

.visual-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 208px;
  width: 178px;
  height: 178px;
  transform: translateX(-50%);
  border-radius: 999px 999px 44px 44px;
  background: linear-gradient(145deg, rgba(77, 53, 111, 0.8), rgba(197, 139, 118, 0.74));
}

.visual-card__circle {
  position: absolute;
  left: 50%;
  top: 124px;
  z-index: 4;
  width: 120px;
  height: 120px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary-dark);
  font-size: 2.35rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 18px 32px rgba(44, 36, 52, 0.16);
}

.visual-card p,
.visual-card strong {
  position: relative;
  z-index: 4;
}

.visual-card p {
  max-width: 280px;
  font-size: 2.3rem;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.visual-card strong {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1.15rem;
}

.mini-card {
  position: absolute;
  z-index: 5;
  max-width: 220px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: var(--shadow-soft);
  color: var(--primary-dark);
  font-weight: 900;
  backdrop-filter: blur(14px);
}

.mini-card--top {
  top: 82px;
  right: 0;
}

.mini-card--bottom {
  left: 0;
  bottom: 94px;
  color: var(--text);
}

.section-title {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-title--center {
  margin-inline: auto;
  text-align: center;
}

.section-title p:not(.label) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.12rem;
}

.intro {
  padding-top: 20px;
}

.intro .section-title {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

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

.card {
  position: relative;
  min-height: 310px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.card::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -58px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(117, 87, 154, 0.1);
}

.card__number {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--calm);
  color: var(--primary-dark);
  font-weight: 900;
}

.card h3 {
  margin: 22px 0 14px;
}

.card p {
  color: var(--muted);
  font-size: 1.03rem;
}

.card--featured {
  color: #fff;
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
}

.card--featured p,
.card--featured .card__number {
  color: #fff;
}

.card--featured .card__number {
  background: rgba(255, 255, 255, 0.17);
}

.card--featured::after {
  background: rgba(255, 255, 255, 0.12);
}

.student {
  width: 100%;
  max-width: none;
  padding-inline: 20px;
  background: linear-gradient(135deg, rgba(117, 87, 154, 0.10), rgba(245, 222, 212, 0.50));
}

.student__box {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding: clamp(30px, 6vw, 60px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  border-radius: var(--radius-xl);
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  box-shadow: var(--shadow);
}

.student__box p:not(.label) {
  max-width: 690px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
}

.contact__box {
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-soft);
  box-shadow: var(--shadow-soft);
}

.contact__copy p:not(.label) {
  max-width: 620px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.12rem;
}

.contact__actions {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.contact__phone {
  padding: 18px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(117, 87, 154, 0.10);
  color: var(--primary-dark);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 900;
  white-space: nowrap;
}

.copy-phone {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  background: var(--primary-dark);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(77, 53, 111, 0.22);
}

.copy-message {
  min-height: 22px;
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

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

.social {
  min-height: 210px;
  padding: 30px;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.social:hover,
.social:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.social__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
}

.social strong {
  font-size: 1.35rem;
}

.social small {
  color: var(--muted);
  font-size: 0.98rem;
  word-break: break-word;
}

.final {
  padding-top: 30px;
}

.final__box {
  padding: clamp(30px, 6vw, 66px);
  border: 1px solid var(--line);
  border-radius: 42px;
  text-align: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(245, 222, 212, 0.96), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(220, 238, 232, 0.48));
  box-shadow: var(--shadow-soft);
}

.final__box p:not(.label) {
  max-width: 640px;
  margin: 18px auto 28px;
  color: var(--muted);
  font-size: 1.12rem;
}

.footer {
  padding: 44px 20px 110px;
  background: #2c2434;
  color: rgba(255, 255, 255, 0.82);
}

.footer__inner {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  display: grid;
  gap: 8px;
  text-align: center;
}

.footer strong,
.footer a {
  color: #fff;
}

.footer a {
  font-weight: 800;
}

.footer__links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.floating-phone {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  padding: 14px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background: var(--primary-dark);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(44, 36, 52, 0.32);
}

.floating-phone span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.top-button {
  position: fixed;
  left: 18px;
  bottom: 20px;
  z-index: 40;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary-dark);
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fade-item {
  opacity: 1;
  transform: none;
}

.js-ready .fade-item {
  animation: fadeUp 0.75s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0.01;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-18px) scale(1.02);
  }
}

@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 (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 46px;
  }

  .hero__visual {
    min-height: 470px;
    order: -1;
  }

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

  .student__box,
  .contact__box {
    grid-template-columns: 1fr;
  }

  .contact__actions {
    justify-items: start;
  }
}

@media (max-width: 760px) {
  .page-section {
    padding: 68px 18px;
  }

  .nav {
    align-items: flex-start;
    flex-wrap: wrap;
    border-radius: 26px;
    padding: 12px;
  }

  .logo__text strong,
  .logo__text small {
    white-space: normal;
  }

  .logo__text small {
    display: none;
  }

  .menu-btn {
    display: flex;
    margin-left: auto;
  }

  .nav__links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 12px;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links a {
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .button,
  .hero__buttons .button {
    width: 100%;
  }

  .phone-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero__visual {
    min-height: 420px;
  }

  .visual-card {
    width: min(100%, 320px);
    min-height: 380px;
  }

  .visual-card::before {
    top: 48px;
    width: 170px;
    height: 170px;
  }

  .visual-card::after {
    top: 176px;
    width: 142px;
    height: 142px;
  }

  .visual-card__circle {
    top: 96px;
    width: 96px;
    height: 96px;
    font-size: 1.8rem;
  }

  .visual-card p {
    font-size: 2rem;
  }

  .mini-card--top,
  .mini-card--bottom {
    display: none;
  }

  .cards,
  .socials {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: auto;
  }

  .student__box {
    border-radius: 28px;
  }

  .contact__phone {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .copy-phone {
    width: 100%;
  }

  .floating-phone {
    left: 14px;
    right: 14px;
    justify-content: center;
  }

  .top-button {
    display: none;
  }

  .footer {
    padding-bottom: 96px;
  }
}

@media (max-width: 430px) {
  .logo__symbol {
    width: 44px;
    height: 44px;
    border-radius: 16px;
  }

  h1 {
    font-size: 2.72rem;
  }

  .hero__text,
  .section-title p:not(.label),
  .contact__copy p:not(.label),
  .student__box p:not(.label),
  .final__box p:not(.label) {
    font-size: 1rem;
  }

  .social small {
    font-size: 0.88rem;
  }
}
