﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Базовые настройки */
body {
  font-family: 'GT Eesti Pro Display', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f2f8fc;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/*Настройка логотипа*/
.logo img {
  width: 64px;
  height: 64px;
  display: block;
  object-fit: contain;
  transition: transform 0.2s, box-shadow 0.2s;
}

.logo img:hover {
  transform: scale(1.04);
}

/* менюшка */
.nav-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #5494cf;
  width: 100%;
  padding: 0 3% 0 10%;
  position: sticky;
  top: 0;
  z-index: 1000;
  cursor: pointer;
}

.nav-menu .dropdown ul li a {
  display: block;
  font-family: 'GT Eesti Pro Display', sans-serif;
  color: #1A3055;
  text-decoration: none;
  font-size: calc(12px + (18+12)*((100vw-350px)/(1600-300)));
  padding: 5% 0 5% 10%;
  border-radius: 15px;
}

.nav-menu .dropdown ul li a:hover {
  background-color: #cde3f7;

}

.nav-menu .dropdown ul li ul {
  flex-direction: column;
  position: absolute;
  right: 0;
  width: 18rem;
  background-color: #e8f3fc;
  opacity: 0;
  border-radius: 15px;
  transition: 0.3s;
  margin-top: 45%;
  visibility: hidden;
}

/* Активное меню (открытое по клику) */
.nav-menu .dropdown ul li ul.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-menu .dropdown ul li {
  position: relative;
  list-style: none;
}



.nav-brand {
  gap: 10px;
  display: flex;
  align-items: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  margin-left: 4px;
  font-size: calc(20px + (35+20)*((100vw-350px)/(1600-300)));
}

.menu-item {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 16px;
  text-decoration: none;
  color: #f8f3e7;
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-name {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #f8f3e7;
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: bold;
  font-size: 28px;
  line-height: 1;
  white-space: nowrap;
}

.brand-subtitle {
  color: #f8f3e7;
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-size: 16px;
  font-weight: normal;
  line-height: 1;
  white-space: nowrap;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  margin-left: -4px;
  border: 0;
  border-radius: 50%;
  background-color: #858b94;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle::before {
  content: "☾";
  font-size: 18px;
  line-height: 1;
}

.theme-toggle:hover {
  background-color: #6e747c;
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 3px solid rgba(248, 243, 231, 0.85);
  outline-offset: 3px;
}

body.theme-dark {
  background-color: #121923;
  color: #e7edf5;
}

body.theme-dark .nav-menu,
body.theme-dark .site-footer {
  background-color: #243140;
}

body.theme-dark .nav-menu .dropdown ul li ul {
  background-color: #1b2430;
}

body.theme-dark .nav-menu .dropdown ul li a,
body.theme-dark .brand-name,
body.theme-dark .brand-subtitle,
body.theme-dark .menu-item,
body.theme-dark .mail,
body.theme-dark .footer-nav a,
body.theme-dark .footer-contact a,
body.theme-dark .footer-brand-block h3,
body.theme-dark .footer-brand-block p,
body.theme-dark .footer-bottom p,
body.theme-dark .fund-card-link,
body.theme-dark .zagolovok a,
body.theme-dark .funds-category-link,
body.theme-dark .tab-link,
body.theme-dark .fund-card p,
body.theme-dark .funds p {
  color: #e7edf5;
}

body.theme-dark .nav-menu .dropdown ul li a:hover {
  background-color: #334254;
}

body.theme-dark .funds-board,
body.theme-dark .fund-card,
body.theme-dark .container,
body.theme-dark .funds,
body.theme-dark .tab-content,
body.theme-dark .tab-nav,
body.theme-dark .mail {
  background-color: #1b2430;
}

body.theme-dark .funds-category-pill {
  background-color: #334254;
}

body.theme-dark .fund-card,
body.theme-dark .tab-content,
body.theme-dark .tab-nav,
body.theme-dark .fund-card p,
body.theme-dark .funds p {
  border-color: #3a4858;
}

body.theme-dark .back-to-top {
  background-color: #334254;
}

body.theme-dark .back-to-top:hover {
  background-color: #415164;
}

body.theme-dark .theme-toggle {
  background-color: #a0a6ae;
  color: #1b2430;
}

body.theme-dark .theme-toggle::before {
  content: "☀";
}

body.theme-dark iframe {
  filter: saturate(0.9) brightness(0.88);
}

/*блок фондов*/
.container {
  margin: 4%;
  padding: 1.5rem;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  background-color: #cde3f7;


}

/*блок фондов*/
.container {
  margin: 4%;
  padding: 1.5rem;
  border-radius: 20px;
  background-color: #cde3f7;

  text-align: center;
  line-height: 1.2;

}

.tab {
  display: flex;
}

.tab-content {
  display: none;
  background-color: #f2f8fc;
  width: 100%;
  border-radius: 20px;
  padding: 2%;

}

.tab-content:first-of-type {
  display: block;
}

.tab-content:target {
  display: block;
}

.tab:has(.tab-content:target) .tab-content:first-of-type {
  display: none;
}

#content-1:target {
  display: block;
}

