/* GREETING */
#greeting {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg);
}

#greeting-bg-img {
	position: absolute;
	inset: 0;
	background: url(/assets/resources/greeting.jpg) center/cover no-repeat;
}

.greeting-vignette {
	position: absolute;
	inset: 0;
}

.greeting-content {
	margin-top: 10vh;
	margin-bottom: 16vh;
	margin-right: 15vw;
	position: relative;
	z-index: 5;
	padding: 2rem 2rem 2rem 2rem;
	max-width: 750px;
	overflow: hidden;
	border: 2px solid #ff912a;
	border-radius: 8px;
	background: var(--bg);
	max-width: 1280px;
}

.greeting-badge {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: .75rem;
	font-weight: 700;
	font-family: 'Unbounded', sans-serif;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 1.5rem;
	background: linear-gradient(90deg, var(--blue), var(--purple));
	padding: 6px 16px;
	border-radius: 20px;
}

.greeting-badge span {
	width: 6px;
	height: 6px;
	background: #fff;
	border-radius: 50%;
	animation: blink 1.5s ease-in-out infinite
}

.greeting-h1 {
	font-family: 'Unbounded', sans-serif;
	font-weight: 900;
	font-size: clamp(2.4rem, 3vw, 3rem);
	line-height: 1.0;
	color: var(--ink);
	margin-bottom: 1rem;
}

.greeting-h1 .colored {
	display: block;
	background: linear-gradient(90deg, var(--red), var(--orange),
		var(--yellow));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.greeting-text {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--text);
	line-height: 1.6;
	max-width: 520px;
}

.rain-container {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 1;
}

.rain-photo {
	position: absolute;
	top: -250px;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	padding: 8px;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
	border: 1px solid var(--border);
	opacity: 0;
	animation: rainFall linear infinite;
}

.rain-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 6px
}

.rain-photo .rp-cap {
	padding: 8px 4px 2px;
	text-align: center;
	font-size: .7rem;
	font-weight: 600;
	color: var(--text);
	letter-spacing: .02em;
}
/* STATS */
.stats {
	position: unset;
	left: 2rem;
	right: 2rem;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: .75rem;
	z-index: 5;
	background: var(--bg2);
	padding: 10px;
}

.stats-card {
	background: rgba(255, 255, 255, .88);
	backdrop-filter: blur(12px);
	border-radius: 14px;
	padding: 1rem;
	text-align: center;
	border: 1.5px solid rgba(255, 255, 255, .9);
	box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}

.stats-card-title {
	font-family: 'Unbounded', sans-serif;
	font-weight: 900;
	font-size: 1.5rem;
	line-height: 1;
}

.stats-card-text {
	font-size: .62rem;
	font-weight: 600;
	color: var(--muted);
	margin-top: 3px;
}

/* ABOUT */
.two-blocks {
	padding: 2rem 2rem;
	background: var(--bg2);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.kicker {
	font-family: 'Unbounded', sans-serif;
	font-size: .6rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 1rem;
}

.kicker-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

.two-blocks h2, .textblock h2 {
	font-family: 'Unbounded', sans-serif;
	font-weight: 900;
	font-size: clamp(1.6rem, 2.5vw, 2.4rem);
	color: var(--ink);
	line-height: 1.15;
	margin-bottom: 1.75rem;
}

.two-blocks p, .textblock p {
	font-size: .95rem;
	font-weight: 400;
	color: var(--muted);
	line-height: 1.9;
	margin-bottom: .9rem;
}

.sig {
	margin-top: 2rem;
	padding: 1.25rem 1.5rem;
	background: #fff;
	border-radius: 14px;
	border-left: 4px solid var(--blue);
	box-shadow: 0 4px 20px rgba(0, 0, 0, .04);
}

.sig-n {
	font-family: 'Unbounded', sans-serif;
	font-weight: 700;
	font-size: .78rem;
	color: var(--ink);
	margin-bottom: .3rem;
}

.sig-r {
	font-size: .72rem;
	color: var(--muted);
	line-height: 1.55;
}

.photo-block {
	flex: 0 0 300px;
}

.photo-card {
	width: 100%;
	margin: 0;
	display: flex;
	flex-direction: column;
	background: #fff;
	padding: 8px;
	box-sizing: border-box;
	border-radius: 12px;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
	border: 1px solid var(--border);
}

.photo-card img {
	width: 100%;
	height: auto;
	flex-grow: 1;
	object-fit: contain;
	object-position: center;
	border-radius: 6px;
	display: block;
}

.photo-card-caption {
	padding: 8px 4px 2px;
	text-align: center;
	font-size: .7rem;
	font-weight: 600;
	color: var(--text);
	font-family: 'Unbounded', sans-serif;
	flex-shrink: 0;
}
.default-li {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 30px;
}

.default-li li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary, #5a5f7a);
  font-size: .94rem;
  line-height: 1.5;
}

