:root {
  --font-family-pt-root-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Noto Sans', 'Cantarell', 'Ubuntu', 'DejaVu Sans', 'Liberation Sans', sans-serif;
  --font-family-pt-root-ui-vf: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Noto Sans', 'Cantarell', 'Ubuntu', 'DejaVu Sans', 'Liberation Sans', sans-serif;
  --text-rgb-30-30-33: rgba(30, 30, 33, 1);
  --text-rgb-57-136-255: rgba(57, 136, 255, 1);
  --text-white: rgba(255, 255, 255, 0.9);
}

.text-rgb-30-30-33 {
  color: var(--text-rgb-30-30-33);
  font-family: var(--font-family-pt-root-ui);
}

.text-rgb-57-136-255 {
  color: var(--text-rgb-57-136-255);
}

.text-white {
  color: var(--text-white);
}


/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a.description-link {
  text-decoration: none;
}

a.panel-link {
  text-decoration: none;
}

a.install-link {
  text-decoration: none;
  color: white;
}

img {
  max-width: 100%;
  height: auto;
}

.topbar-after {
  padding-top: 150px;
}

.top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  border-top: 1px solid #ddd;
}
.bottom-navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/* Стили для карусели (оставляем ваши) */
.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  margin-bottom: 30px;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
}

.carousel-nav:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: #359CF1;
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: #359CF1;
  border-color: #359CF1;
}

.main-content {
  max-width: 1000px;
  margin: 70px 0 0 100px;
  position: relative;
}

.screenshot-carousel {
  width: 100%;
  height: 805px;
  position: relative;
  margin-bottom: 28px;
}

.description {
  /* height: 500px; */
  color: #1E1E21;
  font-size: 18px;
  font-family: PT Root UI;
  font-weight: 400;
  line-height: 25.20px;
  margin-bottom: 30px;
  word-wrap: break-word;
}

.homepage {
  height: 48px;
  color: #1E1E21;
  font-size: 18px;
  font-family: PT Root UI;
  font-weight: 400;
  line-height: 25.20px;
  word-wrap: break-word;
  margin-bottom: 30px;
}

.install-button {
  padding: 8px 16px 8px 16px;
  background: #3989f4;
  border-radius: 20px;
  display: inline-block;
  margin: 20px 0;
}

.install-button a {
  color: rgba(255, 255, 255, 0.90);
  font-size: 24px;
  font-family: PT Root UI VF;
  font-weight: 500;
  text-decoration: none;
}

.app-page {
  /* width: 1920px; */
  background: white;
  position: relative;
  /* min-height: 1957px; */
}

.header {
  width: 100%;
  height: 80px;
  background: #F8F9FA;
  position: relative;
}

.app-header-flex {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 80px 0 0 100px;
}

.app-title-flex {
  color: #1E1E21;
  font-size: 28px;
  font-family: PT Root UI;
  font-weight: 500;
  line-height: 36.40px;
  margin: 0;
}

.app-icon-flex {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-icon-flex svg,
.app-icon-flex img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  flex-shrink: 0;
}

.app-category-flex {
  color: #1E1E21;
  font-size: 20px;
  font-family: PT Root UI;
  font-weight: 500;
  line-height: 26px;
  margin: 0;
}

.categories-container-wrapper {
  max-width: 1710px;
  width: 100%;
  position: relative;
}

.categories-row {
  width: 100%;
  max-width: 1710px; /* Ограничиваем ширину строки */
  margin-top: 10px;
}

/* Новые стили для категорий */
.categories-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.category-btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 10px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  background: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-bottom: 0;
  display: inline-block;
}

.category-btn:hover {
  border-color: #3989f4;
  background: #f8f9ff;
}

.category-btn.active {
  background: #3989f4;
  color: white;
  border-color: #3989f4;
}


.search-and-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 15px;
  margin-left: 98px;
}

.search-input {
  width: 400px;
  padding: 10px 10px;
  border: 2px solid #ddd;
  border-radius: 25px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  border-color: #3989f4;
}

.search-match {
  box-shadow: 0 0 0 3px #3989f4;
  border-radius: 5px;
  transition: box-shadow 0.3s ease;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1710px;
  width: 100%;
  position: relative;
}
.search-container {
  flex: 1;
  max-width: 400px;
}

