.hero {
  background: url("/assets/images/hero1.webp") 0 0 / cover no-repeat;
  margin: 0;
}

.hero__wrapper {
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

.hero__wrapper h1 {
  font-size: 44px;
  color: white;
}

.hero__wrapper p {
  margin: 20px 0;
  font-size: 18px;
  color: white;
}

.hero__wrapper .btn {
  width: fit-content;
}

/* .companies__list */
.companies h2 {
  font-size: 32px;
  text-align: left;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.companies h2 img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.companies form {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}

.form-element {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-element option:first-child {
  color: gray;
  display: none;
}

.form-element label {
  font-size: 12px;
}

.form-element select {
  padding: 0px 8px;
  height: 44px;
  border-radius: 10px;
}

.companies__filter {
  margin-bottom: 40px;
}

.companies__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* color: #898989 */

.PorovnanieFullLink {
  position: fixed;
  top: 80%;
  right: 10px;
  z-index: 2;
}

.PorovnanieFullLink a {
  width: 72px;
  height: 72px;
  background: #dcfeff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #049ca1;
}

.PorovnanieFullLink span {
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  background: red;
  font-size: 16px;
  font-weight: 700;
  color: white;
  border-radius: 100%;
}

.PorovnanieFullLink img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.companies__card {
  position: relative;
}

.companies__card-porovnanie {
  width: 36px;
  height: 36px;
  display: block;
  border: none;
  background: none;
  background: url("/assets/icons/compare-1.svg") center center / 90% 90% no-repeat;
  cursor: pointer;
  border: 1px solid black;
  border-radius: 100%;
  opacity: 0.7;
}

.companies__card-porovnanie.active {
  background: url("/assets/icons/compare-2.svg") center center / 90% 90% no-repeat;
  border: 1px solid #049ca1;
  opacity: 1;
}

.companies__card-link {
  display: flex;
  align-items: center;
  gap: 60px;
}

.companies__card-topimg {
  position: absolute;
  top: 10px;
  left: 10px;
  background: none !important;
}

.companies__card-item span {
  color: #4c4c4c;
  font-size: 18px;
}

.companies__card-item figure {
  color: black;
  font-size: 16px;
  margin-top: 10px;
}

.companies__card-item figure span {
  color: black;
  font-size: 24px;
}

.companies__card-item img {
  object-fit: contain;
  background: white;
}

.companies__list .companies__card {
  padding: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 1px 1px 4px gray;
  background: white;
}

.companies-filter-reset {
  background: none;
  color: black;
  text-decoration: underline;
  display: none;
  border: none;
  cursor: pointer;
  height: 44px;
}

@media all and (max-width: 1080px) {
  .companies h2 {
    flex-direction: column;
    text-align: center;
  }

  .companies h2 img {
    width: 100px;
    height: 100px;
    object-fit: contain;
  }

  .companies__list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .companies__card {
    flex-direction: column;
    max-width: calc(50% - 5px);
    width: 100%;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .companies__card-item {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .companies__card-info {
    width: 100%;
  }

  .companies__card-info span {
    display: block;
    width: 50%;
    font-size: 16px;
  }

  .companies__card-item figure {
    margin-top: 0;
    text-align: right;
    width: calc(50% - 10px);
  }

  .companies__card-item figure span {
    display: inline;
  }

  .companies__card-item figure span {
    font-size: 18px;
  }

  .companies__card-logo {
    margin-bottom: 20px;
  }

  .companies__card-link {
    margin-top: 0px;
    flex-direction: column;
  }

  .companies__card-porovnanie {
    margin-bottom: 10px;
  }
}

@media all and (max-width: 720px) {
  .companies__card {
    flex-direction: column;
    max-width: calc(100%);
    width: 100%;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .companies form {
    flex-direction: column;
    align-items: flex-start;
  }

  .companies h2 {
    font-size: 24px;
  }

  .form-element {
    width: 100%;
  }

  .form-element select {
    width: 100%;
  }

  .companies form .btn {
    margin: 0 auto;
  }

  .PorovnanieFullLink a {
    width: 48px;
    height: 48px;
    background: #dcfeff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #049ca1;
  }

  .PorovnanieFullLink span {
    position: absolute;
    bottom: 0;
    left: 0;
    display: block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    background: red;
    font-size: 12px;
    font-weight: 700;
    color: white;
    border-radius: 100%;
  }
}

.about__wrapper {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.about__wrapper img {
  width: 100%;
}

.about__card {
  max-width: 550px;
  width: 100%;
}

.about__wrapper h2 {
  font-weight: 700;
  font-size: 32px;
  margin-bottom: 20px;
  text-align: left;
}

.about__wrapper p {
  margin: 6px 0;
}

.about__wrapper h3 {
  margin-bottom: 8px;
  margin-top: 12px;
}

.about__wrapper ol,
.about__wrapper ul {
  padding-left: 20px;
}

.about__card-mobile {
  display: none;
}

@media all and (max-width: 720px) {
  .about__card-mobile {
    display: block;
    border-radius: 20px;
    box-shadow: 1px 1px 4px gray;
  }

  .about__card-pc {
    display: none;
  }
}

/* About */

.clanky__wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.clanky__wrapper details {
  background: #ffffff;
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.clanky__wrapper details:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.clanky__wrapper details[open] {
  border-color: #045c68;
  box-shadow: 0 4px 20px rgba(4, 92, 104, 0.15);
}

.clanky__wrapper details summary {
  background: linear-gradient(to right, #045c68, #22baac);
  color: white;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: all 0.3s ease;
  user-select: none;
}

.clanky__wrapper details summary:hover {
  background: linear-gradient(to right, #024f59, #0d998b);
}

.clanky__wrapper details[open] summary {
  background: linear-gradient(to right, #1092a3, #2dd6c5);
}

.clanky__wrapper details summary::-webkit-details-marker {
  display: none;
}

.clanky__wrapper details summary::marker {
  display: none;
}

.clanky__wrapper details summary::after {
  content: "+";
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  transition: transform 0.3s ease;
  width: 24px;
  height: 24px;
  align-items: center;
  display: flex;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.clanky__wrapper details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  border-color: rgba(255, 255, 255, 0.8);
}

.clanky__wrapper details summary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
  transition: left 0.5s ease;
}

.clanky__wrapper details summary:hover::before {
  left: 100%;
}

.clanky__details {
  padding: 30px 25px;
  background: #ffffff;
  border-top: 1px solid #f0f0f0;
}

.clanky__details nav ul {
  list-style: none;
}

.clanky__details nav ul li {
  margin-bottom: 12px;
}

.clanky__details nav ul li a {
  color: #495057;
  text-decoration: none;
  display: block;
  padding: 10px 15px;
  border-radius: 4px;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  font-size: 16px;
}

.clanky__details nav ul li a:hover {
  background-color: #e8f4f3;
  color: #045c68;
  border-left-color: #045c68;
}


@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.clanky__wrapper details .clanky__details {
  animation: slideDown 0.3s ease-out;
  transform-origin: top;
}

@media (max-width: 768px) {

  .clanky__wrapper details summary {
    padding: 16px 20px;
    font-size: 16px;
  }

  .clanky__wrapper details summary::after {
    right: 20px;
    font-size: 20px;
    width: 20px;
    height: 20px;
  }

  .clanky__details {
    padding: 25px 20px;
  }

  .clanky__details nav ul li a {
    font-size: 15px;
  }

  .alphabet-nav a {
    width: 35px;
    height: 35px;
    line-height: 35px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .clanky__wrapper details {
    margin-bottom: 15px;
    border-radius: 8px;
  }

  .clanky__wrapper details summary {
    padding: 14px 16px;
    font-size: 15px;
  }

  .clanky__wrapper details summary::after {
    right: 16px;
  }

  .clanky__details {
    padding: 20px 16px;
  }

  .clanky__details nav ul li a {
    font-size: 14px;
  }
}

@media (hover: hover) {
  .clanky__wrapper details summary {
    position: relative;
    overflow: hidden;
  }
}

.clanky__wrapper details summary:focus {
  outline: 2px solid #045c68;
  outline-offset: 2px;
}

.clanky__wrapper details summary:focus-visible {
  outline: 2px solid #045c68;
  outline-offset: 2px;
}

.policy__wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* background: red; */
}

.policy__details {
  padding: 10px;
}

.policy__details p {
  margin: 6px 0;
  line-height: 20px;
}

.policy summary {
  background: #00676a;
  padding: 10px;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.policy__date {
  margin-top: 20px;
}

.footer__bottom {
  padding: 30px 0 0 0;
  display: flex;
}

.blogSwiper .swiper-button-prev {
  left: 30%;
  bottom: -10px;
  top: auto;
}

.blogSwiper .swiper-button-next {
  right: 30%;
  bottom: -10px;
  top: auto;
}

.blogSwiper .swiper-button-prev::after {
  content: "";
  display: block;
  width: 26px;
  height: 22px;
  background: url("/assets/icons/arrow-back.svg") center center / cover no-repeat;
}

.blogSwiper .swiper-button-next::after {
  content: "";
  display: block;
  width: 26px;
  height: 22px;
  background: url("/assets/icons/arrow-next.svg") center center / cover no-repeat;
}

.blogSwiper .swiper-pagination-bullet-active {
  background: #049ca1;
}

.dictionary-links h2 {
  text-align: center;
  color: #002e30;
  margin-bottom: 10px;
  /* уменьшили отступ */
  font-size: 2em;
  border-bottom: 3px solid #00676a;
  padding-bottom: 15px;
}

/* Подзаголовок */
.dictionary-links__subtitle {
  text-align: center;
  color: #666;
  font-size: 1.1em;
  margin-bottom: 30px;
  font-style: italic;
}

/* Теперь grid применяется к каждому ul отдельно */
.dictionary-links ul.dictionary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 30px;
  list-style: none;
  padding: 0;
}

/* Заголовки h3 */
.dictionary-links h3 {
  color: #002e30;
  font-size: 1.4em;
  margin-top: 40px;
  margin-bottom: 0;
  padding-left: 20px;
  border-left: 4px solid #00676a;
  margin-bottom: 15px;
}

/* Первый h3 без верхнего отступа */
.dictionary-links h3:first-of-type {
  margin-top: 20px;
}

/* Скрытые заголовки */
.dictionary-links h3.hidden {
  display: none;
}

.dictionary-links li {
  margin: 0;
}

.dictionary-links li.hidden {
  display: none;
}

.dictionary-links li a {
  display: block;
  padding: 12px 18px;
  background: white;
  color: #34495e;
  text-decoration: none;
  border-radius: 8px;
  border-left: 4px solid #00676a;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-size: 0.95em;
}

.dictionary-links li a:hover {
  background: #049ca1;
  color: white;
  transform: translateX(5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.dictionary-links .show-more-btn {
  display: block;
  margin: 40px auto 0;
  padding: 15px 30px;
  background: #00676a;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dictionary-links .show-more-btn:hover {
  background: #002e30;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.dictionary-links .show-more-btn.hidden {
  display: none;
}

/* Адаптивность */
@media (max-width: 768px) {
  .dictionary-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dictionary-links {
    padding: 0;
  }

  .dictionary-links h2 {
    font-size: 1.5em;
  }
}