.default-li li::before {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background-color: var(--accent, #6b72b8);
}

.default-label {
  display: block;
  font-weight: 800;
  color: var(--text-primary, #2d3260);
  margin-bottom: 0;
}

.show-a {
	text-decoration: none;
	color: inherit;
}
/* ACTIVITIES */
#activities {
	padding: 3rem 5rem;
	background: var(--bg);
}

.activities-header {
	margin-bottom: 3.5rem;
	text-align: center;
}

.activities-header span {
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--orange);
	display: block;
	margin-bottom: 1rem
}

.activities-header h2 {
	font-family: 'Syne', sans-serif;
	font-weight: 800;
	font-size: clamp(2rem, 3vw, 2.5rem);
	color: var(--light)
}

.activities-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}

.act-card {
	display: flex;
	flex-direction: column;
	background: var(--bg);
	padding: 2.5rem 2rem;
	text-decoration: none;
	color: inherit;
	position: relative;
	overflow: hidden;
	border-radius: 20px;
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
	transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.act-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 6px;
	background: var(--orange);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.act-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
	border-color: #fff;
}

.act-card:hover::before {
	transform: scaleX(1);
}

.act-card:hover .act-arrow {
	opacity: 1;
	transform: translate(0, 0)
}

.act-icon {
	font-size: 2.5rem;
	margin-bottom: 1.5rem;
	background: var(--bg);
	width: 60px;
	height: 60px;
	display: grid;
	place-items: center;
	border-radius: 14px;
}

.act-num {
	position: absolute;
	top: 1rem;
	right: 1.5rem;
	font-family: 'Syne', sans-serif;
	font-size: 4rem;
	font-weight: 800;
	color: var(--bg);
	line-height: 1;
	z-index: 0;
}

.act-name {
	font-family: 'Syne', sans-serif;
	font-weight: 800;
	font-size: 1.25rem;
	color: var(--light);
	margin-bottom: 1rem;
	z-index: 1;
	position: relative;
}

.act-desc {
	font-size: .9rem;
	font-weight: 400;
	color: var(--text);
	line-height: 1.7;
	flex: 1;
	z-index: 1;
	position: relative;
}

.act-arrow {
	margin-top: 1.5rem;
	font-size: .8rem;
	font-weight: 700;
	color: var(--orange);
	letter-spacing: .05em;
	text-transform: uppercase;
	opacity: 0;
	transform: translate(-10px, 0);
	transition: opacity .3s, transform .3s;
	display: flex;
	align-items: center;
	gap: 6px;
	z-index: 1;
	position: relative;
}

.act-arrow::after {
	content: '→';
	font-size: 1.2rem;
}
/* TEXTBLOCK */
.textblock {
	background: var(--bg3);
	padding: 2rem 2rem;
}

.textblock em {
	font-style: normal;
	background: linear-gradient(90deg, var(--orange), var(--yellow));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
/* TEACHERS */
.people-gallery {
	padding: 3rem 2rem;
	background: var(--bg2);
}

.people-gallery h2 {
	font-family: 'Unbounded', sans-serif;
	font-weight: 900;
	font-size: clamp(1.6rem, 2.5vw, 2.4rem);
	color: var(--ink);
	line-height: 1.15;
	margin-bottom: 1.75rem;
	text-align: center;
}

.people-gallery-container {
	position: relative;
	display: flex;
	align-items: center;
	margin-top: 2rem;
}

.people-gallery-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.people-gallery-scroll {
	display: flex;
	gap: 1.5rem;
	overflow-x: auto;
	padding: 1rem 0;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.people-gallery-scroll::-webkit-scrollbar {
	display: none;
}

.teacher-icon {
	flex: 0 0 280px;
	background: var(--white, #fff);
	padding: 1.5rem;
	border-radius: 1.5rem;
	border: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease;
}

.teacher-icon:hover {
	transform: translateY(-5px);
}

.teacher-icon img {
	width: 100%;
	aspect-ratio: 1/1; /* Квадратное фото */
	object-fit: cover;
	border-radius: 1rem;
	margin-bottom: 1.25rem;
	background: var(--bg2);
}

.teacher-icon label {
	display: block;
	font-family: 'Unbounded', sans-serif;
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--ink);
	line-height: 1.3;
	margin-bottom: 0.5rem;
}

.teacher-icon p {
	font-size: 0.9rem;
	color: var(--ink);
	opacity: 0.7;
	margin: 0;
	line-height: 1.4;
}

.nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--purple);
	border: none;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.nav-btn:hover {
	background: var(--ink);
	transform: translateY(-50%) scale(1.1);
}

.back-people-gallery {
	left: 0;
}

.forward-people-gallery {
	right: 0;
}

.nav-btn::before {
	content: '';
	width: 10px;
	height: 10px;
	border-left: 3px solid white;
	border-bottom: 3px solid white;
	display: block;
}

.back-people-gallery::before {
	transform: rotate(45deg);
	margin-left: 4px;
}

.forward-people-gallery::before {
	transform: rotate(-135deg);
	margin-right: 4px;
}
/* NEWS */
#news {
	padding: 6rem 5rem;
	background: var(--bg);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: start;
}

