/*

Tooplate 2130 Waso Strategy

https://www.tooplate.com/view/2130-waso-strategy

Free Bootstrap 5 HTML Template

*/


/*---------------------------------------
  CUSTOM PROPERTIES ( VARIABLES )             
-----------------------------------------*/
:root {
  --white-color:                  #ffffff;
  --primary-color:                #616161;
  --secondary-color:              #dc3545;
  --section-bg-color:             #f5f5f5;
  --dark-color:                   #000000;
  --p-color:                      #000000;

  --body-font-family:             'DM Sans', sans-serif;

  --h1-font-size:                 clamp(32px, 5vw, 60px);
  --h2-font-size:                 clamp(26px, 3.5vw, 42px);
  --h3-font-size:                 clamp(22px, 3vw, 36px);
  --h4-font-size:                 clamp(18px, 2vw, 26px);
  --h5-font-size:                 clamp(18px, 2vw, 24px);
  --h6-font-size:                 clamp(17px, 1.8vw, 22px);
  --p-font-size:                  clamp(15px, 1.5vw, 18px);
  --menu-font-size:               clamp(11px, 1.1vw, 14px);
  --copyright-text-font-size:     clamp(13px, 1.3vw, 16px);

  --font-weight-normal:           400;
  --font-weight-medium:           500;
  --font-weight-bold:             700;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--white-color);
    font-family: var(--body-font-family);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}


/*---------------------------------------
  TYPOGRAPHY               
-----------------------------------------*/

h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-bold);
  letter-spacing: -1px;
}

h1 {
  font-size: var(--h1-font-size);
  letter-spacing: -2px;
}

h2 {
  font-size: var(--h2-font-size);
  letter-spacing: -2px;
}

h3 {
  font-size: var(--h3-font-size);
  line-height: inherit;
}

h4 {
  font-size: var(--h4-font-size);
  line-height: inherit;
}

h5 {
  font-size: var(--h5-font-size);
  line-height: normal;
}

h6 {
  font-size: var(--h6-font-size);
}

p {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
}

ul li {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
}

a, 
button {
  touch-action: manipulation;
  transition: all 0.3s;
}

a {
  color: var(--p-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-color);
}

::selection {
  background: var(--primary-color);
  color: var(--white-color);
}

::-moz-selection {
  background: var(--primary-color);
  color: var(--white-color);
}

.section-hero ::selection,
.bg-warning ::selection {
  background: #f9d55c;
}

.section-padding {
  padding-top: 20px;
  padding-bottom: 30px;
}

.custom-border-radius {
  border-radius: 20px;
}

b,
strong {
  font-weight: var(--font-weight-bold);
}

.small-title {
  text-transform: uppercase;
}


/*---------------------------------------
  CUSTOM ICON               
-----------------------------------------*/
.custom-icon {
  display: inline-block;
  height: 45px;
  width: 45px;
  line-height: 45px;
  border: 3px solid var(--white-color);
  text-align: center;
  border-radius: 50%;
  font-size: 20px;
  position: relative;
}

.custom-icon::before,
.custom-icon::after {
  box-sizing: inherit;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: 50%;
}

.custom-icon::before {
  border: 3px solid transparent;
}

.custom-icon::after {
  border: 0 solid transparent;
}

.custom-icon:hover {
  border-color: transparent;
}

.custom-icon:hover::before {
  border-top-color: var(--primary-color);
  border-right-color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  transition: border-top-color .15s linear,border-right-color .15s linear .1s,border-bottom-color .15s linear .2s;
}

.custom-icon:hover::after {
  border-top: 3px solid var(--primary-color);
  border-left-width: 3px;
  border-right-width: 3px;
  transform: rotate(270deg);
  transition: transform .4s linear 0s,border-left-width 0s linear .35s;
}

.play-icon::before {
  position: relative;
  left: 1px;
}


