/* === GILROY FONT FAMILY === */
@font-face {
    font-family: 'Gilroy';
    src: url('fonts/gilroy/gilroy-thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('fonts/gilroy/gilroy-thinitalic.ttf') format('truetype');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('fonts/gilroy/gilroy-ultralight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('fonts/gilroy/gilroy-ultralightitalic.ttf') format('truetype');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('fonts/gilroy/gilroy-lightitalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('fonts/gilroy/gilroy-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('fonts/gilroy/gilroy-regularitalic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('fonts/gilroy/gilroy-medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('fonts/gilroy/gilroy-mediumitalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('fonts/gilroy/gilroy-semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('fonts/gilroy/gilroy-semibolditalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('fonts/gilroy/gilroy-bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('fonts/gilroy/gilroy-bolditalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('fonts/gilroy/gilroy-extrabolditalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('fonts/gilroy/gilroy-heavy.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('fonts/gilroy/gilroy-heavyitalic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('fonts/gilroy/gilroy-black.ttf') format('truetype');
    font-weight: 950;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url('fonts/gilroy/gilroy-blackitalic.ttf') format('truetype');
    font-weight: 950;
    font-style: italic;
    font-display: swap;
}

/* === STYLES === */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}
body {
  background-image: url('images/background.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: 'Gilroy', sans-serif;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  min-width: 400px;
}
h1, h2, h3, h4, h5 {
  text-transform: uppercase;
}
ul a {
  position: relative;
  text-decoration: none;
  color: #ffffff;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}
ul a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.3s ease, left 0.3s ease;
}
ul a:hover::after {
  width: 100%;
  left: 0;
}
ul .active a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.3s ease, left 0.3s ease;
  width: 100%;
  left: 0;
}
.container {
  margin: 0 auto;
  padding: 0 12px;
}
@media (min-width: 576px) { body .container { max-width: 540px; } }
@media (min-width: 768px) { body .container { max-width: 720px; } }
@media (min-width: 992px) { body .container { max-width: 960px; } }
@media (min-width: 1200px) { body .container { max-width: 1140px; } }
@media (min-width: 1400px) { body .container { max-width: 1320px; } }
body .container {
  flex: 1;
  margin-bottom: 32px;
}
/* === MENU === */
nav {
  display: flex;
  align-items: center;
  width: 100%;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 1;
  position: relative; /* базовое состояние */
  background-color: transparent; /* изначально прозрачный */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
}
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}
nav li {
  flex: 1;
  text-align: center;
  font-size: 20px;
}
nav ul a, footer .container a, .docs a {
  position: relative;
  text-decoration: none;
  color: #ffffff;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}
nav ul a::after, footer .container a::after, .docs a::after{
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.3s ease, left 0.3s ease;
}
nav ul a:hover::after, footer .container a:hover::after, .docs a:hover::after{
  width: 100%;
  left: 0;
}
nav ul .active a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.3s ease, left 0.3s ease;
  width: 100%;
  left: 0;
}
nav img {
  width: 72px;
  padding: 18px 36px;
}
nav.sticky {
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(1, 51, 83, 0.80); /* плавно появляющийся фон */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 10px 20px;
  z-index: 1100;
}

/* при ширине меньше 992px показываем кнопку и скрываем меню */
@media (max-width: 991px) {
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(1, 51, 83, 0.95);
    flex-direction: column;
    width: 220px;
    padding: 10px 0;
    border-radius: 8px;
    text-align: right;
  }

  nav ul li {
    font-size: 18px;
    padding: 8px 16px;
  }

  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
  }

  /* активное состояние (открытое меню) */
  nav ul.open {
    display: flex;
  }
}

/* === FOOTER === */
footer {
  background-color: #013353;
  color: white;
  text-align: left;
  padding: 10px 0;
}
footer .container {
  display: grid;
  grid-auto-rows: auto;
  margin-bottom: 0;
}
footer .block p, .copyright p {
  text-transform: uppercase;
  margin: 8px;
}
.copyright {
  text-align: center;
}
footer .search {
  height: 20px;
  max-width: 200px;
  background-color: #fff;
  border-radius: 20px;
  padding: 5px 5px 5px 10px;
  display: flex;
  align-items: center;
}
footer fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}
footer .search-input {
  border: none;
  outline: none;
  font-size: 14px;
  font-weight: 600;
  flex: 1;
  min-width: 0; 
}
footer .search-input::placeholder {
  font-weight: bold;
  color: #0068b4;
}
footer .search-button {
    background-color: #0068b4;
    border: none;
    border-radius: 100%;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    height: auto;
    width: 20px;
    padding: 0;
}
footer .search-button:hover {
    background-color: #013353;
}
footer .search-button i {
    font-size: 12px;
}
footer .block:last-child p {
    margin: 8px 0;
}
@media (max-width: 768px) {
    footer .container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 768px) { 
    footer .container {
        grid-template-columns: repeat(4, 1fr);
    }
}
/* === MAIN === */
.main {
    color: #fff;
    display: grid;
    gap: 50px;
}
.main p {
    text-transform: uppercase;
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    margin: 10px;
}
.main .block img {
    width: 100%;
    max-width: 500px; 
    height: auto;
}
.main .year_in_numbers {
    display: flex;
    align-items: flex-start;
}
.main .year.vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: rotate(-90deg);
    transform-origin: left top;
    white-space: nowrap;
    margin-top: 275px;
    margin-bottom: -275px;
}
@media (max-width: 576px) {
    .main .year_in_numbers {
        display: block;
    }
    .main .year.vertical {
        transform: none;
        margin: 0 0 20px 0;
        text-align: left;
    }
}
.main .year .text {
    font-size: 31px;
    font-weight: 500;
    text-transform: uppercase;
}
.main .number-outline {
    font-size: 120px;
    color: transparent;
    -webkit-text-stroke: 2px #fff;
    text-stroke: 2px #fff;
    font-weight: bold;
}
.main .numbers {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.main .number {
    display: flex;
    align-items: center;
    gap: 15px;
}
.main .number .count {
    font-size: 44px;
    font-weight: bold;
    text-align: right;
    flex-shrink: 0;
    width: 80px;
}
.main .number .text {
    font-size: 18px;
    text-transform: uppercase;
    line-height: 1;
    flex: 1;
}
.main .values {
    margin-bottom: 32px;
}

@media (max-width: 992px) { 
    .main { 
        grid-template-columns: repeat(1, auto);
    }
    .main .block {
        text-align: center;
    }
    .main .values, .main .numbers .text {
        text-align: left;
    }
}
@media (min-width: 1200px) { 
    .main { 
        grid-template-columns: repeat(2, auto); 
        padding: 0 12px;
    }
}

/* === ASSORTMENT === */

.assortment {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 24px;
    color: #fff;
}

@media (max-width: 1200px) { 
    .assortment {
        grid-template-columns: repeat(2, auto);
    }
}
@media (max-width: 576px) { 
    .assortment {
        grid-template-columns: repeat(1, auto);
    }
}
.assortment .block {
    display: flex;
    flex-direction: row; 
    align-items: stretch;
}

.assortment .block .inner.left {
    flex: 0 0 60px;
    background-color: transparent;
    background-size: 100%;
    background-position: top;
    background-repeat: no-repeat;
    height: 100%;
    margin-right: 24px;
}

.assortment .block .inner.right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.assortment .block .right h2 {
    margin: 0;
    font-size: 20px;
}
.assortment .block .right h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
}
.assortment .block .right sup {
    font-size: 10px;
    font-weight: 700;
}
.assortment .block .right ul {
    list-style: none;
    padding: 0;
}
.assortment .block .right ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 4px;
}
.assortment .block .right ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.assortment .block .right ul.p li::before {
  background-image: url("/assets/static/images/assortment/p-11.svg");
  
}