.news-h {
	font-family: 'Unbounded', sans-serif;
	font-weight: 700;
	font-size: .9rem;
	color: var(--ink);
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid var(--border);
	display: flex;
	align-items: center;
	gap: 8px;
}

.mcard {
	background: #fff;
	border: 2px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 1rem;
	text-decoration: none;
	display: block;
	transition: transform .2s, border-color .2s, box-shadow .2s;
}

.mcard:hover {
	transform: translateY(-4px);
	border-color: var(--blue);
	box-shadow: 0 12px 36px rgba(37, 99, 255, .1)
}

.mthumb {
	height: 30vh;
	background: linear-gradient(135deg, #eff4ff, #f5f0ff);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	border-bottom: 2px solid var(--border);
	overflow: hidden;
}

.mthumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mbody {
	padding: 1rem 1.25rem
}

.mtitle {
	font-family: 'Unbounded', sans-serif;
	font-weight: 700;
	font-size: .82rem;
	color: var(--ink);
	margin-bottom: .6rem;
	line-height: 1.35
}

.mmeta {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: .45rem
}

.mauthor {
	font-size: .68rem;
	font-weight: 600;
	color: var(--muted);
	margin-left: auto
}

.mtags {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
	margin-top: .4rem
}

.badge {
	display: inline-block;
	font-size: .58rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 3px 9px;
	border-radius: 100px
}

.br {
	background: #fff0f2;
	color: var(--red)
}

.bo {
	background: #eff4ff;
	color: var(--blue);
}

.bp {
	background: #f0dffa;
	color: var(--purple);
}

.bb {
	background: #eff4ff;
	color: var(--blue)
}

.bg2 {
	background: #f0fdf4;
	color: var(--green)
}

.btg {
	background: var(--bg2);
	color: var(--muted);
	font-weight: 600;
	border-radius: 6px;
	padding: 3px 7px
}

.pcard {
	padding: 1.25rem 0;
	border-bottom: 2px solid var(--border);
	display: block;
	text-decoration: none;
	cursor: pointer;
	transition: padding-left .2s;
}

.pcard:hover {
	padding-left: 10px
}

.pcard:last-child {
	border-bottom: none
}

.pm {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: .4rem
}

.pdate {
	font-size: .68rem;
	font-weight: 600;
	color: var(--muted);
	margin-left: auto
}

.pauthor {
	font-size: .68rem;
	font-weight: 600;
	color: var(--muted)
}

.ph {
	font-family: 'Unbounded', sans-serif;
	font-weight: 700;
	font-size: .82rem;
	color: var(--ink);
	margin-bottom: .35rem;
	line-height: 1.4;
	transition: color .2s
}

.pcard:hover .ph {
	color: var(--blue)
}

.pe {
	font-size: .8rem;
	font-weight: 400;
	color: var(--muted);
	line-height: 1.65
}

.ptags {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
	margin-top: .4rem
}

@media ( max-width : 900px) {
	#about, #activities, #news {
		padding: 4rem 1.5rem;
	}
	.stats-card-title {
		font-size: 1rem;
	}
	.two-blocks {
		display: grid !important;
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.two-blocks>div:first-child {
		display: contents !important;
	}
	.two-blocks .kicker {
		order: 1;
	}
	.two-blocks h2 {
		order: 2;
	}
	.two-blocks p {
		order: 3;
	}
	.two-blocks .photo-block {
		order: 4;
	}
	.two-blocks .sig {
		order: 5;
		margin-top: 10px;
	}
	.teacher-icon {
		flex: 0 0 100%;
	}
	.nav-btn {
		width: 40px;
		height: 40px;
	}
	.back-people-gallery {
		left: 5px;
	}
	.forward-people-gallery {
		right: 5px;
	}
	.people-gallery {
		padding: 2rem 1rem;
	}
	.mtags {
		display: none
	}
	.ptags {
		display: none
	}
	#news {
		grid-template-columns: 1fr
	}
	.greeting-content {
		right: auto;
	}
}

@media ( max-width : 740px) {
	#greeting {
		padding-right: 0;
	}
	.mthumb{
		height: auto;
	}
}

@media ( max-width : 570px) {
	.greeting-content {
		padding: 2rem 0.5rem 2rem 0.5rem;
		margin-right: 0px;
		margin-left: 0px;
	}
	.greeting-h1 {
		font-size: clamp(1.8rem, 3vw, 3rem);
	}
}

@media ( min-width : 1024px) {
	.activities-grid {
		max-width: 1200px;
		margin-left: auto;
		margin-right: auto;
	}
	.textblock{
		text-align: center;
		display: grid;
	}
}
	@keyframes rainFall{
  0%  {transform:translateY(0) rotate(var(--rot));opacity:0}
  10% {opacity:1}
  85% {opacity:1}
  100%{transform:translateY(calc(100vh + 300px)) rotate(var(--rot));opacity:0}}
  @keyframes blink{0%,100%{opacity:.7}50%{opacity:1}}