
:root{
  --bg0:#fff;
  --ink:#0f172a;
  --muted:rgba(15,23,42,.65);

  --p1:#7c3aed;
  --p2:#ec4899;
  --p3:#60a5fa;

  --line:rgba(15,23,42,.12);
  --shadow:0 18px 45px rgba(15,23,42,.10);

  --container:1120px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; scroll-behavior: smooth; }
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color:var(--ink);
  background:var(--bg0);
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

.container{ max-width:var(--container); margin:0 auto; padding:0 16px; }

.h1{ font-size:clamp(40px,5vw,68px); line-height:1.06; margin:0; }
.h2{ font-size:clamp(30px,4vw,44px); line-height:1.15; margin:10px 0 0; }
.h3{ margin:0 0 6px; font-size:16px; }
.lead{ font-size:18px; line-height:1.6; color:var(--muted); max-width:56ch; margin: 0 auto; text-align: center }
.muted{ color:var(--muted); line-height:1.6; margin:10px 0 0; }
.accent{ color:var(--p1); }

.grad-text{
  background:linear-gradient(90deg,var(--p1),var(--p2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.pill{
  display:inline-flex;
  padding:8px 14px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(124,58,237,.18);
  box-shadow:0 10px 25px rgba(15,23,42,.06);
  font-size:13px;
  color:var(--p1);
}
.pill--soft{
  background:rgba(124,58,237,.10);
  border-color:transparent;
  box-shadow:none;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:44px;
  padding:0 18px;
  border-radius:12px;
  border:1px solid var(--line);
  font-weight:600;
  font-size:14px;
  gap:10px;
}
.btn--primary{
  border:0;
  color:#fff;
  background:linear-gradient(90deg,var(--p1),var(--p2));
  box-shadow:0 16px 35px rgba(124,58,237,.20);
}
.btn--ghost{ background:#fff; }
.actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top:18px; justify-content:center; }

/* HERO */
.hero{
  min-height:100vh;
  display:flex;
  align-items:center;
  padding:80px 0;
  background:linear-gradient(135deg, #fff1f2 0%, #f5f3ff 45%, #eff6ff 100%);
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:48px;
  align-items:center;
}
.hero__left{ display:grid; gap:18px; }
.hero__right{ position:relative; }

.portrait{
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow:hidden;
  box-shadow: var(--shadow);
  background:#e2e8f0;
}
.portrait img{ width:100%; height:100%; object-fit:cover; }

.blob{
  position:absolute;
  border-radius:999px;
  filter: blur(28px);
  opacity:.55;
  pointer-events:none;
}
.blob--1{
  width:110px;height:110px;
  right:-10px; top:-18px;
  background:linear-gradient(135deg,var(--p1),var(--p2));
}
.blob--2{
  width:150px;height:150px;
  left:-18px; bottom:-18px;
  background:linear-gradient(135deg,var(--p3),var(--p1));
}

.stats{
  display:grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap:16px;
  margin-top:24px;
  justify-content:center;
  align-items:stretch;
}
.stat{
  padding: 12px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  text-align:center;
}
.stat__n{ font-size:24px; font-weight:800; color: var(--p1); }
.stat__l{ font-size:12px; color:var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }

/* SECTIONS */
.section{ padding:80px 0; }
.section--soft{
  background:linear-gradient(180deg,#fff 0%, rgba(124,58,237,.07) 100%);
}
.section__head{ max-width:740px; }
.section__head.center{ text-align:center; margin:0 auto; }

/* ABOUT */
.about--split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  margin-top: 40px;
  align-items: start;
}

.cards--stack {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.about__info {
  position: sticky;
  top: 20px;
}

.info-card {
  padding: 32px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.info-list {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.info-item {
  display: grid;
  gap: 4px;
}

.info-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
}

.info-value, .info-link {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}

.info-link {
  color: var(--p1);
  transition: color 0.2s;
  text-decoration: underline;
  text-decoration-color: rgba(124, 58, 237, 0.3);
  text-underline-offset: 4px;
}

.info-link:hover {
  color: var(--p2);
  text-decoration-color: var(--p2);
}

@media (max-width: 980px) {
  .about--split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .info-card {
    padding: 24px;
  }
}

/* SCROLL TOP */
.scroll-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: var(--p1);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  transform: translateY(10px);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--p2);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(236, 72, 153, 0.4);
}

@media (max-width: 560px) {
  .scroll-top {
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
  }
}
.card{
  display:grid;
  grid-template-columns: 48px 1fr;
  gap:12px;
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.75);
  backdrop-filter: blur(8px);
}
.card__icon{
  width:48px;height:48px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:rgba(124,58,237,.12);
  color:var(--p1);
  font-weight:800;
}
.card__icon--pink{ background:rgba(236,72,153,.12); color:var(--p2); }
.card__icon--blue{ background:rgba(96,165,250,.16); color:var(--p3); }

/* CERTIFICATE */
.cert{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
  margin-top:24px;
  align-items:start;
}
.cert__preview{
  border-radius: 22px;
  overflow:hidden;
  background:#e2e8f0;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15,23,42,.10);
  transition: transform .3s ease, box-shadow .3s ease;
}
.cert__preview:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(15,23,42,0.15);
}
.cert__link{ display:block; }
.cert__preview img{ width:100%; height:auto; display:block; }
.cert__info{ display:grid; gap:12px; }
.cert__card{ align-items:start; }
.cert__actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:12px;
}
.cert__list{
  margin:0;
  padding-left:18px;
  color:var(--muted);
  line-height:1.7;
}

/* PORTFOLIO GRID */
.grid3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-top:28px;
}