.assortment .block .right ul.w li::before {
  background-image: url("/assets/static/images/assortment/w-10.svg");
}
/* === PRODUCTS === */
.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 32px;
}
@media (max-width: 1200px) { 
    .products {
        grid-template-columns: repeat(2, minmax(250px, 1fr));
    }
}
@media (max-width: 576px) { 
    .products {
        grid-template-columns: repeat(1, minmax(250px, 1fr));
    }
}
.products .product-item {
    display: flex;
    flex-direction: column;
    background-color: rgba(1, 51, 83, 0.80);
    color: #fff;
    text-align: center;
    padding: 20px;
    border-radius: 20px;
    max-width: 250px;
}

.products .product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
}

.products .product-item h3 {
    flex: 1; 
    display: flex;
    align-items: center; 
    justify-content: center;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
}
#load-more {
    background-color: #ffffff;
    color: #0068b4;
    border: none;
    border-radius: 50px;
    padding: 10px 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin: 32px auto 0 auto;
    height: 45px;
    display: block;      
}

#load-more:hover {
    color: #013353;  
}

#load-more:active {
    transform: scale(0.98);    
}
/* === NEWS/NOTES === */
.news, .notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}
@media (max-width: 1200px) { 
    .news, .notes {
        grid-template-columns: repeat(2, minmax(350px, 1fr));
    }
}
@media (max-width: 768px) { 
    .news, .notes {
        grid-template-columns: repeat(1, minmax(350px, 1fr));
    }
}
.news .news-item, .notes .notes-item{
    display: flex;
    flex-direction: column;
    text-align: left;
    border-radius: 10px 10px 0 0;
    max-width: 350px;
}
.news .news-item img, .notes .notes-item img {
    border-radius: 10px 10px 0 0;
}
.news .news-item .info, .notes .notes-item .info {
    border-radius: 10px 10px 0 0;
    padding: 12px 20px;
    background-color: #9dd4f3;
    margin-top: -36px;
    color: #023f6b;
}
.news .news-item h3, .notes .notes-item h3 {
    text-transform: none;
    margin: 8px 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    font-size: 16px;
}
.news .news-item .info .meta, .notes .notes-item .info .meta{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 14px;
}
.news .news-item .info .meta .date, .notes .notes-item .info .meta .date {
    margin: 0;
}
.news .news-item .info>p, .notes .notes-item .info>p {
    height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin: 0;
    font-size: 14px;
}
.news-detailed, .notes-detailed {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 24px;
    color: #fff;
}

