/*
Theme Name: School
Theme URI: https://school455.ggsspb.ru/
Author: GGS
Description: Моя уникальная школьная.
Version: 1.0.0
Update URI: false
*/
.site-description {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 5px;
}
.hero-fullwidth {
    position: relative;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5f8a 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 60px;
    width: 100%;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 900px;
    padding: 0 20px;
}
.hero-content h1 {
    font-size: 52px;
    margin-bottom: 20px;
    font-weight: 700;
}
.hero-content p {
    font-size: 20px;
    margin-bottom: 20px;
}
.hero-text {
    font-size: 18px;
    opacity: 0.9;
}
/* ===== СЕКЦИИ ===== */
.section-title {
    text-align: center;
    font-size: 36px;
    margin: 50px 0 40px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}
.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
}
/* Сетка плиток разделов */
.grid-sections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0 60px;
}
.section-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid #eef2f6;
}

.section-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.1);
}

.section-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.section-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.section-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.section-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Новости */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.news-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.news-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.news-content {
    padding: 20px;
}
.news-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
	line-height: 20px;
	font-weight: 100;
}
.news-item h3 a {
    color: var(--primary-color);
    text-decoration: none;
}
.news-date {
    color: var(--text-light);
    font-size: 12px;
    margin-bottom: 10px;
}
.news-excerpt {
    color: #bababa;
    font-size: 1.2rem;
    line-height: 1.0;
}
/* ===== ФУТЕР ===== */
.site-footer {
    background: #1a2a3a;
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 60px;
}
.footer-widgets {
    margin-bottom: 30px;
}
/* Для плавности можно добавить transition, но не обязательно */
/* ========================================================
   Стили 
   ======================================================== */
/* Typography & Layout */
.section-title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

/* Hero Section */
.hero-fullwidth {
    background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 100%) !important;
    position: relative;
    overflow: hidden;
    padding: 8rem 0 6rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 40px 40px;
    margin-bottom: 4rem;
}

.hero-fullwidth::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1), transparent 40%);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards (Glassmorphism & Soft Neumorphism) */
.section-card, .news-item {
    background: #ffffff !important;
    border-radius: var(--radius-md) !important;
    padding: 2rem !important;
    transition: var(--transition) !important;
    border: 1px solid rgba(226, 232, 240, 0.6) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    display: flex;
    flex-direction: row;
    height: 100%;
    position: relative;
    overflow: hidden;
}
/* Card Icons */
.section-icon {
    font-size: 3rem !important;
    margin-bottom: 1.5rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #F1F5F9;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.section-card:hover .section-icon {
    background: var(--primary-color);
    color: #ffffff;
    transform: scale(1.1) rotate(5deg);
}

/* Links & Buttons */
.section-link, .btn, a.button {
    margin-top: auto;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: var(--primary-color) !important;
    background-color: rgba(79, 70, 229, 0.1) !important;
    border-radius: 9999px !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
    text-align: center;
}

.section-card:hover .section-link, .btn:hover, a.button:hover {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3) !important;
}

/* Layout */
.grid-sections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem !important;
}

/* News Grid Enhancement */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.news-item {
    padding: 0 !important;
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 10px;
}

.news-date {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Focus States for Accessibility */
a:focus, button:focus {
    outline-offset: 4px;
}
/* Modern Header with Backdrop Blur */
.mega-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F1F5F9;
    border-radius: 12px;
    transition: var(--transition);
}
/* Mobile Tweak for Mega Menu */
/* TWO-COLUMN MEGA MENU SPLIT */
/* SIDEBAR (Categories) */
/* CONTENT PANES (Subcategories) */
@keyframes paneFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.mega-child-link-single {
    font-weight: 600;
}
.mega-child-bullet {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0.5;
    transition: opacity var(--transition);
}
/* Force side-by-side flex layout */
/* Internal Page Template */
.page-hero-summary {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    color: #475569;
    max-width: 58ch;
    margin: 0 0 1.5rem;
}
.page-hero-media img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 320px;
    object-fit: cover;
}
.page-article-card {
    padding: clamp(1.2rem, 2vw, 2.2rem);
}

.page-content-body {
    color: #1e293b;
    font-size: 1.02rem;
}

.page-content-body > *:first-child {
    margin-top: 0;
}

.page-content-body > *:last-child {
    margin-bottom: 0;
}

.page-content-body h2,
.page-content-body h3,
.page-content-body h4 {
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 2rem 0 0.9rem;
}