.search-results {
  flex-shrink: 0;
  min-width: 120px;
  text-align: center;
  padding: 5px;
  color: #666;
  font-family: var(--font-family-pt-root-ui);
}

.highlight {
  background-color: yellow;
  transition: background-color 2s ease;
}

.more-btn {
  order: 9999;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 10px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-bottom: 0;
  color: #666;
}

.more-btn:hover {
  background: #e8e8e8;
  border-color: #d0d0d0;
  color: #333;
}

.app-block.hidden {
  opacity: 0;
  transform: scale(0.95);
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  display: none !important; /* убираем из потока */
  pointer-events: none;
}

/* Стили для переключателя языка */
.language-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  background: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: auto; /* Это прижмет кнопку вправо */
}

.language-switcher:hover {
  border-color: #3989f4;
  background: #f8f9ff;
  color: #3989f4;
}

.language-text {
  font-weight: 600;
}

.rectangle-4912-3 {
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: auto;
  background-color: rgba(217, 217, 217, 1);
}

.okular-1-9 {
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: auto;
  width: 100%;
  height: auto;
}

.2-8 {
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: auto;
}

.text-13 {
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: auto;
  font-family: var(--font-family-pt-root-ui);
  font-weight: 500;
  font-size: 28px;
  line-height: 129.99999523162842%;
  text-decoration: none;
  text-transform: none;
  color: var(--text-rgb-30-30-33);
}

.text-14 {
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: auto;
  font-family: var(--font-family-pt-root-ui);
  font-weight: 500;
  font-size: 20px;
  line-height: 129.99999523162842%;
  text-decoration: none;
  text-transform: none;
  color: var(--text-rgb-30-30-33);
}

.frame-2087325041-12 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 12px;
  padding: 0px;
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: auto;
}

.text-15 {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: auto;
  font-family: var(--font-family-pt-root-ui);
  font-weight: normal;
  font-size: 18px;
  line-height: 139.9999976158142%;
  text-decoration: none;
  text-transform: none;
  color: var(--text-rgb-30-30-33);
}

.text-25 {
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: auto;
  font-family: var(--font-family-pt-root-ui-vf);
  font-weight: normal;
  font-size: 16px;
  line-height: 120.00000476837158%;
  text-decoration: none;
  text-transform: none;
  color: var(--text-rgb-30-30-33);
}

.text-26 {
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: auto;
  font-family: var(--font-family-pt-root-ui-vf);
  font-weight: normal;
  font-size: 16px;
  line-height: 120.00000476837158%;
  text-decoration: none;
  text-transform: none;
  color: var(--text-rgb-30-30-33);
}

.text-27 {
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: auto;
  font-family: var(--font-family-pt-root-ui-vf);
  font-weight: normal;
  font-size: 16px;
  line-height: 120.00000476837158%;
  text-decoration: none;
  text-transform: none;
  color: var(--text-rgb-30-30-33);
}

.text-28 {
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: auto;
  font-family: var(--font-family-pt-root-ui-vf);
  font-weight: normal;
  font-size: 16px;
  line-height: 120.00000476837158%;
  text-decoration: none;
  text-transform: none;
  color: var(--text-rgb-30-30-33);
}

.text-29 {
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: auto;
  font-family: var(--font-family-pt-root-ui-vf);
  font-weight: normal;
  font-size: 16px;
  line-height: 120.00000476837158%;
  text-decoration: none;
  text-transform: none;
  color: var(--text-rgb-30-30-33);
}

.frame-2087325032-11 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px;
  padding: 0px;
  flex-grow: 0;
  flex-shrink: 1;
  width: 100%;
}

.text-17 {
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: auto;
  font-family: var(--font-family-pt-root-ui-vf);
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  text-decoration: none;
  text-transform: none;
  color: var(--text-rgb-57-136-255);
}

.rectangle-2852-20 {
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: auto;
  border: 1.2999999523162842px solid rgba(255, 255, 255, 1);
  border: none;
  outline: none;
}

.16-icons-down-19 {
  flex-grow: 0;
  flex-shrink: 1;
  width: 100%;
  border-radius: 66.66667175292969px;
}