@media (max-width: 992px) { 
    .news-detailed, .notes-detailed {
        grid-template-columns: repeat(1, auto);
    }
}
.news-detailed .news-gallery img, .notes-detailed .notes-gallery img{
    max-width: 350px;
    border-radius: 10px 10px 0 0;
}
@media (max-width: 992px) { 
    .news-detailed .news-gallery img, .notes-detailed .notes-gallery img {
        width: 100%;
        max-width: none;
    }
}
.news-detailed .news-info, .notes-detailed .notes-info {
    font-size: 20px;
}
.news-detailed .news-meta h1, .notes-detailed .notes-meta h1{
    text-transform: none;
    margin: 0;
}
.news-detailed .news-meta .date, .notes-detailed .notes-meta .date {
    margin-bottom: 12px;
}


/* === CONTACTS === */
.contacts {
    line-height: 1;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    align-items: center;
}

.contacts .contacts-section {
  display: grid;
  grid-template-columns: 28% 80vh;
  gap: 20px;
  align-items: start;
  justify-content: center;
}
@media (max-width: 992px) { 
    .contacts .contacts-section {
        grid-template-columns: 100%; 
    }
}
.contacts .maps {
    display: grid;
    grid-template-columns: 40vh 40vh;
    align-items: start;
    justify-content: center;
    gap: 20px;
}

@media (max-width: 768px) { 
    .contacts .maps {
        grid-template-columns: 100%; 
    }
}
.contacts .contacts-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contacts-text.fullwidth {
    margin: 20px auto 0 auto;
    max-width: calc(28% + 40vh + 40vh + 15px);
}