/*---------------------------------------
  CUSTOM BUTTON               
-----------------------------------------*/
.custom-btn {
  background: var(--secondary-color);
  border-radius: 100px;
  color: var(--white-color);
  font-size: var(--copyright-text-font-size);
  font-weight: var(--font-weight-bold);
  padding: 12px 24px;
}

.custom-btn:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

.custom-bg-primary {
  background: var(--primary-color);
}

.custom-bg-primary:hover {
  background: var(--white-color);
  color: var(--dark-color);
}


/*---------------------------------------
  NAVIGATION              
-----------------------------------------*/
.navbar {
  z-index: 9;
  position: sticky;
  top: 0;
  transition: box-shadow 0.3s;
}

.navbar.shadow-lg {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
}

.navbar .container {
  max-width: 960px;
}

.navbar-logo {
  height: clamp(36px, 4vw, 50px);
  width: auto;
  flex-shrink: 0;
}

.navbar-brand {
  font-size: clamp(12px, 1.4vw, 18px);
  font-weight: var(--font-weight-bold);
  color: #1e1e1e;
  line-height: 1.2;
  flex-shrink: 1;
  min-width: 0;
  margin-right: 10px;
}

.navbar-expand-lg .navbar-nav .nav-link {
  padding-right: 0;
  padding-left: clamp(8px, 1vw, 14px);
  white-space: nowrap;
}

.navbar-nav .nav-link {
  color: var(--p-color);
  font-size: var(--menu-font-size);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  padding-top: 10px;
  padding-bottom: 10px;
  cursor: pointer;
}

.projects-detail-page .navbar-nav .nav-link.active {
  color: var(--p-color);
}