.tab-nav {
  position: sticky;
  top: 10%;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  flex-wrap: wrap;
  order: -1;
  margin-right: 1rem;
  margin-bottom: 0.8rem;
  padding: 2%;
  background-color: #f2f8fc;
  border-radius: 20px;
  height: 100%;
}

.tab-nav a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
  transition: outline 0.2s ease;
  border-radius: 8px;
}

.tab-nav a:hover {
  background-color: #dee3f3;
  /* светло-синий фон */
}

.tab-link {
  display: block;
  padding: 0.5rem 1rem;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
  text-decoration: none;
  color: #547a8d;
  border: 0;
  border-radius: 0.375rem;
  background: 0 0;
}

.tab-nav .tab-link:first-child {
  color: #fff;
  background-color: #91bede;
}

.tab:has(.tab-content:target) .tab-nav .tab-link:first-child {
  color: #547a8d;
  background: transparent;
}

#content-1:target~.tab-nav>[href="#content-1"],
#content-2:target~.tab-nav>[href="#content-2"],
#content-3:target~.tab-nav>[href="#content-3"],
#content-4:target~.tab-nav>[href="#content-4"] {
  cursor: default;
  color: #fff;
  background-color: #91bede;
}

/*стили для блока с карточкой фонда на странице фонды*/
.funds {
  background-color: #eaf0f8;
  border-radius: 30px;
  padding: 20px;
  transition: all 0.2s ease;
  width: 100%;
  margin: 2%;
  margin-left: 0;
  margin-right: 0;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.funds:hover {
  transform: scale(1.04);
}




.zagolovok {
  display: flex;
  align-items: center;
  gap: 8px;
}

/*стили для изображения внутри заголовка карточки фонда на странице фонды*/
.zagolovok img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
}


.zagolovok a {
  color: #5495cf;
  font-family: 'GT Eesti Pro Display', sans-serif;
  font-weight: 600;
  font-size: 20pt;
  text-decoration: none;
  background: transparent;
  transition: opacity 0.2s;
}

/*эффект при наведении на ссылку внутри заголовка карточки фонда на странице фонды*/
.zagolovok a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/*стили для ссылок внутри заголовков карточек фондов на странице фонды, которые не являются ссылками*/
.zagolovok a:not([href]) {
  cursor: default;
}

/*эффект при наведении на ссылки внутри заголовков карточек фондов на странице фонды, которые не являются ссылками*/
.zagolovok a:not([href]):hover {
  opacity: 1;
  /* Убираем эффект при наведении */
  text-decoration: none;
  /* Убираем подчеркивание при наведении */
}

.funds p {
  margin-top: 8px;
  font-size: 14pt;
  color: #2c3e4e;
  line-height: 1.4;
  text-align: left;
  border-top: 1px dashed #bdd4e8;
  padding-top: 8px;
  margin-bottom: 4px;
  padding-bottom: 4%;
}

.btn {
  border-radius: 20px;
  background-color: #ff8d5c;
  text-decoration: none;
  min-width: 128px;
  min-height: 44px;
  padding: 12px 18px;
  position: absolute;
  bottom: 20px;
  right: 20px;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: #e07a4a;
}


.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background-color: #5494cf;
  color: transparent;
  text-decoration: none;
  border-radius: 50%;
  font-family: 'GT Eesti Pro Display', sans-serif;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  z-index: 1000;
}

.back-to-top::before,
.back-to-top::before {
  content: "";
  position: absolute;
  top: 18px;
  width: 14px;
  height: 14px;
  border-top: 10px solid #f8f3e7;
  border-left: 10px solid #f8f3e7;
  transform: rotate(45deg);
}

.back-to-top::after {
  content: "";
  position: absolute;
  top: 26px;
  width: 4px;
  height: 18px;
  background-color: #f8f3e7;
  border-radius: 999px;
}

.back-to-top:hover {
  background-color: #467fb2;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.back-to-top:focus-visible {
  outline: 3px solid #EAF0F8;
  outline-offset: 4px;
}