.page-content-body h2 {
    font-size: clamp(1.6rem, 2vw, 2.2rem);
}

.page-content-body h3 {
    font-size: clamp(1.3rem, 1.6vw, 1.7rem);
}

.page-content-body p,
.page-content-body ul,
.page-content-body ol,
.page-content-body blockquote,
.page-content-body table {
    margin: 0 0 1.2rem;
}

.page-content-body ul,
.page-content-body ol {
    padding-left: 1.3rem;
}

.page-content-body li + li {
    margin-top: 0.45rem;
}

.page-content-body a {
    color: var(--primary-color) !important;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

.page-content-body blockquote {
    padding: 1.2rem 1.4rem;
    border-left: 4px solid var(--secondary-color);
    background: #f8fafc;
    border-radius: 18px;
    color: #334155;
}

.page-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.page-content-body table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.page-content-body th,
.page-content-body td {
    padding: 0.9rem 1rem;
    border: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

.page-content-body th {
    background: #f8fafc;
    color: #0f172a;
}
/* Global page gutters */
/* Global Responsive System */
.logotip-455 {
	width: 120px;
    border-radius: 70px;
}
.custom-links-block {
	background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
    padding: 20px;
    margin: 30px 0px;
}




/* Hero-секция для записи */
.post-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    padding: 50px 0;
    margin-bottom: 40px;
}
.post-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.post-hero-copy {
    max-width: 700px;
}
.post-hero-label {
    display: inline-block;
    background: #0a2f6c;
    color: #fff;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    text-decoration: none;
    margin-bottom: 15px;
}
.post-hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #0a2f6c;
}
.post-short-description {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 20px;
}
.post-hero-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.post-meta-chip {
    background: #fff;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    color: #0a2f6c;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.post-hero-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.post-hero-media img {
    width: 100%;
    height: auto;
    display: block;
}
.post-hero-placeholder {
    padding: 60px;
    text-align: center;
    background: #f1f5f9;
}
/* Основной контент */
.post-main-column {
    max-width: 800px;
    margin: 0 auto;
}
/* Похожие записи */
.related-posts {
    margin-top: 60px;
    padding: 40px 0;
    background: #f8fafc;
}
.related-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.related-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.related-card:hover {
    transform: translateY(-5px);
}
.related-card-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.related-card-title {
    font-size: 1.2rem;
    margin: 15px;
}
.related-card-title a {
    color: #0a2f6c;
    text-decoration: none;
}
.related-card-date {
    margin: 0 15px 15px;
    color: #64748b;
    font-size: 0.8rem;
}
@media (max-width: 768px) {
    .post-hero-grid {
        grid-template-columns: 1fr;
    }
    .post-hero-title {
        font-size: 1.8rem;
    }
}

/* Фон с клеточками (тот же, что на главной) */
.two-col-mega {
    background-color: #f0f4f8;
    background-image: linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    animation: subtleMove 20s linear infinite;
}

@keyframes subtleMove {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

/* Левая панель */
.mega-sidebar-item {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: filter 0.3s ease;
    /* Черно‑белый фильтр по умолчанию */
    filter: grayscale(100%);
}

.mega-sidebar-item:hover,
.mega-sidebar-item.active {
    filter: grayscale(0%);
}

.mega-sidebar-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.mega-sidebar-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 10px 0;
    font-family: 'MyCustomFont2';
    line-height: 25px;
}

.mega-sidebar-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.2s;
}

.mega-sidebar-link:hover {
    background: var(--primary-hover);
}

/* Правая панель */
.mega-submenu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    padding: 20px;
}

/* Кнопки в стиле баннеров (link-card) */
.mega-child-card {
    display: block;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: var(--text-dark) !important;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.mega-child-card:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}
.sub-menu.mega-menu.two-col-mega.mega-bg-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgb(255 255 255 / 5%) 1px, #00000000 1px), linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0;
    animation: mega-cells 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes mega-cells {
    from { background-position: 0 0; }
    to   { background-position: 40px 40px; }
}
.mega-sidebar-link {
    width: fit-content;
}
@media (min-width: 769px) {
    .mega-sidebar-item--hide-desktop {
        display: none !important;
    }
}
#modal-message {
    font-family: 'MyCustomFont2';
    margin-bottom: 20px;
}
#modal-confirm {
    border-radius: 15px;
    border: 1px solid #007399;
    background: #d0e1ff;
}
#modal-cancel {
    border-radius: 15px;
    border: 1px solid #007399;
    background: #d0e1ff;
}