:root {
  --btn-green: #97d700;
  --glass: rgba(255, 255, 255, 0.6);
  --text-dark: #333;
}
* {
  box-sizing: border-box;
}
body {
  background: url("images/фон.jpg") center/cover fixed;
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  min-height: 100vh;
}
.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  z-index: -1;
}
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}
.hero-section {
  display: grid;
  gap: 28px;
  padding: 30px 0 54px;
}
.video-about-wrap {
  position: relative;
  width: 100%;
}
.video-about {
  width: 100%;
  height: auto;
  border-radius: 25px;
  object-fit: contain;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  display: block;
}
.video-about-unmute {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}
.video-about-unmute:hover {
  background: #fff;
}
.word-reveal {
  display: inline;
  opacity: 0;
  transform: translateY(8px);
  filter: blur(3px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease,
    filter 0.65s ease;
}
.word-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.reception-benefits {
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 30px rgba(66, 92, 108, 0.12);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.reception-benefits.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.video-container {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.video-container video {
  width: 100%;
  border-radius: 25px;
  display: block;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.cloud-button {
  width: 250px;
  height: 160px;
  background: url("images/облако 2.png") center/contain no-repeat;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 3s ease-in-out infinite;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: transform 0.2s;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.78);
}
.cloud-button:hover {
  animation-play-state: paused;
  transform: scale(1.05);
}
.cloud-button:active {
  transform: scale(0.98);
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}
.gallery-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 30px 0 50px;
}
.card {
  flex: 1 1 220px;
  max-width: 350px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}
.card:hover {
  transform: scale(1.05);
}
.card video {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #eee;
}
.card p {
  font-weight: 600;
  margin: 12px 0;
}
.card button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  margin: 10px 0;
  padding: 14px 22px;
  border: none;
  border-radius: 22px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(51, 51, 51, 0.12);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}
.card button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 24px rgba(51, 51, 51, 0.18);
  filter: saturate(1.06) brightness(1.02);
}
.card button:active {
  transform: translateY(-1px) scale(0.99);
}
.card button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
}
.btn-info {
  background: linear-gradient(135deg, #f34f8d, #e03d7a);
  color: #fff;
  text-shadow: 0 1px 3px rgba(76, 0, 34, 0.55);
}
.btn-prep {
  background: linear-gradient(135deg, #b0da1c, var(--btn-green));
  color: #1f3214;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.72);
}
@media (max-width: 760px) {
  .hero-section {
    padding-top: 18px;
  }
  .reception-benefits {
    width: min(100%, 520px);
    justify-self: center;
    padding: 19px 15px;
  }
  .card {
    max-width: 100%;
    width: 100%;
  }
  .cloud-button {
    width: 200px;
    height: 120px;
    font-size: 0.95rem;
  }
  .about-appointment .cloud-button {
    width: 260px;
    height: 156px;
    font-size: 1.24rem;
  }
  .card button {
    min-height: 58px;
    padding: 12px 18px;
    font-size: 0.88rem;
  }
}
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
}
.image-lightbox[hidden] {
  display: none;
}
.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 18, 22, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.image-lightbox__content {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  animation: lightboxIn 0.24s ease both;
}
.image-lightbox__content img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 80px);
  object-fit: contain;
  border-radius: 16px;
}
.image-lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #2f2931;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease;
}
.image-lightbox__close:hover {
  transform: scale(1.08);
}
@keyframes lightboxIn {
  from {
    opacity: 0;
    transform: scale(0.965);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@media (max-width: 600px) {
  .image-lightbox__content {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 8px;
    border-radius: 18px;
  }
  .image-lightbox__content img {
    max-height: calc(100vh - 48px);
    border-radius: 12px;
  }
  .image-lightbox__close {
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .image-lightbox__content {
    animation: none;
  }
}
:root {
  --hero-rose: #f34f8d;
  --hero-rose-deep: #b83267;
  --hero-ink: #2f2931;
  --hero-muted: #6d626e;
  --hero-border: rgba(255, 255, 255, 0.78);
  --hero-radius: 30px;
  --hero-shadow: 0 20px 52px rgba(88, 51, 70, 0.13);
}
.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hero-border);
  border-radius: var(--hero-radius);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.86),
    rgba(255, 241, 247, 0.72)
  );
  box-shadow: var(--hero-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.hero-panel::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -105px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(243, 79, 141, 0.16),
    transparent 68%
  );
  pointer-events: none;
}
.about-panel,
.skirt-panel {
  display: grid;
  grid-template-columns: minmax(260px, 390px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(24px, 4vw, 52px);
}
.about-panel {
  align-items: start;
}
.skirt-panel {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
}
.panel-content,
.panel-media {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.panel-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: var(--hero-rose-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.panel-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--hero-rose);
}
.about-panel h1,
.skirt-panel h2,
.reception-benefits h2 {
  margin: 0;
  color: var(--hero-ink);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.about-panel h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}
.skirt-panel h2,
.reception-benefits h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
}
.about-panel .video-about {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(66, 38, 52, 0.18);
}
.skirt-panel .video-container video {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(66, 38, 52, 0.18);
}
.about-panel .video-about-wrap,
.skirt-panel .video-container {
  width: 100%;
}
#typing-text {
  min-height: 0;
  margin-top: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--hero-muted);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  line-height: 1.75;
}
.skirt-caption {
  max-width: 720px;
  margin: 20px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--hero-muted);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  line-height: 1.72;
}
.benefits-heading {
  margin-bottom: 16px;
  text-align: center;
}
.benefits-heading .panel-eyebrow {
  justify-content: center;
}
.benefits-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  overflow: visible;
  padding: 0;
}
.benefit-item {
  flex: 0 1 280px;
  width: min(100%, 280px);
  min-height: auto;
  height: auto;
  padding: 12px 10px;
  border: 1px solid rgba(243, 79, 141, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.67);
  box-shadow: 0 10px 24px rgba(67, 40, 54, 0.07);
  overflow: visible;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}