.icon-buttons-18 {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 4px 2px 4px 2px;
  flex-grow: 0;
  flex-shrink: 1;
  width: 27px;
  background-color: #3989f4;
  border-radius: 50px;
}

.frame-2087325017-16 {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  padding: 0px;
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: auto;
}

.text-22 {
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: auto;
  font-family: var(--font-family-pt-root-ui-vf);
  font-weight: 500;
  font-size: 18px;
  text-decoration: none;
  text-transform: none;
  color: var(--text-white);
}

.frame-1-21 {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 16px 8px 16px;
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: auto;
  background-color: #3989f4;
  border-radius: 20px;
}

.frame-2087325032-10 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px;
  padding: 0px 32px 0px 32px;
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: auto;
  max-width: 800px; /* ширина как у картинки */
  word-wrap: break-word;
}

.frame-2087324919-7 {
@media (max-width: 1440px) {
  .frame-2087324919-7 {
    width: 47%;
    min-width: 280px;
  }
}

@media (max-width: 768px) {
  .frame-2087324919-7 {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
  }
}
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  padding: 0px 0px 32px 0px;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: auto;
  width: 30%;
  min-width: 280px;
  min-width: auto;
  height: 100%
}

.okular-6 {
@media (max-width: 1440px) {
  .okular-6 {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .okular-6 {
    gap: 20px;
  }
}
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0px;
  flex-grow: 0;
  flex-shrink: 1;
  /* width: 50%; */
  background-color: #f2f2f2;
  border-radius: 20px;
}

.frame-2087325035-5 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 40px;
  padding: 0px;
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: auto;
}

.group-2087324644-4 {
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: auto;
}

.desktop-1920-2 {
  flex-grow: 0;
  flex-shrink: 1;
  width: 100%;
}

.desktop-1921-1 {
@media (max-width: 1440px) {
  .desktop-1921-1 {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 768px) {
  .desktop-1921-1 {
    padding-left: 16px;
    padding-right: 16px;
  }
}
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: auto;
  background-color: rgba(255, 255, 255, 1);
}

.frame-1077245568-24 {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 28px;
  padding: 0px;
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: auto;
  margin-left: 108px;
}

.frame-2087325020-23 {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 138px;
  padding: 22px 0px 22px 0px;
  flex-grow: 0;
  flex-shrink: 1;
  width: 100%;
}

/* кнопка РОСА рекомендует*/
.recommend-button {
    background: none;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.recommend-button:hover {
    background: #f0f0f0;
}

.recommend-button.active {
    background: #e8f5e8;
}

.recommend-icon {
    width: 40px;
    height: 50px;
    object-fit: contain;
}

/* no results window */
.no-results {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    text-align: center;
    z-index: 10000;
    max-width: 400px;
    width: 90%;
    border: 1px solid #e0e0e0;
    animation: fadeIn 0.3s ease;
}

.no-results.hidden {
    display: none;
}

.no-results h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 20px;
    font-weight: 500;
}

.no-results p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.no-results ul {
    text-align: left;
    margin: 15px 0;
    padding-left: 20px;
}

.no-results li {
    margin: 8px 0;
    color: #666;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

/* Затемнение фона */
.no-results-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    animation: fadeInBackdrop 0.3s ease;
}

@keyframes fadeInBackdrop {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 80px;
  font-family: var(--font-family-pt-root-ui);
}

.after-header{
  margin-top: 120px;
}

.group-header {
  padding: 5px;
  padding-top: 40px;
  max-width: 1700px;
  margin: 0 0 0 108px;
}

.app-block {
  max-width: 810px;
  margin-left: 0 !important; /* Убираем фиксированный отступ */
  transition: all 0.3s ease;
  height: 100%
}


/* СТИЛИ ДЛЯ СЕТКИ */
.app-blocks-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  grid-auto-flow: dense;
  gap: 25px;
  max-width: 1720px;
  margin: 30px 0 40px 100px;
  padding-right: 20px;
  align-items: stretch;
}

/* Адаптивность сетки */
@media (max-width: 1200px) {
  .app-blocks-container {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }
}

@media (max-width: 768px) {
  .app-blocks-container {
    grid-template-columns: 1fr;
    margin: 30px 20px 40px 20px;
    padding-right: 0;
  }
}
