/*
Theme Name: Switch
Theme URI: https://example.com/switch
Author: Switch 2 Russian
Author URI: https://example.com
Description: Minimal WordPress starter theme boilerplate for the Switch project.
\g<1>1.6.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: switch
Tags: starter, blog, block-editor, accessibility-ready
*/

:root {
  --switch-bg: #ffffff;
  --switch-text: #111111;
  --switch-accent: #2b6cb0;
  --switch-muted: #f5f5f5;
}

* { box-sizing: border-box; }
html { line-height: 1.6; }
body {
  margin: 0;
  color: var(--switch-text);
  background: var(--switch-bg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

a { color: var(--switch-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site {
  max-width: 1024px;
  margin: 0 auto;
  padding: 1.25rem;
}

.site-header, .site-footer {
  padding: 1rem 0;
  border-bottom: 1px solid #e5e5e5;
}
.site-footer { border-top: 1px solid #e5e5e5; border-bottom: none; margin-top: 2rem; }

.nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.nav a[aria-current="page"] { font-weight: 700; }

.entry { padding: 1rem 0; border-bottom: 1px solid #eee; }
.entry-title { margin: 0 0 .25rem 0; font-size: 1.75rem; }
.entry-meta { color: #666; font-size: .9rem; margin-bottom: .5rem; }
.pagination { display: flex; gap: .5rem; margin: 1.5rem 0; }
.screen-reader-text { position:absolute; left:-10000px; }

/* === Footer (Switch custom) === */
.footer-site { background: var(--switch-muted, #f5f5f5); color: var(--switch-text, #111); }

.footer-site .py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.footer-site .mt-5 { margin-top: 3rem; }
.footer-site .row { display: grid; gap: 1.5rem; }
.footer-site .g-4 { gap: 1.5rem; }
.footer-site .col-md-5, .footer-site .col-md-3, .footer-site .col-md-4 { min-width: 0; }
@media (min-width: 768px) {
  .footer-site .row { grid-template-columns: 5fr 3fr 4fr; }
}
.footer-site h5, .footer-site h6 { margin: 0; }
.footer-site .fw-bold { font-weight: 700; }
.footer-site .mb-0 { margin-bottom: 0; }
.footer-site .mb-3 { margin-bottom: 1rem; }
.footer-site .mb-1 { margin-bottom: .25rem; }
.footer-site .list-unstyled { list-style: none; padding-left: 0; }
.footer-site a { color: inherit; text-decoration: none; }
.footer-site a:hover { text-decoration: underline; }
.footer-site .social a { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; border: 1px solid rgba(0,0,0,.1); margin-right: .5rem; }
.footer-site .social a:hover { background: rgba(0,0,0,.04); }
.footer-site .border-light { border-color: rgba(0,0,0,.15); }
.footer-site .border-opacity-25 { opacity: .75; }
.footer-site .mt-4 { margin-top: 1.5rem; }
.footer-site .d-flex { display: flex; }
.footer-site .justify-content-between { justify-content: space-between; }
.footer-site .flex-wrap { flex-wrap: wrap; }
.footer-site .gap-2 { gap: .5rem; }
:root{
  /* Палитра */
  --russian-red: 0 85% 52%;
  --russian-blue: 210 90% 45%;
  --russian-white: 0 0% 100%;
  --russian-gold: 45 100% 65%;
  --gradient-russian: linear-gradient(135deg, hsl(var(--russian-red)), hsl(var(--russian-blue)));
}

/* ===== Sticky Header (2 строки) ===== */
header.sticky-top.header-gradient{
  background: var(--gradient-russian);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  z-index: 1020;
}
.topline{
  font-weight: 800;
  letter-spacing: .3px;
}
/* Полоса меню на белом фоне */
.menu-row{ background: transparent; }
.menu-row .nav-link{ color:#212529; font-weight:600; }
.menu-row .nav-link:hover,
.menu-row .nav-link:focus{ color:hsl(var(--russian-blue)); opacity:1; }
.menu-row .nav-link.active{ position: relative; }

.navbar-toggler{ border-color: rgba(0,0,0,.25); }
.navbar-toggler-icon{ filter:none; }

/* ===== Hero ===== */
.hero{
  min-height: 70vh;
  display:flex; align-items:center; position:relative; color:#fff;
  background-image:
    linear-gradient(135deg, hsl(var(--russian-red) / .45), hsl(var(--russian-blue) / .45)),
    url('https://plus.unsplash.com/premium_photo-1661255452683-e1a5c26c3d9b?q=80&w=1171&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
  background-size: cover; background-position: center;
}
.hero h1{ font-weight: 800; text-shadow: 0 6px 24px rgba(0,0,0,.35); }
.hero p.lead{ opacity: .95; max-width: 920px; margin: 0 auto; }

/* ===== About RUDN Section ===== */
.about-rudn{ background:#fff; }
.about-rudn .section-heading{ font-weight:800; }
.about-rudn .section-heading .decor{
  display:inline-block; height:4px; width:96px; border-radius:999px;
  background:var(--gradient-russian); margin-top:.5rem;
}
.stat-card{
  background:#fff; border:1px solid rgba(0,0,0,.06); border-radius:14px;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  transition:transform .2s ease, box-shadow .2s ease;
}
.stat-card:hover{ transform:translateY(-2px); box-shadow:0 14px 28px rgba(0,0,0,.12); }
.stat-card .icon-wrap{
  width:56px; height:56px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:var(--gradient-russian); color:#fff; margin:0 auto .75rem auto;
  box-shadow:0 6px 16px rgba(0,0,0,.15);
}
.stat-card .value{
  font-weight:800; line-height:1;
  background:var(--gradient-russian);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.stat-card .label{ color:#6c757d; font-weight:600; letter-spacing:.2px; text-transform:uppercase; font-size:.8rem; }

/* ===== Masonry (Pinterest-style) ===== */
.masonry { column-gap: 1rem; }
.masonry .masonry-item {
  break-inside: avoid; margin-bottom: 1rem; border: none;
  box-shadow: 0 6px 14px rgba(0,0,0,.08); border-radius: .75rem; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.masonry .masonry-item:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.masonry img { display: block; width: 100%; height: auto; }
@media (min-width: 576px) { .masonry { column-count: 2; } }
@media (min-width: 992px) { .masonry { column-count: 3; } }

/* ===== Footer ===== */
.footer-site{
  background: linear-gradient(135deg, hsl(var(--russian-blue)), hsl(var(--russian-red))); color:#fff;
}
.footer-site a{ color:hsl(var(--russian-white)); opacity:.9; text-decoration:none; }
.footer-site a:hover{ opacity:1; text-decoration:none; } /* без подчёркивания */
.footer-site .social a{
  display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:50%; background: rgba(255,255,255,.12);
  margin-right:.5rem;
}
/* без подчёркивания */
.footer-site .social a{
  display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:50%; background: rgba(255,255,255,.12);
  margin-right:.5rem;
}

/* === Events grid === */
.card .ratio-16x9{ width: 100%; }

/* === Events map === */
#eventsMap { height: 420px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.leaflet-container a { color: inherit; }
.leaflet-control-attribution { display: none !important; }

/* === Footer (refined to sample) === */
.footer-site { background: linear-gradient(135deg, hsl(var(--russian-blue)), hsl(var(--russian-red))); color:#fff; }

.footer-site .row { align-items: start; }
.footer-site h5, .footer-site h6 { margin: 0 0 .75rem 0; line-height: 1.25; }
.footer-site p { margin: 0; opacity:.95; }
.footer-site .list-unstyled li { margin-bottom: .35rem; }
.footer-site .social a { margin-right: .5rem; }



/* === Header brand & nav hover === */
.topline .brand-title { font-size: 2.5rem !important; font-weight: 800; letter-spacing: .3px; display: inline-flex; align-items: center; gap: .4rem; }
.topline .brand-title .brand-icon { display: inline-flex; width: 1.25em; height: 1em; align-items: center; justify-content: center; }
.topline .brand-title .brand-word { line-height: 1; }

.menu-row .nav-link,
.menu-row .nav-link:hover,
.menu-row .nav-link:focus { text-decoration: none; }

/* === Uniform card thumbnails === */
.card-img-top { display:block; width:100%; height:auto; }
.card.h-100 .card-img-top { aspect-ratio: 16 / 9; object-fit: cover; }

/* === Footer precise spacing === */
.footer-site .col-md-5 p { margin-top: .25rem; }
.footer-site .list-unstyled a { text-decoration: none; }
.footer-site .list-unstyled a:hover { text-decoration: none; opacity: .95; }

/* === Nav on gradient header === */
.menu-row .nav-link{ color:#fff; opacity:.9; font-weight:600; text-decoration:none; }
.menu-row .nav-link:hover,
.menu-row .nav-link:focus{ color:#fff; opacity:1; text-decoration:none; }
.menu-row .nav-link.active{ position: relative; }

.navbar-toggler{ border-color: rgba(255,255,255,.6); }
.navbar-toggler-icon{ filter: invert(1) brightness(2); }




/* === Active nav highlight: pill (no underline) === */
.menu-row .nav-link.active,
.menu-row .current-menu-item > a.nav-link,
.menu-row .current_page_item > a.nav-link {
  background: rgba(255,255,255,.18);
  border-radius: .5rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}



/* === Search form polish (used on 404) === */
.search-form .form-control { border-radius: .75rem 0 0 .75rem; box-shadow: 0 6px 14px rgba(0,0,0,.08); }
.search-form .btn { border-radius: 0 .75rem .75rem 0; }


/* === Enforce no underline for nav states === */
.menu-row .nav-link,
.menu-row .nav-link:hover,
.menu-row .nav-link:focus,
.menu-row .nav-link.active,
.menu-row .current-menu-item > a.nav-link,
.menu-row .current_page_item > a.nav-link { text-decoration: none !important; }