.slider{
  position:relative;
  margin-top:28px;
  padding:0 48px;
}
.slider__viewport{
  overflow:hidden;
  margin:0 auto;
  scroll-snap-type:x mandatory;
}
.slider__track{
  display:flex;
  gap:16px;
}
.slider__item{
  flex:0 0 min(350px, 100%);
  width:min(350px, 100%);
  scroll-snap-align:start;
}
.slider__btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  color:var(--ink);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:5;
}
#sliderPrev{ left:12px; }
#sliderNext{ right:12px; }

@media (max-width: 980px){
  .slider__viewport{
    max-width:350px;
  }
}

/* TILE (фикс “серой шапки”) */
.tile{
  position:relative;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow:hidden;
  background:#e2e8f0;
}

@supports not (aspect-ratio: 1 / 1) {
  .tile{ height:0; padding-top:177.78%; }
}

.tile__iframe,
.tile__cover{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

.tile__iframe{
  border:0;
  display:none;
  z-index:1;
}

.tile__cover{
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
  z-index:2;
}

.tile__img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition: transform .25s ease;
}
.tile:hover .tile__img{ transform:scale(1.06); }

.tile__grad{
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.12), rgba(0,0,0,0));
  opacity:0;
  transition: opacity .2s ease;
}
.tile:hover .tile__grad{ opacity:1; }

.tile__meta{
  position:absolute;
  left:18px; right:18px; bottom:18px;
  display:grid;
  gap:8px;
  opacity:0;
  transition: opacity .2s ease;
  color:#fff;
  text-align:center;
}
.tile:hover .tile__meta{ opacity:1; }
.tile__views{ font-size:13px; }
.tile__title{ font-size:18px; font-weight:700; }
.tile__tag{
  justify-self:center;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  font-size:13px;
}

.tile__play{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  opacity:0;
  transition: opacity .2s ease;
}
.tile:hover .tile__play{ opacity:1; }
.tile__play::before{
  content:"";
  width:64px;height:64px;
  border-radius:999px;
  background:#fff;
  box-shadow:0 18px 40px rgba(0,0,0,.22);
}
.tile__play::after{
  content:"";
  position:absolute;
  width:0;height:0;
  border-left:14px solid var(--p1);
  border-top:9px solid transparent;
  border-bottom:9px solid transparent;
  margin-left:4px;
}

/* FOOTER */
.footer {
  padding: 60px 0;
  background: #f8fafc;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.footer__grid {
  display: grid;
  gap: 40px;
}

.footer__legal {
  display: grid;
  gap: 16px;
  text-align: left;
}

.footer__legal p {
  margin: 0;
}

.footer__legal strong {
  color: var(--ink);
  font-size: 14px;
}

.meta-disclaimer {
  font-style: italic;
  font-size: 12px;
  opacity: 0.8;
}

.footer__copy {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink);
  font-weight: 500;
}

/* RESPONSIVE */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns:1fr; gap:40px; text-align: center; }
  .hero__left{ justify-items: center; }
  .lead{ margin-left: auto; margin-right: auto; }
  .actions{ justify-content: center; }
  .about{ grid-template-columns:1fr; }
  .cert{ grid-template-columns:1fr; }
  .grid3{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px){
  .grid3{ grid-template-columns:1fr; }
}