.navbar-toggler {
  border: 0;
  padding: 0;
  cursor: pointer;
  margin: 0;
  width: 30px;
  height: 35px;
  outline: none;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before,
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transition: top 300ms 50ms ease, -webkit-transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease, -webkit-transform 300ms 350ms ease;
  top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before {
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transform: rotate(-45deg);
}

.navbar-toggler .navbar-toggler-icon {
  background: var(--dark-color);
  transition: background 10ms 300ms ease;
  display: block;
  width: 30px;
  height: 2px;
  position: relative;
}

.navbar-toggler .navbar-toggler-icon:before,
.navbar-toggler .navbar-toggler-icon:after {
  transition: top 300ms 350ms ease, -webkit-transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease, -webkit-transform 300ms 50ms ease;
  position: absolute;
  right: 0;
  left: 0;
  background: var(--dark-color);
  width: 30px;
  height: 2px;
  content: '';
}

.navbar-toggler .navbar-toggler-icon::before {
  top: -8px;
}

.navbar-toggler .navbar-toggler-icon::after {
  top: 8px;
}

.breadcrumb-item.active {
  color: var(--primary-color);
}


/*---------------------------------------
  DROPDOWN MENU
-----------------------------------------*/
.nav-item {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  background: var(--white-color);
  min-width: 220px;
  max-width: 90%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 8px 0;
  z-index: 100;
}

.dropdown-content a {
  display: block;
  padding: 10px 20px;
  font-size: clamp(12px, 1.2vw, 14px);
  color: var(--dark-color);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.dropdown-content a:hover {
  background: var(--section-bg-color);
  color: var(--primary-color);
}

.nav-item:hover .dropdown-content {
  display: block;
}

.nav-item.dropdown-open .dropdown-content {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 220px;
}


/*---------------------------------------
  SITE HEADER              
-----------------------------------------*/
.site-header {
  background: #1e1e1e;
  padding-top: 3px;
  padding-bottom: 3px;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-right a {
  display: inline-flex;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.header-right a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.site-header p,
.site-header a {
  font-size: 11px;
}

.site-header i {
  font-size: 10px;
}

.header-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: transparent;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.header-social a:hover {
  transform: scale(1.15);
  box-shadow: 0 0 10px rgba(255,255,255,0.4);
}

.header-social a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}


/*---------------------------------------
  HERO              
-----------------------------------------*/
.hero {
  position: relative;
  height: calc(100vh - 133px);
}

.section-hero {
  background-image: url('../images/jason-goodman-MUZFKa_mttU-unsplash.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
  height: auto;
  padding-top: 180px;
  padding-bottom: 180px;
}

.section-hero::before {
  content: "";
  background: linear-gradient(to top, var(--dark-color), transparent 90%);
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.7;
}

.section-hero-text {
  position: relative;
}

.carousel {
  padding-right: 0;
  padding-left: 0;
}

.hero-carousel,
.carousel-inner,
.carousel-item {
  height: 100%;
}

.carousel-image-wrap::before {
  content: "";
  background: linear-gradient(to top, var(--dark-color), transparent 90%);
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.7;
}

.carousel-caption {
  z-index: 9;
  top: 32%;
  bottom: 0;
  left: 0;
  text-align: left;
  width: 50%;
  margin-right: 12px;
  margin-left: 12px;
}

.carousel-image-wrap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  margin-left: auto;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-control-next, 
.carousel-control-prev {
  top: auto;
  bottom: 50px;
  opacity: 1;
}

.carousel-control-prev {
  left: auto;
  right: 70px;
}

.carousel-control-next-icon, 
.carousel-control-prev-icon {
  width: 70px;
  height: 70px;
}


/*---------------------------------------
  ABOUT              
-----------------------------------------*/
.about-image-wrap {
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.about-image-info {
  background: linear-gradient(to top, var(--dark-color), transparent 90%);
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 40px;
}

.about-image {
  border-radius: 20px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-thumb {
  background: var(--primary-color);
  border-radius: 20px;
  margin-bottom: 24px;
  padding: 40px;
}


/*---------------------------------------
  SERVICES              
-----------------------------------------*/
.services {
  background: var(--section-bg-color);
}

.nav-tabs {
  border-bottom: 0;
}

.nav-tabs .nav-link,
.nav-tabs .nav-link span {
  color: var(--p-color);
  display: block;
  text-align: left;
}

.nav-tabs .nav-link {
  border-radius: 0;
  border: 0;
  border-left: 7px solid var(--p-color);
  margin-right: 30px;
  margin-left: 30px;
  margin-bottom: 30px;
  padding: 30px;
  transition: all 0.3s ease-in-out;
}

.nav-tabs .nav-item.show .nav-link, 
.nav-tabs .nav-link.active,
.nav-tabs .nav-link:focus, 
.nav-tabs .nav-link:hover {
  border-left-color: var(--secondary-color);
  background: var(--white-color);
  box-shadow: 0 1rem 3rem rgba(0,0,0,.175);
}

.nav-tabs .nav-link.active h3,
.nav-tabs .nav-link:focus h3, 
.nav-tabs .nav-link:hover h3 {
  color: var(--primary-color);
}


/*---------------------------------------
  PROJECTS              
-----------------------------------------*/
.projects-thumb {
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  transition: all 0.3s;
  cursor: pointer;
}

.projects-thumb-large {
  min-height: 356px;
}

.projects-thumb:hover {
  background: var(--white-color);
  box-shadow: 0 1rem 3rem rgba(0,0,0,.175);
}

.projects-thumb:hover .projects-image {
  transform: scale(1.2);
}

.projects-thumb:hover .projects-title-wrap {
  padding-bottom: 30px;
}

.projects-thumb:hover .custom-btn,
.projects-btn-wrap .custom-btn:hover {
  background: var(--primary-color);
}

.projects-title-wrap {
  background: linear-gradient(to top, var(--dark-color), transparent 90%);
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 25px 25px 10px 25px;
  transition: all 0.2s;
}

.projects-small-title {
  color: var(--primary-color);
  text-transform: uppercase;
}

.projects-title {
  color: var(--white-color);
}

.projects-image {
  border-radius: 20px;
  width: 100%;
  height: auto;
  transition: all 0.3s;
}

.projects-thumb-large .projects-image {
  object-fit: cover;
  height: 100%;
}

.projects-btn-wrap {
  position: absolute;
  bottom: 25px;
  right: 25px;
}

.projects-btn-wrap .custom-btn {
  font-size: 30px;
  padding: 7.5px 15px;
}


/*---------------------------------------
  CONTACT INFO               
-----------------------------------------*/
.contact-thumb {
  position: relative;
  bottom: 140px;
  margin-bottom: -140px;
}

.contact-info {
  border-radius: 20px;
  padding: 40px;
}

.google-map {
  border-radius: 20px;
}

.contact-icon {
  color: var(--primary-color);
  font-size: var(--h4-font-size);
}


/*---------------------------------------
  CONTACT              
-----------------------------------------*/
.contact-container-wrap {
  background-color: var(--primary-color);
  padding-bottom: 120px;
}

.contact-form {
  margin-top: 30px;
  margin-right: 30px;
}


/*---------------------------------------
  CUSTOM FORM               
-----------------------------------------*/
.custom-form .form-control {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  border: 0;
  border-bottom: 3px solid var(--section-bg-color);
  margin-bottom: 24px;
  padding-top: 13px;
  padding-bottom: 13px;
  transition: all 0.3s;
  outline: none;
}

.custom-form .form-control:hover,
.custom-form .form-control:focus {
  background: var(--white-color);
}

.custom-form button[type="submit"] {
  background: var(--secondary-color);
  border-radius: 100px;
  border: 0;
  color: var(--white-color);
  font-weight: var(--font-weight-bold);
  transition: all 0.3s;
  margin-bottom: 0;
}

.custom-form button[type="submit"]:hover,
.custom-form button[type="submit"]:focus {
  background: var(--white-color);
  color: var(--dark-color);
}


/*---------------------------------------
  SITE FOOTER              
-----------------------------------------*/
.site-footer {
  background: linear-gradient(135deg, #3a3d56 0%, #4a5568 50%, #606a7e 100%);
  padding: 14px 0 0;
  color: #fff;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 0 auto;
}
.footer-block {
  flex: 1;
}
.footer-block:nth-child(2) {
  text-align: center;
}
.footer-block:nth-child(3) {
  text-align: right;
}
.footer-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 2px solid rgba(255,255,255,0.4);
  display: inline-block;
}
.footer-block p {
  margin: 0 0 2px;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255,255,255,0.9);
}
.footer-block p i {
  margin-right: 3px;
  opacity: 0.8;
  font-size: 10px;
}
.footer-block a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
  font-size: 11px;
}
.footer-block a:hover {
  opacity: 0.7;
  text-decoration: underline;
}
.footer-social {
  display: flex;
  gap: 8px;
}
.footer-block:nth-child(2) .footer-social {
  justify-content: center;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: transparent;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.footer-social a:hover {
  transform: scale(1.15);
  box-shadow: 0 0 10px rgba(255,255,255,0.4);
}
.footer-social a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.footer-bottom {
  margin-top: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.25);
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}


/*---------------------------------------
  SOCIAL ICON               
-----------------------------------------*/
.social-icon {
  margin: 0;
  padding: 0;
}

.social-icon li {
  list-style: none;
  display: inline-block;
  vertical-align: top;
}

.social-icon-link {
  border-radius: 20px;
  font-size: var(--copyright-text-font-size);
  color: var(--dark-color);
  display: inline-block;
  vertical-align: top;
  margin: 2px;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
}

.social-icon-link:hover {
  color: var(--primary-color);
}


/*---------------------------------------
  CONTENT WIDTH (all pages)
-----------------------------------------*/
.about .container {
    max-width: 900px;
}

.about .container > h4 {
    margin-bottom: 24px;
}

.about .container > h6 {
    margin-top: 24px;
    margin-bottom: 12px;
}

/* Body text inside content pages (smaller than default) */
.about .container p,
.about .container ul,
.about .container td,
.about .container th,
.about .container h6 {
    font-size: 14px;
}

.about .container .table_name_name {
    font-size: 15px;
}

.about .container .table_name_post,
.about .container .table_name_information {
    font-size: 13px;
}

/*---------------------------------------
  NEWS WRAPPER
-----------------------------------------*/
.news-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/*---------------------------------------
  NEWS CARDS
-----------------------------------------*/
.news-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 20px 24px;
    margin-bottom: 18px;
    transition: box-shadow 0.2s;
    overflow: hidden;
    box-sizing: border-box;
}
.news-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.13);
}
.news-date {
    display: inline-block;
    background: #4a5568;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.news-text {
    font-size: 13px;
    line-height: 1.6;
    color: #222;
    text-align: justify;
}
.news-text p {
    margin: 0;
    color: #222;
    font-size: 13px;
}
.news-text a {
    color: var(--secondary-color, #dc3545);
    text-decoration: underline;
}
.news-images {
    margin-top: 18px;
    text-align: center;
}
.news-images img,
.news-images video {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}
.news-images img.landscape,
.news-images video.landscape { width: 100%; }
.news-images img.portrait,
.news-images video.portrait  { width: 50%; }
/* VK embed */
.news-vk-embed {
    margin-top: 18px;
}
.news-vk-embed iframe {
    border: none;
    border-radius: 8px;
    min-height: 300px;
}
/*---------------------------------------
  RESPONSIVE / ADAPTIVE
-----------------------------------------*/

/*---------------------------------------
  BOOTSTRAP CONTAINER FIX
  (оригинальный bootstrap.min.css был урезан —
   восстанавливаем адаптивные ширины контейнера)
-----------------------------------------*/
@media (min-width: 576px) {
  .container, .container-sm { max-width: 540px; }
}
@media (min-width: 768px) {
  .container, .container-md, .container-sm { max-width: 720px; }
}
@media (min-width: 992px) {
  .container, .container-lg, .container-md, .container-sm { max-width: 960px; }
}
@media (min-width: 1200px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl { max-width: 1140px; }
}
@media (min-width: 1400px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl { max-width: 1320px; }
}

/* Страница не выходит за ширину экрана */

/* Все изображения и медиа не выходят за ширину родителя */
img, video, iframe, embed, object {
    max-width: 100%;
}

/* Контентные изображения — авто-высота */
main img, main video {
    height: auto;
}

/* Таблицы не ломают макет */
table {
    max-width: 100%;
}

/* Длинные слова и ссылки переносятся */
p, li, a, td, th, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* --- Планшеты (до 992px) --- */
@media (max-width: 992px) {
    /*
     * Fix: bootstrap.min.css собран без @media (min-width:992px) обёртки
     * для .navbar-expand-lg, поэтому гамбургер скрыт, а collapse всегда
     * display:flex!important. Переопределяем, чтобы навбар сворачивался.
     */
    .navbar-expand-lg {
        flex-wrap: wrap !important;
    }

    .navbar-expand-lg .navbar-toggler {
        display: flex !important;
        align-items: center;
        align-self: center;
        margin-left: auto;
    }

    .navbar-expand-lg .navbar-collapse.collapse:not(.show) {
        display: none !important;
    }

    .navbar-expand-lg .navbar-collapse.collapse.show {
        display: block !important;
    }

    .navbar-expand-lg .navbar-collapse.collapsing {
        display: block !important;
    }

    .navbar-expand-lg .navbar-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .navbar-brand {
        font-size: clamp(14px, 2vw, 20px);
    }

    .navbar-expand-lg .navbar-nav .nav-link {
        padding-left: 10px;
        text-align: right;
    }

    .section-padding {
        padding-top: 16px;
        padding-bottom: 24px;
    }

    .footer-content {
        gap: 20px;
    }

    .footer-block {
        min-width: 160px;
    }

    .site-header .row {
        flex-wrap: wrap;
    }

    /* Мобильное меню: поверх страницы, не раздвигает навбар */
    .navbar .container {
        position: relative;
    }
    .navbar-collapse {
        position: absolute;
        top: 100%;
        right: 0;
        width: fit-content;
        background: var(--white-color);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        border-radius: 0 0 0 12px;
        z-index: 1000;
        padding: 10px 20px;
    }

    /* Dropdown: выпадает влево от пункта меню */
    .nav-item:hover > .dropdown-content {
        display: none !important;
    }
    .navbar-nav .nav-item {
        position: relative;
    }
    .navbar-nav .nav-item.dropdown-open > .dropdown-content {
        display: block !important;
        position: absolute;
        top: 0;
        right: calc(100% + 20px);
        left: auto;
        min-width: 160px;
        max-width: 65vw;
        border-left: 3px solid var(--primary-color);
        border-radius: 8px 0 0 8px;
    }
}

/* --- Мобильные (до 768px) --- */
@media (max-width: 768px) {
    .site-header {
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .site-header p {
        font-size: 12px;
    }

    .navbar .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .navbar-brand {
        font-size: 14px;
        line-height: 1.2;
    }

    .navbar-logo {
        height: 40px;
    }

    .section-padding {
        padding-top: 12px;
        padding-bottom: 20px;
    }

    .news-card {
        padding: 20px 16px;
    }

    .news-images img.portrait,
    .news-images video.portrait {
        width: 80%;
    }

    .news-slider-track img.portrait,
    .news-slider-track video.portrait {
        max-width: 80%;
    }

    .footer-content {
        gap: 0;
        flex-wrap: nowrap;
    }

    .footer-block {
        min-width: 0;
        flex: 1 1 0;
    }

    .footer-heading {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .footer-block p,
    .footer-block a {
        font-size: 10px;
    }

}

/* --- Маленькие мобильные (до 480px) --- */
@media (max-width: 480px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .navbar-brand {
        font-size: 13px;
    }

    .navbar-logo {
        height: 36px;
    }

    .header-social a {
        width: 28px;
        height: 28px;
    }

    .news-card {
        padding: 16px 12px;
    }

    .news-pagination {
        gap: 8px;
    }

    .news-pagination .page-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .news-slider .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

/*---------------------------------------
  NEWS SLIDER
-----------------------------------------*/
.news-slider {
    position: relative;
    margin-top: 18px;
}
.news-slider-track {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.news-slider-track img,
.news-slider-track video {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.news-slider-track img.portrait,
.news-slider-track video.portrait {
    max-width: 50%;
}
.news-slider-track img.active,
.news-slider-track video.active {
    position: relative;
    left: auto;
    transform: none;
    display: block;
    margin: 0 auto;
    opacity: 1;
    pointer-events: auto;
}
.news-slider .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 2;
}
.news-slider .slider-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}
.news-slider .slider-prev { left: 10px; }
.news-slider .slider-next { right: 10px; }
.news-slider .slider-counter {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #888;
}

/*---------------------------------------
  NEWS PAGINATION
-----------------------------------------*/
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    padding-bottom: 10px;
}
.news-pagination .page-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--secondary-color, #dc3545);
    background: var(--white-color, #fff);
    color: var(--dark-color, #000);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.news-pagination .page-btn:hover {
    background: var(--secondary-color, #dc3545);
    color: #fff;
}
.news-pagination .page-info {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark-color, #000);
}

/*---------------------------------------
  STAFF CARDS
-----------------------------------------*/
.staff-section-title {
    margin-top: 28px;
    margin-bottom: 18px;
}

.staff-section-title:first-child {
    margin-top: 0;
}

.staff-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.staff-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.staff-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.staff-card-main {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 16px 20px;
}

.staff-photo {
    flex-shrink: 0;
    width: 100px;
    border-radius: 10px;
    overflow: hidden;
    background: #e9ecef;
}

.staff-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.staff-photo-placeholder {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 42px;
    border-radius: 10px;
}

.staff-info {
    flex: 1;
    min-width: 0;
}

.staff-name {
    font-size: 16px;
    font-weight: 700;
    color: #1e1e1e;
    margin-bottom: 2px;
}

.staff-post {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 2px;
}

.staff-degree {
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
}

.staff-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.staff-contact-item {
    font-size: 12px;
    color: #444;
    white-space: nowrap;
}

.staff-contact-item i {
    font-size: 11px;
    color: #888;
    margin-right: 3px;
}

.staff-contact-item a {
    color: #444;
    text-decoration: none;
}

.staff-contact-item a:hover {
    color: var(--secondary-color, #dc3545);
    text-decoration: underline;
}

.staff-bio {
    padding: 0 20px 18px;
}

.staff-bio p {
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    border-top: 1px solid #eee;
    padding-top: 14px;
    text-align: justify;
}

/* --- Staff responsive: mobile --- */
@media (max-width: 600px) {
    .staff-card-main {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 14px;
    }

    .staff-photo {
        width: 80px;
        height: 80px;
    }

    .staff-info {
        flex-basis: calc(100% - 80px - 12px - 36px);
    }

    .staff-name {
        font-size: 15px;
    }

    .staff-contacts {
        gap: 4px 10px;
    }
}

/* ========================================
   DIPLOMAS — таблица тем работ
   ======================================== */

.diplomas-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 18px;
}

.diplomas-filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.diplomas-filter-label {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.diplomas-btn {
    padding: 5px 14px;
    border: 1px solid #bbb;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    transition: all .15s;
}

.diplomas-btn:hover {
    border-color: #666;
    background: #f0f0f0;
}

.diplomas-btn-active {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

.diplomas-btn-active:hover {
    background: #c82333;
    border-color: #c82333;
}

.diplomas-count {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.diplomas-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
}

.diplomas-table thead th {
    background: #f5f5f5;
    padding: 10px 8px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    white-space: nowrap;
}

.diplomas-table tbody td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.diplomas-row {
    cursor: pointer;
    transition: background .15s;
}

.diplomas-row:hover {
    background: #f9f5f5;
}

.diplomas-row-open {
    background: #f5f0f0;
}

.diplomas-title-cell {
    font-weight: 500;
    max-width: 350px;
}

.diplomas-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    margin: 1px 0;
}

.badge-kurs {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-dipl {
    background: #fce4ec;
    color: #c62828;
}

.badge-thermo {
    background: #fff3e0;
    color: #e65100;
}

.badge-kin {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-other {
    background: #f3e5f5;
    color: #6a1b9a;
}

.diplomas-details td {
    padding: 0 !important;
    border-bottom: 2px solid #ddd;
}

.diplomas-details-inner {
    padding: 14px 20px;
    background: #fafafa;
    font-size: 14px;
    line-height: 1.6;
}

.diplomas-details-inner p {
    margin: 6px 0;
}

.diplomas-empty {
    text-align: center;
    color: #999;
    padding: 30px 0;
}

.diplomas-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* --- Diplomas responsive: mobile --- */
@media (max-width: 768px) {
    .diplomas-table thead {
        display: none;
    }

    .diplomas-table,
    .diplomas-table tbody,
    .diplomas-table tr,
    .diplomas-table td {
        display: block;
        width: 100%;
    }

    .diplomas-row {
        padding: 10px 0;
        border-bottom: 1px solid #ddd;
    }

    .diplomas-row td {
        padding: 3px 8px;
        border: none;
    }

    .diplomas-row td:first-child {
        display: none;
    }

    .diplomas-title-cell {
        max-width: none;
        font-size: 15px;
    }

    .diplomas-details td {
        border-bottom: 2px solid #ddd;
    }
}