.benefit-item:hover {
  transform: translateY(-6px);
  border-color: rgba(243, 79, 141, 0.3);
  box-shadow: 0 17px 32px rgba(67, 40, 54, 0.13);
}
.benefit-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 9px;
  border-radius: 11px;
  background: linear-gradient(
    135deg,
    rgba(243, 79, 141, 0.17),
    rgba(255, 255, 255, 0.92)
  );
  color: var(--hero-rose-deep);
  font-size: 0.95rem;
  font-weight: 900;
}
.benefit-item h3 {
  margin: 0 0 5px;
  color: var(--hero-ink);
  font-size: 1rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.benefit-item p {
  margin: 0;
  color: var(--hero-muted);
  font-size: 1rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
}
.benefits-accent {
  margin-top: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(243, 79, 141, 0.14);
  border-radius: 18px;
  background: linear-gradient(
    90deg,
    rgba(243, 79, 141, 0.09),
    rgba(176, 218, 28, 0.08)
  );
  box-shadow: none;
  color: var(--hero-ink);
  font-size: 0.86rem;
  font-weight: 700;
}
.about-panel,
.skirt-panel,
.reception-benefits {
  animation: heroPanelIn 0.75s ease both;
}
.reception-benefits {
  animation-delay: 0.08s;
}
.skirt-panel {
  animation-delay: 0.16s;
}
@keyframes heroPanelIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.about-panel .panel-media,
.skirt-panel .panel-media {
  width: min(100%, 470px);
  margin: 0 auto;
}
.skirt-panel .panel-content {
  order: 2;
}
.skirt-panel .panel-media {
  order: 1;
}
@media (max-width: 760px) {
  .hero-panel {
    border-radius: 23px;
  }
  .about-panel,
  .skirt-panel,
  .reception-benefits {
    padding: 20px;
  }
  .about-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .about-panel .panel-media {
    order: 1;
    width: calc(100% + 40px);
    max-width: none;
    margin: -20px -20px 0;
  }
  .about-panel .panel-content {
    order: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .about-panel .about-appointment {
    order: 3;
    align-self: center;
    margin: 8px auto 0;
  }
  .about-panel .video-about {
    border-radius: 21px 21px 0 0;
  }
  .skirt-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .skirt-panel .panel-media {
    order: 1;
    width: calc(100% + 40px);
    max-width: none;
    margin: -20px -20px 0;
  }
  .skirt-panel .panel-content {
    order: 2;
    width: 100%;
  }
  .skirt-panel .video-container,
  .skirt-panel .video-container video {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
  }
  .skirt-panel .video-container video {
    border-radius: 21px 21px 0 0;
  }
  .benefits-list {
    justify-content: center;
  }
  .benefit-item {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }
  .about-panel h1 {
    font-size: 2.35rem;
  }
  #typing-text,
  .skirt-caption {
    font-size: 0.96rem;
    line-height: 1.65;
  }
}
@media (prefers-reduced-motion: reduce) {
  .about-panel,
  .skirt-panel,
  .reception-benefits,
  .benefit-item,
  .word-reveal {
    animation: none;
    transition: none;
    transform: none;
    opacity: 1;
    filter: none;
  }
}
.about-appointment {
  display: block;
  width: fit-content;
  margin: 10px 0 0;
}
.about-appointment .cloud-button {
  display: inline-flex;
  margin: 0;
  padding: 0;
  width: 250px;
  font-size: 1rem;
  border: none;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.about-appointment .cloud-button span {
  display: inline-block;
  transform: translateY(10px);
}
@media (min-width: 761px) {
  .about-panel .panel-content {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    height: 100%;
  }
  .about-panel .about-appointment {
    margin-top: auto;
    align-self: flex-end;
    margin-right: 0;
  }
  .about-panel .about-appointment .cloud-button {
    width: 325px;
    height: 208px;
    font-size: 1.3rem;
  }
  .about-panel .about-appointment .cloud-button span {
    transform: translateY(13px);
  }
}

.credentials-section {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 30px 0 48px;
  overflow-x: clip;
}
.credentials-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  gap: 30px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}
.credentials-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  height: 100%;
}
.credentials-media {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.credentials-section .study-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}
.credentials-carousel {
  --cert-carousel-bg: transparent;
  --cert-carousel-gap: 18px;
  --cert-carousel-card: clamp(260px, 30vw, 400px);
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.cert-carousel-viewport {
  position: relative;
  overflow: hidden;
  padding: 20px 0 28px;
  cursor: ew-resize;
  touch-action: pan-y;
  outline: none;
}
.cert-carousel-viewport:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(243, 79, 141, 0.25);
  border-radius: 22px;
}
.cert-carousel-track {
  display: flex;
  gap: var(--cert-carousel-gap);
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.cert-carousel-card {
  width: var(--cert-carousel-card);
  flex: 0 0 var(--cert-carousel-card);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  background: rgba(255, 250, 252, 0.88);
  box-shadow: 0 14px 36px rgba(207, 124, 157, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  opacity: 0;
  animation: cert-carousel-show 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  transition:
    transform 0.34s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.34s ease;
}
.cert-carousel-card:hover,
.cert-carousel-card:focus-within,
.cert-carousel-card:focus-visible {
  transform: translateY(-8px) scale(1.04);
  z-index: 4;
}
.cert-carousel-link {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 6px 6px 12px;
}
.cert-carousel-image-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: #fff4f7;
}
.cert-carousel-preview {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #f5f7fa;
  transition: transform 0.45s ease;
}
.cert-carousel-card:hover .cert-carousel-preview {
  transform: scale(1.025);
}
.cert-carousel-title {
  margin: 12px 8px 2px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  min-height: 2.6em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cert-carousel-arrow {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(71, 85, 105, 0.14);
  background: rgba(255, 255, 255, 0.9);
  color: #172033;
  box-shadow: 0 8px 22px rgba(42, 53, 76, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.cert-carousel-arrow svg {
  display: block;
  width: 20px;
  height: 20px;
}
.cert-carousel-arrow:hover {
  transform: scale(1.08);
}
.cert-carousel-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  z-index: 3;
  pointer-events: none;
}
.cert-carousel-fade-left {
  left: 0;
  background: linear-gradient(90deg, var(--cert-carousel-bg), transparent);
}
.cert-carousel-fade-right {
  right: 0;
  background: linear-gradient(-90deg, var(--cert-carousel-bg), transparent);
}
@keyframes cert-carousel-show {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cert-carousel-card {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
.credentials-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 14px 34px rgba(67, 40, 54, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-wrap: break-word;
}
.credentials-card h2 {
  margin: 0 0 6px;
  color: #2f2931;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.12;
  overflow-wrap: break-word;
  word-break: break-word;
}
.credentials-lead {
  margin: 0 0 8px;
  color: #b83267;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
}
.credentials-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 6px;
  min-width: 0;
}
.credentials-timeline p {
  margin: 0;
  padding: 5px 7px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  color: #5f5561;
  font-size: 0.8rem;
  line-height: 1.22;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.credentials-timeline strong {
  color: #2f2931;
}
@media (max-width: 900px) {
  .credentials-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .credentials-left,
  .credentials-card {
    height: auto;
  }
  .credentials-left {
    align-items: center;
  }
  .credentials-media {
    height: auto;
    justify-content: center;
  }
  .credentials-section .study-img {
    width: min(100%, 220px);
    max-width: 220px;
  }
}
@media (max-width: 760px) {
  .credentials-grid {
    gap: 20px;
    width: 100%;
    max-width: 100%;
  }
  .credentials-card {
    width: 100%;
    max-width: 100%;
  }
  .credentials-carousel {
    --cert-carousel-card: min(calc(100vw - 128px), 300px);
    --cert-carousel-gap: 14px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-top: 4px;
  }
  .cert-carousel-arrow {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
  .cert-carousel-arrow svg {
    width: 18px;
    height: 18px;
  }
  .cert-carousel-viewport {
    padding: 16px 0 24px;
  }
  .cert-carousel-fade {
    width: 28px;
  }
  .credentials-timeline {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }
  .credentials-media {
    width: 100%;
    max-width: 100%;
  }
  .credentials-section .study-img {
    width: min(100%, 340px);
    max-width: 340px;
  }
}
@media (max-width: 650px) {
  .credentials-section {
    padding: 24px 0 40px;
  }
  .credentials-card {
    padding: 16px;
  }
}

.social-section {
  position: relative;
  width: 100%;
  margin-top: 8px;
  padding: 28px clamp(18px, 4vw, 44px) 48px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.84),
    rgba(255, 241, 247, 0.7)
  );
  box-shadow: 0 20px 52px rgba(88, 51, 70, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: center;
}
.social-section h2 {
  margin: 0 0 24px;
  color: #2f2931;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
}
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  justify-content: center;
  gap: clamp(18px, 3vw, 30px);
  max-width: 900px;
  margin: 0 auto;
}
.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 12px 28px rgba(67, 40, 54, 0.09);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}
.social-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(67, 40, 54, 0.14);
}
.social-item > img {
  display: block;
  width: min(100%, 190px);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(67, 40, 54, 0.12);
}
.social-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
  font-weight: 700;
}
.social-label svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}
.social-item:nth-child(1) .social-label {
  color: #229ed9;
}
.social-item:nth-child(2) .social-label {
  color: #e4405f;
}
.social-item:nth-child(3) .social-label {
  color: #0077ff;
}
.social-disclaimer {
  margin: 10px 0 0;
  max-width: 220px;
  color: #6b5f64;
  font-size: 0.72rem;
  line-height: 1.35;
  font-weight: 400;
  text-align: center;
}
@media (max-width: 760px) {
  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .social-item:last-child {
    grid-column: 1 / -1;
    width: min(100%, 280px);
    justify-self: center;
  }
}
@media (max-width: 500px) {
  .social-section {
    padding: 22px 16px 38px;
    border-radius: 24px;
  }
  .social-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .social-item,
  .social-item:last-child {
    grid-column: auto;
    width: 100%;
  }
  .social-item > img {
    width: min(72vw, 190px);
  }
}