.site-footer {
  margin-top: 56px;
  padding: 32px 40px 24px;
  background-color: #5494cf;
  color: #f8f3e7;
  width: calc(100% + (var(--page-gutter) * 2));
  margin-left: calc(var(--page-gutter) * -1);
  margin-right: calc(var(--page-gutter) * -1);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-brand-block h3 {
  margin-bottom: 10px;
  font-size: 28px;
  line-height: 1;
}

.footer-brand-block p,
.footer-contact p,
.footer-bottom p {
  font-size: 16px;
  line-height: 1.6;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}

.footer-nav a,
.footer-contact a {
  color: #f8f3e7;
  text-decoration: none;
}

.footer-nav a {
  font-size: 17px;
  font-weight: 600;
  display: inline-block;
  transition: transform 0.2s ease;
}

.footer-nav a:hover {
  transform: scale(1.08);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(248, 243, 231, 0.28);
}

@media (max-width: 1200px) {
  .nav-menu {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .nav-brand,
  .nav-links,
  .mail {
    justify-content: center;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    padding: 18px;
  }

  .brand-name {
    font-size: 22px;
  }

  .brand-subtitle,
  .menu-item,
  .mail,
  .funds-category-link {
    font-size: 16px;
  }

  .fund-card-header {
    justify-content: center;
  }

  .back-to-top {
    right: 16px;
    width: 52px;
    height: 52px;
  }

  .back-to-top::before {
    top: 16px;
    width: 12px;
    height: 12px;
    border-top-width: 3px;
    border-left-width: 3px;
  }

  .back-to-top::after {
    top: 23px;
    width: 3px;
    height: 16px;
  }

  .site-footer {
    padding: 28px 20px 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 650px) {
  .funds-section-heading {
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 40px;
    padding: 24px;
  }

  .funds-section-heading h2 {
    white-space: normal;
  }

  .fund-card {
    width: 100%;
    text-align: center;
  }
}


.community-help-button {
  position: fixed;
  right: 32px;
  bottom: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background-color: #5494cf;
  color: transparent;
  text-decoration: none;
  border-radius: 50%;
  font-family: 'GT Eesti Pro Display', sans-serif;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  z-index: 1000;
}

.community-help-button::before {
  content: "!";
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  color: #f8f3e7;
  background: none;
  border-radius: 0;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  transform: translate(-50%, -54%);
}

.community-help-button::after {
  content: none;
}

.community-help-button:hover {
  background-color: #467fb2;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

dialog {
  margin: 4% auto 0;
  padding: 0;
 /*width: min(680px, calc(100% - 32px));
 max-width: 935px;
 max-height: auto;*/
width: min(92%, 58rem);
height:auto;
 /*min-width: 935px;
 min-height: 2228px;*/
 /*width: 45%;
 height: 45%;*/
  border: none;
  position: relative;
  background-color: #F9F8F5;
  outline: none;
  box-shadow: 0 28px 60px rgba(26, 48, 85, 0.2);
  /*overflow: hidden;*/
  max-height: none;      /* максимальная высота 85% от окна */
  overflow: auto; 
}

dialog::backdrop {
  background: rgba(26, 48, 85, 0.32);
  backdrop-filter: blur(4px);
}

.dialog-close {
  position: sticky;
  float: right;
  right: 18px;
  top: 18px;
  cursor: pointer;
  font-family: 'GT Eesti Pro Display', sans-serif;
  color: #1A3055;
  border: none;
  background: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(26, 48, 85, 0.12);
  z-index: 7;
 
}

.dialog-close:hover {
  background-color: #f8f3e7;
}

.dialog-close:focus-visible,
.community-help-button:focus-visible,
.upload-btn-pdf:focus-visible {
  outline: 3px solid #EAF0F8;
  outline-offset: 4px;
}

.Dowload
{

  width: 70%;
  height: auto;
  z-index: 8;
  
}


.upload-btn-pdf {
  position: sticky;
  float: left;
  top: 78px;
  left:92%;
  cursor: pointer;
  font-family: 'GT Eesti Pro Display', sans-serif;
  color: #1A3055;
  border: none;
  background: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(26, 48, 85, 0.12);
  z-index: 7;
}

.upload-btn-pdf:hover {
  background-color: #f8f3e7;
}




.pamyatka{ 
padding: 6% 4% 6.5%;
text-align: left;
position: relative;
 min-height: 400px;

}
.namePametki{
background-color: #C76300;
color: #FFFFFF;
text-align: center;
font-size: 36px;
font-family: 'Inter', serif;
border-radius: 30px;
width: 45%;
height: 45%;
padding-top: 3%;
padding-bottom: 3%;
}
.opisaniePametki{
position: absolute;
background-color: #E6A15C;
color: #FFFFFF;
text-align: center;
font-size: 26px;
font-family: 'Inter', serif;
border-radius: 30px;
width: 80%;
height: 19%;
max-width: 680px;
padding-top: 2.5%;
padding-bottom: 3%;
left: 15%;
top: 30%;

}
.liniya
{
position: absolute;
top: 52%;
width: 100%;
right: 0;
}
.blockStep1{
position: absolute;
background-color: #C76300;
color: #FFFFFF;
text-align: center;
font-size: 34px;
font-family: 'Inter', serif;
border-radius: 30px;
width: 22%;
height: 27%;
top: 65%;
padding-top: 4%;
padding-bottom: 3%;
z-index: 5;
}

.OpisanieStep1{
position: absolute;
background-color: #E6A15C;
opacity: 0.75;
color: #FFFFFF;
text-align: left;
padding-left: 9%;
font-size: 26px;
font-family: 'Inter', serif;
border-radius: 0 0 0 30px;
border-radius: 0 0 0 1.875rem;
width: 80%;
height: 22%;
max-width: 680px;
padding-top: 2.5%;
padding-bottom: 3%;
left: 20%;
top: 75%;
z-index: 4;
}

.blockStep2{

position: absolute;
background-color: #C76300;
color: #FFFFFF;
text-align: center;
font-size: 34px;
font-family: 'Inter', serif;
border-radius: 30px;
width: 22%;
height: 27%;
top: 105%;
right: 4%;
padding-top: 4%;
padding-bottom: 3%;
z-index: 5;

}

.OpisanieStep2{
position: absolute;
background-color: #E6A15C;
opacity: 0.75;
color: #FFFFFF;
text-align: left;
padding-left: 3%;
font-size: 26px;
font-family: 'Inter', serif;
border-radius: 0 0 30px 0;
width: 80%;
height: 22%;
max-width: 680px;
padding-top: 2.5%;
padding-bottom: 3%;
right:20%;
top: 115%;

z-index: 4;
}

.blockStep3{

position: absolute;
background-color: #C76300;
color: #FFFFFF;
text-align: center;
font-size: 34px;
font-family: 'Inter', serif;
border-radius: 30px;
width: 22%;
height: 27%;
top: 145%;
padding-top: 4%;
padding-bottom: 3%;
z-index: 5;

}

.OpisanieStep3{

position: absolute;
background-color: #E6A15C;
opacity: 0.75;
color: #FFFFFF;
text-align: left;
padding-left: 9%;
font-size: 26px;
font-family: 'Inter', serif;
border-radius: 0 0 0 30px;
width: 80%;
height: 22%;
max-width: 680px;
padding-top: 2.5%;
padding-bottom: 3%;
left: 20%;
top: 155%;

z-index: 4;
}

.blockStep4{

position: absolute;
background-color: #C76300;
color: #FFFFFF;
text-align: center;
font-size: 34px;
font-family: 'Inter', serif;
border-radius: 30px;
width: 22%;
height: 27%;
top: 185%;
right: 4%;
padding-top: 4%;
padding-bottom: 3%;
z-index: 5;

}

.OpisanieStep4{
position: absolute;
background-color: #E6A15C;
opacity: 0.75;
color: #FFFFFF;
text-align: left;
padding-left: 3%;
font-size: 26px;
font-family: 'Inter', serif;
border-radius: 0 0 30px 0;
width: 80%;
height: 22%;
max-width: 680px;
padding-top: 2.5%;
padding-bottom: 3%;
right:20%;
top: 195%;
z-index: 4;
}

.blockStep5{

position: absolute;
background-color: #C76300;
color: #FFFFFF;
text-align: center;
font-size: 34px;
font-family: 'Inter', serif;
border-radius: 30px;
width: 22%;
height: 27%;
top: 225%;
padding-top: 4%;
padding-bottom: 3%;

z-index: 5;

}

.OpisanieStep5{

position: absolute;
background-color: #E6A15C;
opacity: 0.75;
color: #FFFFFF;
text-align: left;
padding-left: 9%;
font-size: 26px;
font-family: 'Inter', serif;
border-radius: 0 0 0 30px;
width: 80%;
height: 22%;
max-width: 680px;
padding-top: 1%;
padding-bottom: 1%;
left: 20%;
top: 235%;
z-index: 4;
}

.liniya2
{
position: absolute;
top: 265%;
width: 100%;
right: 0;
}

.nameCignali{
position: absolute;
z-index: 5;
justify-content: space-between;
background-color: #C76300;
color: #FFFFFF;
text-align: center;
font-size: 34px;
font-family: 'Inter', serif;
border-radius: 30px;
width: 80%;
height: 40%;
top: 287%;
padding-top: 4%;
padding-bottom: 3%;
left:11%;
}

.opisanieCignali {
    position: absolute;
    background-color: #E6A15C;
    opacity: 0.75;
    border-radius: 30px 30px 0 0;
    width: 96%;
    top: 317%;
    padding: 25px 30px 30px 30px;
    right: 1.5%;
    box-sizing: border-box;
}

.opisanieCignali ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.colorpoint {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
}

.colorpoint::before {
    content: "●";
    color: #C76300;
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 5px;
}

.colorpoint span {
    font-family: 'Inter', serif;
    font-size: 32px;
    color: #FFFFFF;
    line-height: 1.4;
    flex: 1;
}

.colorpoint {
    position: relative;
    left: 0;
    margin-top: 3%;
}

.colorpoint span {
    position: static;
    top: 0;
    padding: 0;
}



.voskl{
position: absolute;
top: 292%;
right: 3%;;

z-index: 12;
}

.vosk2{
position: absolute;
top: 292%;
left: 5%;;

z-index: 12;
}



.btn {
  border-radius: 20px;
  background-color: #ff8d5c;
  text-decoration: none;
  min-width: 128px;
  min-height: 44px;
  padding: 12px 18px;
  position: absolute;
  bottom: 20px;
  right: 20px;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.2s;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  background-color: #e07a4a;
  transform: scale(1.04);
}

/*обложка-фонды*/
.paral {
  display: flex;
  gap: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  position: relative;
}

.card {
  flex: 1;
  position: relative;
  height: 700px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s ease;
  background: transparent;
}

/* Затемнение (без размытия) */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

/* Картинка карточки (скрыта) */
.card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease;
  filter: brightness(50%);
}

/* Контент */
.card__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 20px;
}

/* номер */
.card__content h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  font-size: 6rem;
  font-weight: 800;
  margin: 0;
  line-height: 1;
  color: white;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.5s ease;

}

/* сокрытие */
.card__subtitle,
.card__subtitle a {
  margin: 5px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  text-decoration: none;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.card__subtitle_1 {
  margin: 5px 0;
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

/* === АКТИВНОЕ СОСТОЯНИЕ КАРТОЧКИ === */
.card:is(.is-active, :hover, :focus, :focus-visible) {
  flex: 1.3;
}

.card:is(.is-active, :hover, :focus, :focus-visible)::before {
  opacity: 0;
}

.card:is(.is-active, :hover, :focus, :focus-visible) .card__img {
  opacity: 1;
}

.card:is(.is-active, :hover, :focus, :focus-visible) .card__content h1 {
  font-size: 4rem;
  transform: translateY(-30px);
}

.card:is(.is-active, :hover, :focus, :focus-visible) .card__subtitle {
  opacity: 1;
  transform: translateY(0);
}

.card:is(.is-active, :hover, :focus, :focus-visible) .card__subtitle_1 {
  opacity: 1;
  transform: translateY(0);
}

.card:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: -3px;
}

.card {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.card:last-child {
  border-right: none;
}

.paral_title {
  position: relative;
}

.overlay-title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 20px;
  background: linear-gradient(180deg, #2e2e30 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 10;
  pointer-events: none;
}

.overlay-title h2 {
  color: white;
  font-size: 4rem;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 900px) {
  .nav-menu {
    padding: 10px 12px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .nav-brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }

  .brand-text {
    min-width: 0;
    margin-left: 0;
  }

  .brand-name,
  .brand-subtitle {
    white-space: normal;
  }

  .brand-name {
    font-size: clamp(18px, 5vw, 24px);
  }

  .brand-subtitle {
    font-size: clamp(12px, 3vw, 14px);
  }

  .nav-menu .dropdown ul li ul {
    width: min(280px, calc(100vw - 24px));
    margin-top: 12px;
  }

  .tab {
    flex-direction: column;
    gap: 16px;
  }

  .tab-nav {
    position: static;
    order: -1;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    margin-right: 0;
    margin-bottom: 0;
    width: 100%;
    padding: 12px;
  }

  .tab-nav a {
    white-space: nowrap;
  }

  .overlay-title h2 {
    font-size: clamp(28px, 8vw, 44px);
  }

  .paral {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: auto;
  }

  .paral > .card {
    min-height: 260px;
    border-right: none;
  }

  .card::before {
    opacity: 0.52;
  }

  .card__img {
    opacity: 0.38;
    transform: scale(1.04);
    transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease;
  }

  .card__content {
    align-items: flex-start;
    justify-content: flex-end;
    text-align: left;
    padding: 18px;
    background: linear-gradient(180deg, rgba(16, 24, 34, 0.04) 0%, rgba(16, 24, 34, 0.82) 100%);
  }

  .card__content h1 {
    min-height: auto;
    font-size: clamp(2.2rem, 6vw, 3.2rem);
    margin-bottom: 0;
    transform: translateY(0);
  }

  .card__subtitle,
  .card__subtitle_1 {
    opacity: 0;
    transform: translateY(12px);
    text-align: left;
  }

  .card__subtitle_1 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
  }

  .card__subtitle {
    font-size: 0.98rem;
  }

  .card:is(.is-active, :hover, :focus, :focus-visible) {
    flex: 1;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(13, 21, 31, 0.24);
  }

  .card:is(.is-active, :hover, :focus, :focus-visible)::before {
    opacity: 0.18;
  }

  .card:is(.is-active, :hover, :focus, :focus-visible) .card__img {
    opacity: 1;
    transform: scale(1);
  }

  .card:is(.is-active, :hover, :focus, :focus-visible) .card__content h1 {
    font-size: clamp(2.2rem, 6vw, 3.2rem);
    transform: translateY(-10px);
  }

  .card:is(.is-active, :hover, :focus, :focus-visible) .card__subtitle,
  .card:is(.is-active, :hover, :focus, :focus-visible) .card__subtitle_1 {
    opacity: 1;
    transform: none;
  }

  .community-help-button,
  .back-to-top {
    right: 16px;
    width: 52px;
    height: 52px;
  }

  .back-to-top {
    bottom: 16px;
  }

  .community-help-button {
    bottom: 80px;
  }

  .community-help-button::before {
    font-size: 31px;
  }

  .pamyatka {
    min-height: auto;
    padding: 84px 20px 24px;
    display: grid;
    grid-template-columns: minmax(108px, 28%) minmax(0, 1fr);
    grid-template-areas:
      "title title"
      "intro intro"
      "step1 desc1"
      "desc2 step2"
      "step3 desc3"
      "desc4 step4"
      "step5 desc5"
      "signals signals"
      "alert alert";
    align-items: start;
    gap: 16px 14px;
  }

  .dialog-close,
  .upload-btn-pdf {
    position: absolute;
    top: 14px;
    float: none;
    width: 40px;
    height: 40px;
    z-index: 10;
  }

  .dialog-close {
    right: 14px;
  }

  .upload-btn-pdf {
    right: 62px;
    left: auto;
  }

  .namePametki,
  .opisaniePametki,
  .blockStep1,
  .OpisanieStep1,
  .blockStep2,
  .OpisanieStep2,
  .blockStep3,
  .OpisanieStep3,
  .blockStep4,
  .OpisanieStep4,
  .blockStep5,
  .OpisanieStep5,
  .nameCignali,
  .opisanieCignali {
    position: static;
    width: 100%;
    max-width: none;
    height: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    padding: 18px 16px;
    margin: 0;
    box-sizing: border-box;
  }

  .namePametki {
    grid-area: title;
    width: min(56%, 320px);
    justify-self: center;
  }

  .opisaniePametki {
    grid-area: intro;
    width: min(88%, 680px);
    justify-self: center;
  }

  .blockStep1 {
    grid-area: step1;
    width: min(100%, 9.5rem);
  }

  .OpisanieStep1 {
    grid-area: desc1;
    border-radius: 0 0 0 24px;
  }

  .blockStep2 {
    grid-area: step2;
    width: min(100%, 9.5rem);
    justify-self: center;
  }

  .OpisanieStep2 {
    grid-area: desc2;
    border-radius: 0 0 24px 0;
  }

  .blockStep3 {
    grid-area: step3;
    width: min(100%, 9.5rem);
  }

  .OpisanieStep3 {
    grid-area: desc3;
    border-radius: 0 0 0 24px;
  }

  .blockStep4 {
    grid-area: step4;
    width: min(100%, 9.5rem);
    justify-self: center;
  }

  .OpisanieStep4 {
    grid-area: desc4;
    border-radius: 0 0 24px 0;
  }

  .blockStep5 {
    grid-area: step5;
    width: min(100%, 9.5rem);
  }

  .OpisanieStep5 {
    grid-area: desc5;
    border-radius: 0 0 0 24px;
  }

  .nameCignali {
    grid-area: signals;
    width: min(88%, 760px);
    justify-self: center;
  }

  .opisanieCignali {
    grid-area: alert;
  }

  .namePametki,
  .blockStep1,
  .blockStep2,
  .blockStep3,
  .blockStep4,
  .blockStep5 {
    text-align: center;
    font-size: clamp(24px, 5vw, 34px);
    font-weight: 700;
    line-height: 1.15;
    border-radius: 24px;
  }

  .opisaniePametki {
    text-align: center;
    font-size: clamp(22px, 4.5vw, 30px);
    line-height: 1.35;
  }

  .OpisanieStep1,
  .OpisanieStep2,
  .OpisanieStep3,
  .OpisanieStep4,
  .OpisanieStep5,
  .opisanieCignali {
    font-size: clamp(20px, 4.2vw, 28px);
    line-height: 1.45;
    padding: 18px 18px 20px;
  }

  .nameCignali {
    text-align: center;
    font-size: clamp(22px, 4.6vw, 30px);
    line-height: 1.25;
    border-radius: 24px;
  }

  .OpisanieStep1,
  .OpisanieStep2,
  .OpisanieStep3,
  .OpisanieStep4,
  .OpisanieStep5,
  .opisanieCignali {
    opacity: 1;
  }

  .OpisanieStep1,
  .OpisanieStep3,
  .OpisanieStep5 {
    padding-left: 24px;
  }

  .OpisanieStep2,
  .OpisanieStep4 {
    padding-right: 24px;
  }

  .liniya,
  .liniya2,
  .voskl,
  .vosk2 {
    display: none;
  }

  .colorpoint {
    gap: 12px;
    margin-bottom: 12px;
  }

  .colorpoint span {
    font-size: clamp(18px, 3.5vw, 24px);
  }
}

@media (max-width: 600px) {
  .logo img {
    width: 52px;
    height: 52px;
  }

  .container {
    margin: 18px 10px;
    padding: 12px;
  }

  .tab-content,
  .tab-nav,
  .funds {
    padding: 16px;
  }

  .tab-nav {
    border-radius: 18px;
  }

  .tab-link {
    padding: 0.7rem 0.9rem;
  }

  .funds {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 14px;
    border-radius: 24px;
  }

  .funds:hover {
    transform: none;
  }

  .zagolovok {
    align-items: flex-start;
    gap: 12px;
  }

  .zagolovok img {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
  }

  .zagolovok a {
    min-height: 0;
    padding: 0;
    font-size: 1.45rem;
    line-height: 1.15;
    text-align: left;
  }

  .funds p {
    margin-top: 0;
    padding-top: 12px;
    padding-bottom: 0;
    font-size: 1rem;
    line-height: 1.55;
  }

  .btn {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 4px;
    padding: 12px 16px;
  }

  .paral {
    grid-template-columns: 1fr;
  }

  .paral > .card {
    min-height: 240px;
  }

  .paral > .card.is-active {
    min-height: 320px;
  }

  .overlay-title {
    padding: 14px 12px;
  }

  .overlay-title h2 {
    font-size: 28px;
  }

  dialog {
    width: calc(100% - 24px);
    margin-top: 12px;
    border-radius: 24px;
  }

  .dialog-close,
  .upload-btn-pdf {
    top: 12px;
    width: 38px;
    height: 38px;
  }

  .dialog-close {
    right: 12px;
    font-size: 24px;
  }

  .upload-btn-pdf {
    right: 56px;
  }

  .pamyatka {
    padding: 74px 14px 18px;
    grid-template-columns: minmax(92px, 31%) minmax(0, 1fr);
    gap: 12px 10px;
  }

  .community-help-button {
    right: 12px;
    bottom: 68px;
    width: 48px;
    height: 48px;
  }

  .community-help-button::before {
    font-size: 29px;
  }

  .namePametki,
  .opisaniePametki,
  .blockStep1,
  .OpisanieStep1,
  .blockStep2,
  .OpisanieStep2,
  .blockStep3,
  .OpisanieStep3,
  .blockStep4,
  .OpisanieStep4,
  .blockStep5,
  .OpisanieStep5,
  .nameCignali,
  .opisanieCignali {
    padding: 14px 12px;
    border-radius: 18px;
  }

  .namePametki {
    width: min(62%, 260px);
  }

  .opisaniePametki,
  .nameCignali {
    width: 100%;
  }

  .namePametki,
  .blockStep1,
  .blockStep2,
  .blockStep3,
  .blockStep4,
  .blockStep5 {
    font-size: clamp(20px, 7vw, 28px);
  }

  .opisaniePametki {
    font-size: clamp(18px, 6vw, 24px);
  }

  .OpisanieStep1,
  .OpisanieStep2,
  .OpisanieStep3,
  .OpisanieStep4,
  .OpisanieStep5 {
    font-size: clamp(16px, 5.4vw, 22px);
    line-height: 1.4;
  }

  .OpisanieStep1,
  .OpisanieStep3,
  .OpisanieStep5 {
    border-radius: 0 0 0 18px;
    padding-left: 16px;
  }

  .OpisanieStep2,
  .OpisanieStep4 {
    border-radius: 0 0 18px 0;
    padding-right: 16px;
  }

  .nameCignali {
    font-size: clamp(18px, 5.8vw, 24px);
  }

  .opisanieCignali {
    padding: 16px 14px 18px;
  }

  .back-to-top {
    right: 12px;
    bottom: 12px;
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    padding: 8px 10px;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-subtitle {
    font-size: 11px;
  }

  .overlay-title h2 {
    font-size: 24px;
  }

  .paral > .card {
    min-height: 220px;
  }

  .paral > .card.is-active {
    min-height: 290px;
  }

  .card__content {
    padding: 14px;
  }

  .card__subtitle_1 {
    font-size: 1.1rem;
  }

  .card__subtitle {
    font-size: 0.92rem;
  }

  .tab-nav {
    padding: 10px;
  }

  .tab-nav a {
    font-size: 15px;
  }

  .funds {
    padding: 14px;
  }

  .zagolovok {
    gap: 10px;
  }

  .zagolovok img {
    width: 50px;
    height: 50px;
  }

  .zagolovok a {
    font-size: 1.22rem;
  }

  .funds p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .btn {
    border-radius: 16px;
    font-size: 15px;
  }

  .community-help-button,
  .back-to-top {
    right: 8px;
    width: 44px;
    height: 44px;
  }

  .dialog-close,
  .upload-btn-pdf {
    width: 36px;
    height: 36px;
  }

  .dialog-close {
    right: 10px;
    font-size: 22px;
  }

  .upload-btn-pdf {
    right: 52px;
  }

  .pamyatka {
    padding: 70px 12px 16px;
    grid-template-columns: minmax(108px, 46%) minmax(0, 1fr);
    gap: 10px 8px;
  }

  .Dowload {
    width: 62%;
  }

  .namePametki,
  .blockStep1,
  .blockStep2,
  .blockStep3,
  .blockStep4,
  .blockStep5 {
    font-size: clamp(18px, 8vw, 24px);
  }

  .opisaniePametki {
    font-size: clamp(17px, 6.3vw, 22px);
  }

  .OpisanieStep1,
  .OpisanieStep2,
  .OpisanieStep3,
  .OpisanieStep4,
  .OpisanieStep5,
  .nameCignali {
    font-size: clamp(15px, 5.2vw, 20px);
  }

  .OpisanieStep1,
  .OpisanieStep3,
  .OpisanieStep5 {
    border-radius: 0 0 0 16px;
  }

  .OpisanieStep2,
  .OpisanieStep4 {
    border-radius: 0 0 16px 0;
  }

  .colorpoint {
    gap: 10px;
    margin-bottom: 10px;
  }

  .colorpoint::before {
    font-size: 18px;
    margin-top: 2px;
  }

  .colorpoint span {
    font-size: 15px;
    line-height: 1.45;
  }

  .community-help-button {
    bottom: 64px;
  }

  .back-to-top {
    bottom: 12px;
  }
}

@media (max-width: 375px) {
  .brand-name {
    font-size: 16px;
  }

  .brand-subtitle {
    font-size: 10px;
  }

  .tab-content,
  .tab-nav,
  .funds {
    padding: 12px;
  }

  .zagolovok a {
    font-size: 1.08rem;
  }

  .funds p {
    font-size: 0.9rem;
  }

  dialog {
    width: calc(100vw - 12px);
  }

  .dialog-close,
  .upload-btn-pdf {
    top: 10px;
    width: 34px;
    height: 34px;
  }

  .dialog-close {
    right: 8px;
    font-size: 20px;
  }

  .upload-btn-pdf {
    right: 46px;
  }

  .pamyatka {
    padding: 64px 10px 14px;
    grid-template-columns: minmax(100px, 48%) minmax(0, 1fr);
    gap: 8px 8px;
  }

  .namePametki,
  .opisaniePametki,
  .blockStep1,
  .OpisanieStep1,
  .blockStep2,
  .OpisanieStep2,
  .blockStep3,
  .OpisanieStep3,
  .blockStep4,
  .OpisanieStep4,
  .blockStep5,
  .OpisanieStep5,
  .nameCignali,
  .opisanieCignali {
    padding-left: 12px;
    padding-right: 12px;
  }

  .colorpoint span {
    font-size: 14px;
  }

  .namePametki {
    width: min(66%, 220px);
  }

  .btn {
    min-width: 112px;
    padding: 10px 14px;
    font-size: 14px;
  }
}