.contacts .contact-item{
  display: flex;
  align-items: center;
}
.contacts .contact-item a {
    position: relative;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacts .contact-item a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.3s ease, left 0.3s ease;
}
.contacts .contact-item a:hover::after {
  width: 100%;
  left: 0;
}

.contacts .contact-item i {
  flex: 0 0 40px;             /* фиксированная ширина колонки для иконки */
  display: flex;              /* чтобы выровнять иконку */
  justify-content: center;    /* центр по горизонтали */
  align-items: center;        /* центр по вертикали */
  font-size: 24px;
  margin-right: 20px;         /* расстояние до текста */
}

.contacts .contact-item span {
  line-height: 1.4;
  display: inline-block;
}

.contacts .contacts-text p {
    margin: 0 0 10px;
    display: flex;
    align-items: center;
}

.contacts .contacts-text .icon {
    margin-right: 8px;
}
.contacts #map {
    position: relative;
    -webkit-mask-image: -webkit-radial-gradient(center center, circle, #000 70%, rgba(0,0,0,0) 40%);
    width: 40vh;
    height: 40vh;
    shape-outside: circle(50%);
    margin-right: 20px;
}
.contacts .logistics {
    position: relative;
    -webkit-mask-image: -webkit-radial-gradient(center center, circle, #000 70%, rgba(0,0,0,0) 40%);
    width: 40vh;  
    height: 40vh; 
    shape-outside: circle(50%);
    margin-right: 20px;
    display: flex;
    justify-content: center; /* центр по горизонтали */
    align-items: center;     /* центр по вертикали */
    margin: 0 auto;          /* центр контейнера в родителе */
}
.contacts .logistics img {
    width: 40vh;   /* фиксированный размер картинки */
    height: 40vh;
    object-fit: cover; /* чтобы картинка полностью заполнила круг */
    cursor: pointer;
}

.contacts #route {
    position: relative;
    width: 25vh;
    height: 32vh;
}
.contacts .route {
    text-align: center;
}
.contacts .route h3 {
    margin: 0 0 20px;
}
.contacts .worktime {
    margin-top: 20px;
}
@media (max-width: 768px) { 
    .contacts #route {
        width: 40vh;
        height: 40vh;
    }
    .maps {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .maps > * {
        margin-left: auto;
        margin-right: auto;
    }
    
    .contacts #map {
        margin-right: auto;
    }
    .contacts .logistics {
        margin-right: auto;
    }
}
.video-overlay {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.video-wrapper {
  max-width: 80%;
  max-height: 80%;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
/* === STUDY === */
.study {
    color: #fff;
}
.study h1, .study h2, .study h3, .study h4, .study p {
    margin: 0;
}
.study>h1 {
    text-align: center;
    margin-bottom: 36px;
}
.study p {
    font-size: 14px;
}
.study-inner {
    display: grid;
    grid-template-columns: repeat(2, 50%);
    gap: 50px;
    margin-bottom: 32px;
}
@media (max-width: 992px) { 
    .study-inner {
        grid-template-columns: repeat(1, auto);
    }
}
.study-item.info .info-item {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 24px;
    margin-bottom: 12px;
}
.study-item.info .info-item .icon {
    display: flex;
    justify-content: center;
    align-items: center;
}
.study-item.info .info-item h2 {
    margin-bottom: 5px;
    font-size: 20px;
    font-weight: 600;
}
.study-item.info .info-item p {
    margin: 0;
}
.study-item.info .info-item ul {
    margin: 0;
    padding-left: 20px;
}
.study-item.info img {
    width: 70px;
}
.study-item.program h4 {
    font-weight: 400;
}

.study-item.employer img {
    width: 300px;
    height: auto;
    float: left;
    padding: 0 20px 20px 0;
    -webkit-mask-image: -webkit-radial-gradient(center center, circle, #000 70%, rgba(0, 0, 0, 0) 40%);
    shape-outside: circle(50%);
}
.study-item.employer .employer-item.right {
    text-align: right;
    margin-bottom: 24px;
}
.study-item.geography {
    text-align: right;
}
@media (max-width: 576px) { 
    .study-item.employer img {
        float: none;
        padding: 0;
    }
}

/* === SIMPLE SEARCH === */
.search {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.simplesearch-results {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
}

.simplesearch-results .simplesearch-highlight {
    background-color: #f6e05e;
    padding: 0 4px;
    border-radius: 2px;
}

.simplesearch-results-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.search-item {
    display: flex;
    flex-direction: column;
    background-color: rgba(1, 51, 83, 0.8);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    color: #fff;
    padding: 12px;
}

.search-item img {
    max-width: 100%;       /* не растягиваем больше блока */
    width: 100%;           /* масштабируем под блок */
    height: auto;          /* сохраняем пропорции */
    object-fit: cover;     /* обрезка если нужно заполнить */
    margin-bottom: 12px;
    border-radius: 8px;
}

.search-item a {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    margin-bottom: 8px;
    display: inline-block;
}

.search-item p {
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;  /* обрезаем до 3 строк */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.simplesearch-paging {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
}

.simplesearch-page {
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #0068b4;
    color: #fff;
    cursor: pointer;
}

.simplesearch-current-page {
    background-color: #fff;
    color: #0068b4;
    font-weight: 700;
}
.simplesearch-results-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* всегда 3 колонки */
    gap: 24px;
    justify-items: center; /* центрируем содержимое в колонке */
}

.search-item {
    display: flex;
    flex-direction: column;
    align-items: center; /* центрируем содержимое */
    background-color: rgba(1, 51, 83, 0.8);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    color: #fff;
    padding: 12px;
    width: 100%;
    max-width: 300px; /* ограничиваем ширину блока */
}

.search-item img {
    width: 100%;
    max-width: 300px;   /* ограничиваем ширину картинки */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.search-item a {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    margin-bottom: 8px;
    display: inline-block;
}

.search-item p {
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}
@media (max-width: 992px) {
    .simplesearch-results-list {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшете */
    }
}

@media (max-width: 576px) {
    .simplesearch-results-list {
        grid-template-columns: 1fr; /* 1 колонка на мобилке */
    }
}

/* === SWIPER SLIDER === */
.swiper-frame {
    position: relative;
}

.swiper {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    background-color: #444; /* фон-заполнитель */
}

@media (max-width: 768px) {
    .swiper { max-width: 450px; }
}
@media (max-width: 576px) {
    .swiper { max-width: 350px; }
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center; /* центрируем картинку */
    background-color: #444; /* фон-заполнитель */
}

.swiper-slide img {
    display: block;
    max-width: 100%;  /* масштабируем по ширине контейнера */
    max-height: 80vh; /* не выше окна */
    width: auto;
    height: auto;
    object-fit: contain; /* сохраняем пропорции, не обрезаем */
}
/* === DOCS === */
.docs h1, .docs h2, .docs h3 {
    color: #fff;
}
.docs a {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    margin-bottom: 8px;
    display: inline-block;
}
.docs ::marker {
  color: #fff;
}

/* === NEIGHBORS === */
.neighbors {
    margin: 2rem 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.neighbors a {
    position: relative;
    text-decoration: none;
    color: #ffffff;
    padding-bottom: 4px;
    transition: color 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.neighbors a .arrow {
    flex-shrink: 0;
}

.neighbors a .title {
    display: block;
    max-width: 28vw;             
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.neighbors a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease, left 0.3s ease;
}

.neighbors a:hover::after {
    width: 100%;
    left: 0;
}

.neighbors .up-article {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
@media (max-width: 768px) { 
    .neighbors .up-article {
        display: none;
    }
}

/* === REVIEWS === */
.reviews {
    color: #fff;
}
/* === PHOTO-VIDEO === */
.photo-video {
    color: #fff;
}
/* === SOUT === */
.sout {
    color: #fff;
}
/* === QUESTION/ANSWER === */
.question-answer {
    color: #fff;
}