* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  box-sizing: border-box;
}
@font-face {
  font-family: "Montserrat";
  src: url("../static/fonts/Montserrat-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
a {
  text-decoration: none;
  color: inherit;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  max-width: 80vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modal-content span {
  width: 5vw;
  height: 5vw;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
}

.modal-content img {
  max-width: 80vw;
  max-height: 70vh;
  border-radius: 1vw;
}

.modal-close {
  position: absolute;
  top: -4vw;
  right: -4vw;
  font-size: 3vw;
  color: white;
  cursor: pointer;
}

.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2vw;
  color: white;
  cursor: pointer;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10vw;
  /* padding: 1vw; */
  /* border-radius: 50%; */
}

.modal-prev {
  left: -5vw;
}
.modal-next {
  right: -5vw;
}

.leaflet_map {
  height: 20vw;
  border-radius: 1vw;
}
.leaflet_map_small {
  font-size: 0.7vw;
  color: black;
  opacity: 0.8;
}

/*#region Alert*/
.custom-alert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;
  z-index: 9999;
}

.custom-alert.show {
  opacity: 1;
  pointer-events: auto;
}

.custom-alert-content {
  background: #fff;
  border-radius: 1vw;
  padding: 2vw 3vw;
  max-width: 40vw;
  width: 80vw;
  box-shadow: 0 0.5vw 2vw rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: scaleIn 0.3s ease forwards;
}

.custom-alert-content h3 {
  font-size: 2vw;
  margin-bottom: 1vw;
  color: #0f2c60;
}

.custom-alert-content p {
  font-size: 1.5vw;
  color: #333;
  margin-bottom: 2vw;
}

#custom-alert-btn {
  padding: 1vw 3vw;
  background: #0f2c60;
  color: #fff;
  border: none;
  border-radius: 0.5vw;
  font-size: 1.2vw;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

#custom-alert-btn:hover {
  background: #123b85;
}

.custom-alert-content button {
  padding: 1vw 3vw;
  background: #0f2c60;
  color: #fff;
  border: none;
  border-radius: 0.5vw;
  font-size: 1.2vw;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}
.custom-alert-content button:hover {
  background: #123b85;
}
@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/*#endregion*/

/*#region Header*/
.header {
  width: 100%;
  /* background-color: rgb(255, 255, 255); */
  height: 7vw;
  display: flex;
  justify-content: space-around;
  align-items: center;
  /* border-radius: 0 0 1.4vw 1.4vw; */
  position: absolute;
}
.header_blue {
  background-color: #fafafa;
}
.header__logo-title {
  color: aliceblue;
  display: flex;
  align-items: center;
  gap: 1vw;
  font-size: 1.4vw;
}
.header_blue .header__logo-title {
  color: #628abe;
}
.header__logo-img {
  width: 4.5vw;
  height: 4.5vw;
}
.header_blue .header__logo-img {
  height: auto;
}
.header__nav {
  height: 3.7vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 1.2vw;
  background-color: rgba(151, 151, 151, 0.163);
  border: 0.12vw solid rgba(255, 255, 255, 0.767);
  gap: 2.4vw;
  border-radius: 1.4vw;
}
.header__nav a.active {
  color: #2c7be5;
  font-weight: bold;
  position: relative;
}

.header__nav a.active:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #0f2c60;
}
.header_blue .header__nav {
  background-color: rgba(0, 0, 0, 0);
  border: 0.12vw solid #a0a0a2;
}
.header__nav a {
  color: aliceblue;
  text-decoration: none;
  font-size: 1.2vw;
}
.header_blue .header__nav a {
  color: #a0a0a2;
}
.header__admin-button {
  width: 10vw;
  height: 3.7vw;
  background-color: #d3d3d3;
  color: rgb(43, 43, 43);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3vw;
  font-size: 1vw;
  cursor: pointer;
}
.header_blue .header__admin-button {
  color: #fafafa;
  background-color: #628abe;
}
.header__user-menu {
  display: flex;
  align-items: center;
  gap: 1vw;
}
.header__user-menu a {
  display: flex;
  align-items: center;
  gap: 1vw;
  font-size: 1.2vw;
  color: #a0a0a2;
  font-weight: 600;
}
.header__post-button {
  width: 14vw;
  height: 3.7vw;
  background-color: transparent; /* прозрачный фон */
  border: 0.1vw solid #fff; /* белая обводка */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff; /* белый текст вместо темного */
  text-decoration: none;
  font-size: 1.15vw;
  font-weight: 600;
  border-radius: 1.4vw;
  box-shadow: 0.3vw 0.3vw 0.2vw rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease; /* плавные переходы */
  padding: 0 0.5vw;
  box-sizing: border-box;
}

/* Красивый hover-эффект */
.header__post-button:hover {
  background-color: rgba(255, 255, 255, 0.2); /* полупрозрачный белый */
  transform: translateY(-2px); /* легкое поднятие */
  box-shadow: 0.5vw 0.5vw 0.4vw rgba(0, 0, 0, 0.2); /* усиленная тень */
  color: #fff; /* сохраняем белый текст */
}
.header_blue .header__post-button {
  background-color: #0f2c60;
  color: #fafafa;
  border: none;
}
.header__favourited-button {
  display: flex;
  justify-content: center;
  align-items: center;
}
.header__favourited-button img {
  width: 2vw;
  height: 2vw;
  margin: 0;
  padding: 0;
  opacity: 0.7;
}
.header__user-avatar {
  width: 3.5vw;
  height: 3.5vw;
  border-radius: 100vw;
  object-fit: cover;
}
/*#endregion*/

/*#region BottomLink */
.bottom-nav {
  display: none;
}
/*#endregion */

/*#region profileControlRightPanel */
.P-Right {
  position: sticky;
  top: 0;
  width: 20%;
  background-color: #fafafa;
  padding: 1.5vw;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1vw;
  width: 20%;
  height: 100vh;
  /* background-color: white; */
  /* margin-top: 7vw;  */
}
.P-R-a {
  width: 100%;
  color: black;
  font-size: 0.9vw;
  font-weight: 800;
  padding: 0.8vw 1vw;
  border-radius: 1vw;
}
.P-R-a_active {
  background-color: #d9d9d9;
  box-shadow: 0.3vw 0.3vw 0.6vw rgba(0, 0, 0, 0.473);
}
.PL-Left {
  width: 90vw;
  margin-top: 3vw;
  margin-bottom: 3vw;
  margin-left: 7vw;
  margin-right: 7vw;
  border-radius: 1vw;
  display: flex;
  flex-direction: column;
  gap: 1vw;
  overflow: auto;
  flex: 1;
}
/*#endregion */

/*#region WelcomePage*/
.WelcomePage {
  background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.767) 0%,
      rgba(0, 0, 0, 0.13) 80%,
      rgba(0, 0, 0, 0) 100%
    ),
    url(./images/background.png);
  background-size: 100vw;
  background-position: 0 -10vw;
  background-repeat: no-repeat;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  padding: 0 8vw;
  box-sizing: border-box;
  gap: 2vw;
}
.WP-h1 {
  font-size: 5vw;
  color: aliceblue;
  font-weight: 700;
  text-shadow: 0.2vw 0.2vw 1vw rgb(0, 0, 0);
}
.WP-p {
  font-size: 1.6vw;
  color: aliceblue;
  text-shadow: 0.2vw 0.2vw 0.5vw rgb(0, 0, 0);
}
.WelcomePage_B_button {
  width: 20vw;
  height: 3vw;
  border-radius: 10vw;
  background-color: rgba(0, 0, 0, 0.182);
  border: 0.1vw solid rgba(255, 255, 255, 0.767);
  color: aliceblue;
  font-size: 1vw;
  display: flex;
  justify-content: center;
  align-items: center;
}
.WelcomePage_B_button:nth-child(1) {
  background-color: #071836;
  color: rgb(226, 226, 226);
  font-weight: bold;
}
.WP-Buttons {
  display: flex;
  gap: 2vw;
  margin-top: 2vw;
}
.WP-Button {
  padding: 1vw 4vw;
  border: 2px solid #fff;
  border-radius: 0.5vw;
  font-size: 1.2vw;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.WP-Button.primary {
  background: #071836;
  color: #fff;
}
.WP-Button.secondary {
  background: transparent;
  color: #fff;
}
.WP-Button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.WP-Button.primary:hover {
  background: #333;
  border-color: #333;
}
.WP-Button.secondary:hover {
  background: #333;
}
/*#endregion*/

/*#region Publications*/
.Publications {
  width: 100%;
  /* height: 80vw; */
  min-height: 100vh;
  background-color: #d9d9d9;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 7vw;
  padding-bottom: 3vw;
  gap: 2vw;
}
.P-Filters-Container {
  width: 100%;
  padding: 3.5vw 0;
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url("../static/images/НайдитеСвойИдеальныйДом.png");
  background-position: bottom;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5vw;
}
.P-F-C-h1 {
  color: #fafafa;
  font-size: 3vw;
}
.P-F-C-p {
  color: #fafafa;
  font-size: 1.2vw;
  text-align: center;
}
.P-Filters {
  width: 90vw;
  background: #0f2c60;
  border: 0.08vw solid #2c2f33;
  padding: 1.5vw;
  box-sizing: border-box;
  border-radius: 0.8vw;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 1vw;
  box-shadow: 0 0.3vw 0.9vw rgba(0, 0, 0, 0.5);
  margin: 0 auto;
  color: #e2e8f0;
  position: relative;
}
#filterForm {
  display: flex;
  flex-direction: column;
  gap: 1vw;
}
.P-F-Row {
  display: flex;
  align-items: center;
  gap: 1vw;
  flex-wrap: wrap;
}
.P-F-Row select,
.P-F-Row input[type="text"],
.P-F-Row input[type="number"] {
  flex: 1 1 15vw;
  min-width: 13vw;
  height: 2.5vw;
  padding: 0 0.8vw;
  font-size: 0.8vw;
  border-radius: 0.6vw;
  border: 0.08vw solid #3c4043;
  background: #d9d9d9;
  color: #808080;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.P-F-Row select:focus,
.P-F-Row input[type="text"]:focus,
.P-F-Row input[type="number"]:focus {
  outline: none;
  border-color: #3ea6ff;
  box-shadow: 0 0 0 0.15vw rgba(62, 166, 255, 0.3);
}
.P-F-R-Span {
  display: flex;
  align-items: center;
  gap: 0.2vw;
  color: #cbd5e0;
  font-size: 0.9vw;
  font-weight: 500;
  white-space: nowrap;
}
.P-F-Buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1vw;
  position: absolute;
  bottom: 1.5vw;
  right: 1.5vw;
}
.P-F-R-Find {
  background: #d9d9d9;
  color: #0f2c60;
  border: none;
  padding: 0 1.5vw;
  height: 2.5vw;
  border-radius: 0.6vw;
  font-size: 0.9vw;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.P-F-R-Find:hover {
  background: linear-gradient(to right, #66c4ff, #3ea6ff);
  transform: translateY(-0.1vw);
  box-shadow: 0 0.3vw 0.6vw rgba(62, 166, 255, 0.4);
}
.P-F-R-Map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #00000000;
  color: #e2e8f0;
  border: 0.08vw solid #fafafa;
  padding: 0 1.5vw;
  height: 2.5vw;
  border-radius: 0.6vw;
  font-size: 0.9vw;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.P-F-R-Map:hover {
  background: #3c4043;
  border-color: #4a4e52;
}
.P-F-Checkboxes {
  display: flex;
  gap: 1vw;
  flex-wrap: wrap;
}
.P-F-Checkboxes label {
  display: flex;
  align-items: center;
  gap: 0.6vw;
  cursor: pointer;
  font-size: 0.8vw;
  color: #d9d9d9;
  user-select: none;
  padding: 0.4vw 0.8vw;
  border-radius: 2vw;
  /* background: #2a2d31; */
  transition: all 0.2s ease;
}
.P-F-Checkboxes input[type="checkbox"] {
  width: 1vw;
  height: 1vw;
  cursor: pointer;
  accent-color: #a2a2a2;
  /* border: none; */
}
/* 

 */
.P-AboutUs {
  width: 95vw;
  /* height: 10vw; */
  display: flex;
  flex-direction: column;
  /* align-items: center;
  justify-content: center; */
  /* gap: 1vw; */
  padding: 1.5vw;
  box-sizing: border-box;
  background-color: #fafafa;
  border-radius: 1vw;
}
.P-AU-h1 {
  font-size: 1.5vw;
  color: #071836;
}
.P-AU-CardsContainer {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1.5vw;
}
.P-AU-CardsContainer img {
  width: 20vw;
}

/* 

 */

.P-Cards {
  width: 95vw;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1vw;
  padding: 1vw;
  box-sizing: border-box;
  border: 0.2vw solid #0f2c60;
  border-radius: 1vw;
  position: relative;
}
.P-C-h2 {
  background-color: #d9d9d9;
  /* width: 100%; */
  color: #071836;
  text-align: left;
  font-size: 1.5vw;
  padding: 0 1vw;
  position: absolute;
  top: -1.1vw;
  left: 1vw;
}
.P-C-CardsContainer {
  width: 100%;
  /* height: 20vw; */
  background-color: #fafafa;
  display: flex;
  align-items: start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 1vw;
  border: 1.5vw solid #fafafa;
  box-sizing: border-box;
  box-shadow: 0 0.5vw 1vw rgba(0, 0, 0, 0.2);
  border-radius: 1vw;
  overflow-x: auto;
  overflow-y: hidden;
}
.P-C-CardsContainer h1 {
  color: #4b4b4b;
  font-size: 1.5vw;
  opacity: 0.8;
}
.P-C-CardsContainer::-webkit-scrollbar {
  height: 0.4vw;
}
.P-C-CardsContainer::-webkit-scrollbar-track {
  background: #252525;
  border-radius: 0.4vw;
}
.P-C-CardsContainer::-webkit-scrollbar-thumb {
  /* height: 1vw; */
  background: #999999;
  border-radius: 0.4vw;
}
.P-C-CardsContainer::-webkit-scrollbar-thumb:hover {
  background: #e0e0e0;
}
.P-C-CC-OneMoreContainer {
  display: flex;
  gap: 1vw;
}
.P-C-CC-Card {
  width: 16vw;
  flex: 0 0 auto;
  border-radius: 0.5vw;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.5vw;
  justify-content: space-between;
  color: #4b4b4b;
}
.P-C-CC-C-Video {
  width: 100%;
  border-radius: 0.5vw;
}
.P-C-CC-C-h3 {
  font-size: 1vw;
  color: #4b4b4b;
}
.P-C-CC-C-Location {
  font-size: 0.8vw;
  color: #4b4b4b;
}
.P-C-CC-Card img {
  width: 100%;
  height: 10vw;
  border-radius: 0.5vw;
  object-fit: cover;
}
.P-C-CC-C-Button {
  width: 100%;
  height: 2vw;
  background-color: #0f2c60;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8vw;
  font-weight: 700;
  border-radius: 0.5vw;
  color: aliceblue;
}
.P-Contact {
  width: 95vw;
  display: flex;
  background-color: #fafafa;
  flex-direction: column;
  flex-wrap: wrap;
  /* align-items: center; */
  justify-content: center;
  gap: 1vw;
  padding: 2vw;
  box-sizing: border-box;
  /* border: 0.2vw solid #0f2c60; */
  border-radius: 1vw;
  position: relative;
}
.P-Contact h1 {
  font-size: 1.2vw;
  color: #071836;
  font-weight: 600;
}
.P-C-Form {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1vw;
}
.P-C-Form input {
  width: 30%;
  height: 3vw;
  padding: 0 1vw;
  box-sizing: border-box;
  border-radius: 1vw;
  background: transparent;
  border: 0.15vw solid #a2a2a2;
  font-size: 1vw;
}
.P-C-Form button {
  width: 30%;
  height: 3vw;
  border: 0;
  border-radius: 1vw;
  font-size: 1vw;
  background-color: #0f2c60;
  cursor: pointer;
  color: #fafafa;
}
.P-C-Services {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1.5vw;
}
.P-C-Services button {
  border: 0;
  background: transparent;
  cursor: pointer;
}
.P-C-Services button img {
  width: 3vw;
}
/*#endregion*/

/*#region Authorization*/
.Registration {
  width: 100%;
  min-height: 100vh;
  /* height: 100vh; */
  padding-bottom: 3vw;
  display: flex;
  flex-direction: column;
  gap: 1vw;
  justify-content: center;
  align-items: center;
  background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.6) 80%,
      rgba(0, 0, 0, 0.6) 100%
    ),
    url(./images/background.png);
  background-size: cover;
  background-position: 100% 50%;
  color: aliceblue;
  padding-top: 7vw;
}
.R-h1 {
  font-size: 2.5vw;
  /* margin-bottom: 1.5vw; */
  text-align: center;
}
.Registration form {
  padding: 2vw;
  box-sizing: border-box;
  border-radius: 1vw;
  box-shadow: 0 0.5vw 1vw rgba(0, 0, 0, 0.2);
  border: 0.15vw solid #fafafa;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.2vw;
}
.R-Input {
  width: 25vw;
  height: 3vw;
  padding: 0.5vw;
  font-size: 1vw;
  border-radius: 1vw;
  border: none;
  /* margin-bottom: 1vw; */
  background: transparent;
  border: 0.1vw solid #fafafa;
  color: #fafafa;
}
.R-Button {
  width: 20vw;
  height: 3vw;
  background-color: #0f2c60;
  color: #fafafa;
  border: none;
  border-radius: 0.8vw;
  font-size: 1.1vw;
  font-weight: bold;
  cursor: pointer;
}
.R-span {
  display: flex;
  gap: 1vw;
}
.file-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1vw;
}
.file-upload h1 {
  font-size: 1.2vw;
}
.file-upload p {
  max-width: 70%;
  font-size: 0.9vw;
  color: #a2a2a2;
  margin-bottom: 0.5vw;
  text-align: center;
  opacity: 0.85;
}
.file-upload input[type="file"] {
  display: none; /* Скрываем стандартный input */
}
.file-upload label {
  display: inline-flex;
  align-items: center;
  gap: 1vw;
  padding: 0.5vw 1vw;
  border: 0.12vw solid #fafafa;
  border-radius: 0.5vw;
  font-size: 1vw;
  background: transparent;
  color: #fafafa;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload label:hover {
  background: #fafafa;
  color: BLACK;
}

.file-upload .icon {
  font-size: 1.7vw;
}
.R-a {
  font-size: 1.2vw;
  /* margin-top: 1vw; */
}
.R-a a {
  color: #fafafa;
  text-decoration: underline;
}
.role-selector {
  padding: 1.5vw;
  border-radius: 1vw;
  border: 0.15vw solid #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5vw;
}
.role-selector-span {
  display: flex;
  gap: 1.5vw;
}
.role-btn {
  width: 18vw;
  height: 28vw;
  border-radius: 1vw;
  background: transparent;
  border: 0.15vw solid #fafafa;
  color: #fafafa;
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  align-items: center;
  gap: 1.1vw;
  padding: 0 1vw;
  box-sizing: border-box;
}
.role-btn img {
  width: 8vw;
  /* height: 10vw; */
  border-radius: 1vw;
}
.role-btn h1 {
  font-size: 1.3vw;
}
.role-btn p {
  font-size: 0.8vw;
  height: 13%;
}
.role-btn li {
  text-align: start;
  list-style: none;
  font-size: 0.89vw;
}
.role-btn ul {
  display: flex;
  flex-direction: column;
  gap: 0.5vw;
}
/*#endregion*/

/*#region Profile*/
.Profile {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: start;
  padding-top: 7vw;
  box-sizing: border-box;
  background-color: #d9d9d9;
  color: aliceblue;
  align-items: stretch;
}
.P-C-Title {
  font-size: 1.5vw;
  color: #4b4b4b;
  width: 90vw;
}
.P-C-hr {
  width: 80%;
  height: 0.1vw;
  background-color: #666666;
  margin: 0 auto;
  margin-top: 1.5vw;
  margin-bottom: 1.5vw;
}
.P-C-InfoRow {
  display: flex;
  gap: 3vw;
  align-items: flex-start;
  background-color: #fafafa;
  flex-wrap: wrap;
  padding: 1.5vw;
  box-sizing: border-box;
  border-radius: 1vw;
}
.P-C-Avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8vw;
}
.P-C-Avatar img {
  width: 12vw;
  height: 12vw;
  object-fit: cover;
  border-radius: 50%;
  border: 0.3vw solid #666666;
}
.P-C-Avatar input[type="file"] {
  background-color: #555555;
  color: white;
  border: none;
  border-radius: 0.3vw;
  padding: 0.5vw;
  font-size: 0.8vw;
  cursor: pointer;
}
.P-C-Avatar input[type="file"]::file-selector-button {
  background-color: #666666;
  color: white;
  border: none;
  border-radius: 0.3vw;
  padding: 0.4vw 0.8vw;
  font-size: 0.8vw;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.P-C-Avatar input[type="file"]::file-selector-button:hover {
  background-color: #888888;
}
.P-C-pTitle {
  color: #4b4b4b;
  font-size: 1.5vw;
  font-weight: 740;
  width: 100%;
}
.P-C-p {
  color: #4b4b4b;
  font-size: 1vw;
  font-weight: 500;
  width: 100%;
}
.P-C-AvatarInfo {
  display: flex;
  gap: 1.2vw;
}
.P-C-AvatarInfo form {
  display: flex;
  flex-direction: column;
  gap: 0.4vw;
  justify-content: center;
  height: 100%;
}
.P-C-AI-p {
  color: #a2a2a2;
  font-size: 1vw;
}
.P-C-AI-button {
  background: transparent;
  border: none;
  font-size: 1.5vw;
  color: #0f2c60;
  font-weight: 700;
  margin: 1vw 0;
}
.P-C-Info {
  font-size: 1.2vw;
  display: flex;
  flex-direction: column;
  gap: 1vw;
}
.P-C-Info form {
  display: flex;
  flex-direction: column;
  gap: 1vw;
}
.P-C-Field-Grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 колонки */
  gap: 1vw 2vw; /* отступы: строка — колонка */
}
.P-C-Field {
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  gap: 0.5vw;
  justify-content: space-between;
}
.P-C-Field-Input,
.P-C-Field input[type="text"],
.P-C-Field input[type="email"] {
  background-color: #d9d9d9;
  color: #a2a2a2;
  border: none;
  border-radius: 0.3vw;
  padding: 0.5vw;
  font-size: 1vw;
  width: 20vw;
}
.P-C-Field button {
  background-color: #0f2c60;
  color: white;
  border: none;
  border-radius: 0.5vw;
  padding: 0.5vw 1vw;
  font-size: 0.9vw;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.P-C-Field button:hover {
  background-color: #1c5d85;
}
.P-C-F-label {
  font-size: 1vw;
  color: #4b4b4b;
  font-weight: 600;
}
.P-C-Save {
  width: 12vw;
  height: 3vw;
  background-color: #0f2c60;
  color: white;
  border: none;
  border-radius: 0.5vw;
  font-size: 1vw;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.P-C-Save:hover {
  background-color: #1e8449;
}
.P-C-I-Logout {
  width: 10vw;
  height: 2.5vw;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 0.5vw;
  font-size: 1vw;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
  text-decoration: none;
}
.P-C-I-Logout:hover {
  background-color: #c0392b;
}
.P-C-PostsTitle {
  font-size: 1.8vw;
  margin-top: 2vw;
  margin-bottom: 1vw;
}
.P-C-Posts {
  display: flex;
  flex-wrap: wrap;
  gap: 2vw;
  justify-content: flex-start;
}
.P-C-PostCard {
  background-color: #555555;
  border-radius: 0.5vw;
  padding: 1vw;
  width: 25vw;
  box-sizing: border-box;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 0.5vw;
  box-shadow: 0 0.3vw 0.6vw rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}
.P-C-PostCard:hover {
  transform: scale(1.02);
}
.P-C-PostTitle {
  font-size: 1.2vw;
  font-weight: bold;
}
.P-C-PostInfo {
  font-size: 0.9vw;
  color: #ccc;
}
.P-C-PostExcerpt {
  font-size: 1vw;
}
.P-C-PostView {
  align-self: flex-start;
  background-color: #27ae60;
  color: white;
  border: none;
  border-radius: 0.3vw;
  padding: 0.4vw 0.8vw;
  font-size: 0.9vw;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.P-C-PostView:hover {
  background-color: #1e8449;
}
/*#endregion*/

/*#region PostAdd */
.PostAdd {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: start;
  padding-top: 7vw;
  box-sizing: border-box;
  background-color: #d9d9d9;
  color: aliceblue;
  align-items: stretch;
}
.PA-Container {
  width: 65vw;
  background: #2d2d2d;
  border-radius: 0.5vw;
  box-shadow: 0 0.4vw 1.2vw rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.PA-C-Header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.8vw 1.3vw;
  text-align: center;
}
.PA-form {
  /* background-color: #158cc4; */
  display: flex;
  flex-direction: column;
  gap: 1.5vw;
}
.PA-F-MainInner {
  background-color: #fafafa;
  padding: 1.5vw;
  box-sizing: border-box;
  border-radius: 1vw;
}
.PA-SC-Content {
  display: flex;
  flex-direction: column;
  gap: 1.5vw;
}
.PA-SC-C-span {
  display: flex;
  flex-direction: column;
  gap: 0.4vw;
  flex: 1;
}
.PA-SC-C-S-Title {
  font-size: 0.9vw;
  color: #4b4b4b;
}
.PA-C-H-I-Input {
  background-color: #d9d9d9;
  color: #4b4b4b;
  padding: 0.6vw;
  border-radius: 0.8vw;
  border: 0;
  font-size: 0.75vw;
  flex: 1;
}
.PA-C-H-I-Input::placeholder {
  color: #4b4b4b; /* Задай свой цвет */
}
.PA-SC-C-S-Meta {
  display: flex;
  flex-wrap: wrap; /* перенос на новую строку */
  gap: 0.5vw;
}

.PA-SC-C-S-MetaContent {
  gap: 1vw;
}
.PA-SC-C-S-M-Choice {
  color: #4b4b4b;
  background-color: #0000000a;
  padding: 0.6vw;
  border: 0.15vw solid #a2a2a2;
  border-radius: 0.8vw;
  font-size: 0.75vw;
  min-width: 10vw;
  max-width: 10000vw;
}
.PA-SC-C-S-M-Choice.dropdown-btn {
  background-color: rgb(217, 217, 217);
  width: 100%;
  text-align: start;
}
.PA-SC-C-S-M-Choice:has(input:checked) {
  color: #0f2c60;
  border-color: #0f2c60;
  background-color: rgba(98, 138, 190, 0.2);
}

/* Прячем стандартную радиокнопку */
.PA-SC-C-S-M-Choice input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 0vw;
  height: 0vw;
  /* border: 0.15vw solid #a2a2a2; */
  /* border-radius: 50%;
  background-color: #fff;
  cursor: pointer; */
  /* margin-right: 0.5vw; */
  /* position: relative;
  transition: border-color 0.2s ease, background-color 0.2s ease; */
}
/* .PA-SC-C-S-M-Choice input[type="radio"]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.6vw;
  height: 0.6vw;
  background-color: #0f2c60;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s ease;
}
.PA-SC-C-S-M-Choice input[type="radio"]:checked {
  border-color: #0f2c60;
}
.PA-SC-C-S-M-Choice input[type="radio"]:checked::before {
  transform: translate(-50%, -50%) scale(1);
}
.PA-SC-C-S-M-Choice input[type="radio"]:hover {
  border-color: #0f2c60;
}
   */

.PA-SC-C-S-M-Choice input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 0vw;
  height: 0vw;
}
.PA-SC-C-S-M-NoPosts,
.PA-SC-C-S-M-NoCategories {
  color: #363636;
  font-size: 1vw;
  /* margin-top: 10px; */
  text-align: center;
}
/* 
.PA-SC-C-S-M-Choice input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.6vw;
  height: 0.3vw;
  border-left: 0.15vw solid #0f2c60;
  border-bottom: 0.15vw solid #0f2c60;
  transform: translate(-50%, -60%) rotate(-45deg) scale(0);
  transition: transform 0.2s ease;
}
.PA-SC-C-S-M-Choice input[type="checkbox"]:checked {
  border-color: #0f2c60;
  background-color: #fff;
}
.PA-SC-C-S-M-Choice input[type="checkbox"]:checked::before {
  transform: translate(-50%, -60%) rotate(-45deg) scale(1);
}
.PA-SC-C-S-M-Choice input[type="checkbox"]:hover {
  border-color: #0f2c60;
} */
.PA-F-NavBar {
  background-color: #fafafa;
  padding: 1vw;
  box-sizing: border-box;
  border-radius: 1vw;
  display: flex;
  flex-direction: column;
  gap: 1vw;
}
.PA-F-NV-Steps {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1vw;
}

.PA-F-NV-S-Step {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  flex: 1;
  position: relative;
  min-width: 8vw;
}

.PA-F-NV-S-Step .circle {
  width: 2vw;
  height: 2vw;
  border-radius: 50%;
  background-color: #ccc;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 0.5vw;
  transition: background-color 0.3s;
  font-size: 1vw;
}
.PA-F-NV-S-Step.active .circle {
  background-color: #0f2c60;
}
.PA-F-NV-S-Step.completed .circle {
  background-color: #0f2c60;
}
.PA-F-NV-S-Step .label {
  font-size: 0.75vw;
  color: #4b4b4b;
  text-align: center;
  white-space: nowrap;
}
.progress-line {
  position: absolute;
  top: 1vw;
  left: 10%;
  right: 10%;
  height: 0.3vw;
  background-color: #ccc;
  z-index: 0;
}
.progress-line::after {
  content: "";
  display: block;
  height: 100%;
  background-color: #0f2c60;
  width: var(--progress-percent, 0%);
  transition: width 0.3s;
}
.PA-F-B-PrevNext {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1.5vw;
}
.PA-F-B-PN-Button {
  width: 8.8vw;
  height: 2.8vw;
  border: 0;
  border-radius: 1vw;
  font-size: 1vw;
}
.PA-F-B-PN-Button.red {
  background-color: #a93333;
  color: white;
}
.PA-F-B-PN-Button.white {
  border: 0.15vw solid #4b4b4b;
}
.PA-F-Buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1vw;
}
/* .PA-C-H-Title {
  font-size: 2.2vw;
  font-weight: 700;
  margin-bottom: 0.4vw;
  text-shadow: 0 0.08vw 0.16vw rgba(0, 0, 0, 0.3);
}

.PA-C-H-Subtitle {
  font-size: 0.9vw;
  opacity: 0.9;
  font-weight: 300;
}

.PA-C-Messages {
  margin: 0.9vw 1.3vw;
}

.PA-C-M-Item {
  padding: 0.5vw 0.7vw;
  border-radius: 0.25vw;
  margin-bottom: 0.4vw;
  font-weight: 500;
}

.PA-C-M-Item--success {
  background: #1e4d2b;
  color: #4ade80;
  border: 0.04vw solid #22543d;
}

.PA-C-M-Item--error {
  background: #4c1d24;
  color: #f87171;
  border: 0.04vw solid #742a2a;
}

.PA-C-Form {
  padding: 1.3vw;
}

.PA-C-F-Section {
  margin-bottom: 1.8vw;
  padding: 1.1vw;
  background: #3d3d3d;
  border-radius: 0.35vw;
  border-left: 0.16vw solid #667eea;
}

.PA-C-F-S-Title {
  font-size: 1.2vw;
  font-weight: 600;
  color: #f0f0f0;
  margin-bottom: 0.9vw;
  display: flex;
  align-items: center;
}

.PA-C-F-S-Title::before {
  content: "▶";
  color: #667eea;
  margin-right: 0.4vw;
  font-size: 0.7vw;
}

.PA-C-F-S-RadioGroup {
  display: flex;
  gap: 0.65vw;
  flex-wrap: wrap;
}

.PA-C-F-S-RG-Label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0.5vw 0.9vw;
  border: 0.08vw solid #4d4d4d;
  border-radius: 0.35vw;
  background: #2d2d2d;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #ccc;
}

.PA-C-F-S-RG-Label:hover {
  border-color: #667eea;
  transform: translateY(-0.08vw);
  box-shadow: 0 0.16vw 0.5vw rgba(102, 126, 234, 0.15);
}

.PA-C-F-S-RG-Input:checked + .PA-C-F-S-RG-Text {
  color: #667eea;
  font-weight: 600;
}

.PA-C-F-S-RG-Input {
  margin-right: 0.35vw;
  accent-color: #667eea;
}

.PA-C-F-S-Select,
.PA-C-F-S-G-F-Select,
.PA-C-F-S-G-F-Input,
.PA-C-F-S-G-F-Textarea {
  width: 100%;
  padding: 0.5vw 0.7vw;
  border: 0.08vw solid #4d4d4d;
  border-radius: 0.25vw;
  font-size: 0.85vw;
  background: #2d2d2d;
  color: #f0f0f0;
  transition: all 0.3s ease;
}

.PA-C-F-S-Select:focus,
.PA-C-F-S-G-F-Select:focus,
.PA-C-F-S-G-F-Input:focus,
.PA-C-F-S-G-F-Textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 0.12vw rgba(102, 126, 234, 0.1);
}

.PA-C-F-S-Grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12vw, 1fr));
  gap: 0.9vw;
}

.PA-C-F-S-G-Field--full {
  grid-column: 1/-1;
}

.PA-C-F-S-G-F-Label {
  display: block;
  margin-bottom: 0.35vw;
  font-weight: 600;
  color: #f0f0f0;
}

.PA-C-F-S-G-F-Textarea {
  resize: vertical;
  min-height: 5vw;
}

.PA-C-F-S-G-F-Counter {
  display: block;
  margin-top: 0.2vw;
  color: #999;
  font-size: 0.7vw;
}

.PA-C-F-S-CheckboxGroup {
  margin-top: 1.1vw;
}

.PA-C-F-S-CG-Title {
  font-size: 0.9vw;
  font-weight: 600;
  color: #f0f0f0;
  margin-bottom: 0.65vw;
}

.PA-C-F-S-CG-Grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5vw, 1fr));
  gap: 0.5vw;
}

.PA-C-F-S-CG-Label {
  display: flex;
  align-items: center;
  padding: 0.4vw 0.65vw;
  background: #2d2d2d;
  border: 0.08vw solid #4d4d4d;
  border-radius: 0.25vw;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ccc;
}

.PA-C-F-S-CG-Label:hover {
  border-color: #667eea;
  background: #3d3d3d;
}

.PA-C-F-S-CG-Input {
  margin-right: 0.4vw;
  accent-color: #667eea;
}

.PA-C-F-S-CG-Input:checked + span {
  color: #667eea;
  font-weight: 600;
}

.PA-C-F-S-Upload {
  text-align: center;
}

.PA-C-F-S-U-Label {
  display: inline-block;
  cursor: pointer;
  padding: 1.3vw;
  border: 0.13vw dashed #4d4d4d;
  border-radius: 0.5vw;
  background: #2d2d2d;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 18vw;
}

.PA-C-F-S-U-Label:hover {
  border-color: #667eea;
  background: #3d3d3d;
  transform: translateY(-0.08vw);
}

.PA-C-F-S-U-Input {
  display: none;
}

.PA-C-F-S-U-Content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4vw;
}

.PA-C-F-S-U-Icon {
  font-size: 1.3vw;
  color: #999;
}

.PA-C-F-S-U-Text {
  font-size: 0.9vw;
  font-weight: 600;
  color: #f0f0f0;
}

.PA-C-F-S-U-Hint {
  color: #999;
  font-size: 0.75vw;
}

.PA-C-F-S-U-Preview {
  margin-top: 1.6vw;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9vw, 1fr));
  gap: 1.2vw;
}

.PA-C-F-S-U-P-Item {
  position: relative;
  border-radius: 0.65vw;
  overflow: hidden;
  background: #3d3d3d;
  border: 0.16vw solid #4d4d4d;
}

.PA-C-F-S-U-P-Image {
  width: 100%;
  height: 6.5vw;
  object-fit: cover;
}

.PA-C-F-S-U-P-Video {
  width: 100%;
  height: 6.5vw;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2vw;
}

.PA-C-F-S-U-P-Name {
  padding: 0.65vw;
  font-size: 0.65vw;
  color: #999;
  text-align: center;
  word-break: break-all;
}

.PA-C-F-Submit {
  width: 100%;
  padding: 0.8vw 1.3vw;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 0.35vw;
  font-size: 1vw;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4vw;
  margin-top: 1.3vw;
}

.PA-C-F-Submit:hover {
  transform: translateY(-0.13vw);
  box-shadow: 0 0.4vw 1.1vw rgba(102, 126, 234, 0.3);
}

.PA-C-F-Submit:active {
  transform: translateY(-0.04vw);
} */
/*#endregion*/

/*#region PostDetail*/
.PostDetail {
  min-height: 100vh;
  background-color: #d9d9d9;
  padding: 10vw 0;
}
.PD-Container {
  max-width: 90vw;
  margin: 0 auto;
  padding: 0 1.04vw;
  /* margin-top: 5.21vw; */
}
.PD-C-Breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.52vw;
  margin-bottom: 1.04vw;
  font-size: 0.73vw;
}
.PD-C-B-Link {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}
.PD-C-B-Link:hover {
  color: #ccc;
}
.PD-C-B-Separator {
  color: #999;
}
.PD-C-B-Current {
  color: #ccc;
  font-weight: 500;
}
.PD-C-Header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: #fafafa;
  padding: 1.56vw;
  border-radius: 0.78vw;
  box-shadow: 0 0.21vw 1.04vw rgba(0, 0, 0, 0.3);
  margin-bottom: 1.56vw;
  position: relative;
}
.PD-C-H-Right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.78vw;
}
.PD-C-H-Share {
  position: relative;
  display: flex;
  gap: 1vw;
}
.PD-C-H-S-Button {
  width: 2vw;
  height: 2vw;
  display: flex;
  align-items: center;
  gap: 0.52vw;
  /* background: #0f2c60; */
  color: white;
  border: none;
  border-radius: 1.04vw;
  /* padding: 0.52vw 1.04vw; */
  font-size: 0.94vw;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
}
.PD-C-H-S-Button svg {
  width: 2vw;
  height: 2vw;
}
.PD-C-H-S-Icon {
  width: 1.04vw;
  height: 1.04vw;
  fill: currentColor;
}
.PD-C-H-S-Dropdown {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  min-width: 10.42vw;
  box-shadow: 0 0.21vw 0.63vw rgba(0, 0, 0, 0.2);
  border-radius: 0.52vw;
  z-index: 1;
  overflow: hidden;
}
.PD-C-H-S-Dropdown a {
  color: #333;
  padding: 0.52vw 1.04vw;
  text-decoration: none;
  display: block;
  font-size: 0.83vw;
  transition: background-color 0.3s;
}
.PD-C-H-S-Dropdown a:hover {
  background-color: #f1f1f1;
}
.PD-C-H-S-Button:hover .PD-C-H-S-Dropdown {
  display: block;
}
.PD-C-H-I-Title {
  font-size: 1.6vw;
  font-weight: 700;
  color: #0f2c60;
  margin: 0 0 0.78vw 0;
  line-height: 1.3;
}
.PD-C-H-I-Meta {
  display: flex;
  gap: 0.78vw;
  flex-wrap: wrap;
}
.PD-C-H-I-M-Location {
  padding: 0.31vw 0.63vw;
  border-radius: 1.04vw;
  font-size: 1.2vw;
  font-weight: 500;
  color: #4b4b4b;
}
.PD-C-H-Price {
  text-align: right;
}
.PD-C-H-P-Amount {
  display: block;
  font-size: 1.67vw;
  font-weight: 800;
  color: #0f2c60;
  margin-bottom: 0.26vw;
}
.PD-C-H-P-PerMeter {
  font-size: 0.83vw;
  color: #4b4b4b;
  font-weight: 500;
}
.PD-C-Content {
  display: grid;
  gap: 1.56vw;
}
.PD-C-C-Layout {
  display: grid;
  grid-template-columns: 1fr 30vw;
  gap: 1.56vw;
}
.PD-C-C-L-Main {
  display: flex;
  flex-direction: column;
  gap: 1vw;
}
.PD-C-C-L-Sidebar {
  display: flex;
  flex-direction: column;
  gap: 1vw;
}
.PD-C-C-Media {
  background: #fafafa;
  border-radius: 0.78vw;
  overflow: hidden;
  box-shadow: 0 0.21vw 1.04vw rgba(0, 0, 0, 0.3);
}
.PD-C-C-M-G-Main {
  overflow: hidden;
  transition: ease-in-out 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.PD-C-C-M-G-Main:hover {
  cursor: pointer;
}
.PD-C-C-M-G-M-Image {
  width: 100%;
  height: 23.5vw;
  object-fit: cover;
  transition: ease-in-out 0.4s;
}
.PD-C-C-M-G-M-Video {
  width: 100%;
  height: 20vw;
  object-fit: cover;
  transition: ease-in-out 0.4s;
}
.PD-C-C-M-G-M-V-Controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5vw;
  padding-top: 0.5vw;
  padding-bottom: 0.5vw;
}
.PD-C-C-M-G-M-V-Controls button {
  background: #0f2c60;
  border: 0.1vw solid rgba(255, 255, 255, 0.3);
  margin: 0;
  border-radius: 1vw;
  color: white;
  font-size: 1vw;
  padding: 0.8vw;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.PD-C-C-M-G-M-V-Controls button:hover {
  background: rgba(255, 255, 255, 0.2);
}
.PD-C-C-M-G-M-V-Controls button:active {
  transform: scale(0.95);
}
.PD-C-C-M-G-M-V-Controls input[type="range"] {
  width: 30vw;
  height: 0.5vw;
  cursor: pointer;
  appearance: none;
  background: #0f2c60;
  border-radius: 0.5vw;
  overflow: hidden;
}
.PD-C-C-M-G-M-V-Controls input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 0.5vw;
  height: 0.5vw;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0.2vw rgba(0, 0, 0, 0.5);
  transition: background 0.2s;
}
.PD-C-C-M-G-M-V-Controls input[type="range"]::-webkit-slider-thumb:hover {
  background: #ddd;
}
.PD-C-C-M-G-M-V-Controls input[type="range"]::-moz-range-thumb {
  width: 1vw;
  height: 1vw;
  background: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0.2vw rgba(0, 0, 0, 0.5);
  transition: background 0.2s;
}
.PD-C-C-M-G-M-V-Controls input[type="range"]::-moz-range-thumb:hover {
  background: #ddd;
}
.PD-C-C-M-G-M-Image:hover {
  object-fit: cover;
  height: 30vw;
}
.PD-C-C-M-G-Main:hover .PD-C-C-M-G-M-Video {
  object-fit: contain;
  border-radius: 1vw;
  width: auto;
  height: 26vw;
}
.PD-C-C-M-G-Thumbnails {
  display: flex;
  gap: 0.52vw;
  padding: 0.5vw;
  overflow-x: auto;
  border-radius: 0 0 0.78vw 0.78vw;
}
.PD-C-C-M-G-T-Item {
  flex-shrink: 0;
  width: 4.17vw;
  height: 4.17vw;
  border-radius: 0.42vw;
  overflow: hidden;
  cursor: pointer;
  border: 0.1vw solid transparent;
  transition: border-color 0.3s;
}
.PD-C-C-M-G-T-Item:hover {
  border-color: #667eea;
}
.PD-C-C-M-G-T-I-Image,
.PD-C-C-M-G-T-I-Video {
  height: 100%;
}
.PD-C-C-M-G-Main {
  position: relative;
}
.PD-C-C-M-G-Main img {
  cursor: zoom-in;
}
.PD-C-C-M-G-Main::after {
  content: "Нажмите чтобы увеличить";
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.PD-C-C-M-G-Main:hover:has(img)::after {
  opacity: 1;
}
.PD-C-C-M-G-T-I-VideoThumbnail {
  height: 100%;
  object-fit: cover;
  pointer-events: none; /* запретить взаимодействие */
}
.PD-C-C-M-NoMedia {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 15.63vw;
  color: #fafafa;
}
.PD-C-C-M-NM-Icon {
  font-size: 2.5vw;
  margin-bottom: 0.78vw;
}
.PD-C-C-M-NM-Text {
  font-size: 0.94vw;
  color: #4b4b4b;
  margin: 0;
}
.PD-C-C-L-M-Card {
  background: #fafafa;
  border-radius: 0.78vw;
  padding: 1.56vw;
  box-shadow: 0 0.21vw 1.04vw rgba(0, 0, 0, 0.3);
}
.PD-C-C-L-M-C-Title {
  font-size: 1.15vw;
  font-weight: 700;
  color: #4b4b4b;
  margin: 0 0 1.04vw 0;
  /* padding-bottom: 0.78vw; */
  /* border-bottom: 0.1vw solid #3d3d3d; */
}
.PD-C-C-L-M-C-Title p {
  font-size: 0.8vw;
  opacity: 0.8;
  font-weight: 100;
  margin-top: 0.5vw;
  color: #4b4b4b;
  /* color: rgb(255, 76, 76); */
}
.PD-C-C-L-M-C-Grid {
  display: flex;
  flex-direction: column;
  gap: 0.8vw;
  /* display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.42vw, 1fr));
  gap: 1.04vw; */
}
.PD-C-C-L-M-C-G-Item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding: 0.78vw; */
  /* background: #3d3d3d; */
  /* border-radius: 0.52vw;  */
}
.PD-C-C-L-M-C-G-Item span {
  font-size: 1.1vw;
}
.PD-C-C-L-M-C-G-I-Label {
  font-weight: 600;
  color: #808080;
}
.PD-C-C-L-M-C-G-I-Value {
  font-weight: 700;
  color: #4b4b4b;
  text-align: end;
}
.PD-C-C-L-M-C-L-Address {
  font-size: 0.94vw;
  font-weight: 600;
  color: #4b4b4b;
  margin: 0 0 0.52vw 0;
}
.PD-C-C-L-M-C-L-Complex,
.PD-C-C-L-M-C-L-Cross {
  color: #999;
  margin: 0.26vw 0;
  font-size: 1vw;
}
.PD-C-C-L-M-C-L-Map {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
}
.dg-widget-link,
.dg-ctrl {
  font-family: inherit !important;
}
.PD-C-C-L-M-C-Features {
  display: flex;
  flex-direction: column;
  /* display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.02vw, 1fr)); */
  gap: 0.78vw;
}
.PD-C-C-L-M-C-F-Title {
  font-size: 1.5vw;
  color: #4b4b4b;
}
.PD-C-C-L-M-C-F-Item {
  width: 60%;
  display: flex;
  /* align-items: center; */
  justify-content: space-between;
  gap: 0.63vw;
  /* padding: 0.63vw; */
  /* background: #3d3d3d; */
  border-radius: 0.42vw;
}
.PD-C-C-L-M-C-F-I-Icon {
  font-size: 1.04vw;
  color: #667eea;
}
.PD-C-C-L-M-C-F-I-Text {
  font-weight: 600;
  font-size: 0.9vw;
  color: #808080;
  text-align: end;
  list-style-type: none;
  text-align: start;
}
.PD-C-C-L-M-C-F-I-Text.right {
  text-align: end;
}
.PD-C-C-L-M-C-Tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.52vw;
}
.PD-C-C-L-M-C-T-Tag {
  padding: 0.42vw 0.83vw;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 1.04vw;
  font-size: 0.73vw;
  font-weight: 500;
}
.PD-C-C-L-M-C-D-Text {
  font-size: 0.9vw;
  line-height: 1.6;
  color: #4b4b4b;
  margin: 0;
}
.PD-C-C-L-S-Card {
  background: #fafafa;
  border-radius: 0.78vw;
  padding: 1.3vw;
  box-shadow: 0 0.21vw 1.04vw rgba(0, 0, 0, 0.3);
  margin-bottom: 1.04vw;
}
.PD-C-C-L-S-C-Title {
  font-size: 0.94vw;
  font-weight: 700;
  color: #f0f0f0;
  margin: 0 0 1.04vw 0;
}
.PD-C-C-L-S-C-C-User {
  display: flex;
  align-items: center;
  gap: 0.78vw;
  margin-bottom: 1.04vw;
}
.PD-C-C-L-S-C-C-U-Avatar {
  width: 2.6vw;
  height: 2.6vw;
  border-radius: 100vw;
  display: flex;
  overflow: hidden;
}
.PD-C-C-L-S-C-C-U-A-Image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.PD-C-C-L-S-C-C-U-A-Default {
  width: 110vw;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.04vw;
}
.PD-C-C-L-S-C-C-U-I-Name {
  width: 12 vw;
  font-size: 1.4vw;
  font-weight: 600;
  color: #4b4b4b;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.PD-C-C-L-S-C-C-U-I-Status {
  color: #999;
  font-size: 0.73vw;
  margin: 0;
}
.PD-C-C-L-S-C-C-Actions {
  display: flex;
  flex-direction: column;
  gap: 0.52vw;
}
.PD-C-C-L-S-C-A-Button {
  padding: 0.8vw 1.04vw;
  border: none;
  border-radius: 0.42vw;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  font-size: 0.83vw;
  text-decoration: none;
  display: block;
  width: 80%;
  margin: 0 auto;
  box-sizing: border-box;
}
.PD-C-C-L-S-C-A-Button--edit {
  background: transparent;
  color: #4b4b4b;
  margin-bottom: 1.04vw;
  border: 0.2vw solid #4b4b4b;
}
.PD-C-C-L-S-C-A-Button--edit:hover {
  transform: translateY(-0.1vw);
  /* box-shadow: 0 0.21vw 0.78vw rgba(243, 156, 18, 0.4); */
  /* background: linear-gradient(135deg, #e67e22 0%, #d35400 100%); */
}
.PD-C-C-L-S-C-C-A-Button {
  padding: 0.85vw 1.5vw;
  border: none;
  border-radius: 0.8vw;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  font-size: 1vw;
  background-color: #0f2c60;
  color: #fafafa;
}
.PD-C-C-L-S-C-C-A-Button:hover {
  transform: translateY(-0.1vw);
}
.PD-C-C-L-S-C-I-Item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.52vw 0;
  border-bottom: 0.05vw solid #3d3d3d;
}
.PD-C-C-L-S-C-I-Item:last-child {
  border-bottom: none;
}
.PD-C-C-L-S-C-I-I-Label {
  color: #999;
  font-weight: 500;
  font-size: 0.83vw;
}
.PD-C-C-L-S-C-I-I-Value {
  font-weight: 600;
  color: #f0f0f0;
  font-size: 0.83vw;
}
.PD-C-C-L-S-C-I-I-Value--warning {
  color: #e74c3c;
}
.PD-C-C-L-S-C-Share {
  display: flex;
  flex-direction: column;
  gap: 0.52vw;
}
.PD-C-C-L-S-C-S-Button {
  width: 2vw;
  height: 2vw;
  /* padding: 0.52vw 0.78vw; */
  /* background: #0f2c60; */
  background: transparent;
  border: 0;
  border-radius: 1.04vw;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
  color: #fafafa;
  font-size: 0.94vw;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.52vw;
}
.PD-C-C-L-S-C-S-Button:hover {
  /* background: #4d4d4d; */
  transform: translateY(-0.05vw);
}
.PD-C-C-L-S-C-S-Button svg {
  width: 2vw;
  height: 2vw;
}
.PE-C-F-L-S-C-A-Button--danger {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
}
.PE-C-F-L-S-C-A-Button--danger:hover {
  transform: translateY(-0.1vw);
  box-shadow: 0 0.21vw 0.78vw rgba(231, 76, 60, 0.4);
}
.PD-C-C-L-M-C-Features.collapsed {
  max-height: 300px; /* можно подстроить */
  overflow: hidden;
  position: relative;
}
.features-toggle-btn {
  margin-top: 10px;
  padding: 8px 14px;
  background: #0f2c60;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9vw;
  transition: background 0.3s ease;
}
.features-toggle-btn:hover {
  background: #133b85;
}
/*#endregion*/

/*#region PostEditor*/
.PL-Left.PostEditor {
  gap: 0;
}
.PE-C-C-Media {
  background: linear-gradient(145deg, #fafafa, #f5f7fa);
  border-radius: 1vw;
  overflow: hidden;
  box-shadow: 0 0.3vw 1vw rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5vw;
  border: 0.05vw solid #e3e6ea;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.PE-C-C-Media-Upload {
  padding: 0.5vw 1vw;
  box-sizing: border-box;
}
.PE-C-C-Media:hover {
  transform: translateY(-0.1vw);
  box-shadow: 0 0.5vw 1.2vw rgba(0, 0, 0, 0.12);
}

.PE-C-C-M-U-Label {
  font-size: 1vw;
  font-weight: 600;
  color: #2b2b2b;
  margin-bottom: 0.4vw;
}

.PE-C-C-M-U-Input {
  padding: 1vw;
  border: 0.15vw dashed #c4c9cf;
  border-radius: 0.6vw;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95vw;
}

.PE-C-C-M-U-Input:hover {
  border-color: #6c8efb;
  background: #f3f6ff;
  box-shadow: 0 0.15vw 0.4vw rgba(108, 142, 251, 0.3);
}

.PE-C-C-M-U-Preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6vw;
  margin-top: 0.6vw;
}

.PE-C-C-M-U-PreviewItem {
  position: relative;
  width: 6vw;
  height: 6vw;
  border-radius: 0.4vw;
  overflow: hidden;
  border: 1px solid #dfe3e8;
  box-shadow: 0 0.2vw 0.5vw rgba(0, 0, 0, 0.06);
  animation: fadeInMedia 0.3s ease;
}

.PE-C-C-M-U-PreviewImage,
.PE-C-C-M-U-PreviewVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.PE-C-C-M-U-Delete {
  position: absolute;
  top: 0.3vw;
  right: 0.3vw;
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  color: white;
  border: none;
  border-radius: 50%;
  width: 1.4vw;
  height: 1.4vw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0.7vw;
  cursor: pointer;
  box-shadow: 0 0.1vw 0.3vw rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.PE-C-C-M-U-Delete:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, #e53935, #d32f2f);
}

.PE-C-C-M-U-Hint {
  font-size: 0.85vw;
  color: #777;
  margin-top: 0.4vw;
}

.PE-C-C-M-NoMedia {
  text-align: center;
  padding: 2vw 1vw;
  background: #fafbfc;
  border: 0.1vw dashed #cfd4da;
  border-radius: 0.6vw;
}

.PE-C-C-M-NM-Icon {
  font-size: 2vw;
  display: block;
  margin-bottom: 0.5vw;
  color: #a0a5ab;
}

.PE-C-C-M-NM-Text {
  font-size: 0.95vw;
  color: #555;
}

@keyframes fadeInMedia {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.PE-F-Buttons {
  display: flex;
  gap: 1vw;
}
.PE-C-C-L-S-C-A-Button {
  width: 15vw;
  height: 3vw;
  font-size: 1vw;
  color: #fafafa;
  border-radius: 1vw;
  background-color: #071836;
  border: 0;
}
.PE-C-C-L-S-C-A-Button--cancel {
  background: transparent;
  border: 0.2vw solid #071836;
  color: #071836;
}
.PE-PostDeleteForm {
  position: relative;
}
.PE-C-C-L-S-C-A-Button--danger {
  background-color: #a93333;
  position: absolute;
  top: -3vw;
  right: 0;
}
/*#endregion*/

/*#region AdminPanel*/
.AdminMenu {
  padding-top: 10vw;
  background-color: #333333;
  color: aliceblue;
  display: flex;
  width: 100%;
  height: 100vh;
  justify-content: center;
  align-self: center;
  gap: 1vw;
}
.AdminMenu a {
  width: 10vw;
  height: 3vw;
  background-color: white;
  color: black;
  border-radius: 3vw;
  font-size: 0.7vw;
  display: flex;
  justify-content: center;
  align-items: center;
}
/*#endregion*/

/*#region UserAdd*/
.UserAdd {
  width: 100%;
  min-height: 100vh;
  background-color: #333333;
  padding: 3vw;
  padding-top: 10vw;
  font-family: "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.UA-Title {
  font-size: 2.5vw;
  color: #fafafa;
  margin-bottom: 2vw;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.07vw;
  text-shadow: 0 0.15vw 0.4vw rgba(0, 0, 0, 0.3);
}
.UA-form {
  width: 35vw;
  background: #454545;
  padding: 2.5vw;
  border-radius: 0.7vw;
  box-shadow: 0 0.35vw 1vw rgba(0, 0, 0, 0.2);
  border-top: 0.35vw solid #3a86ff;
}
.UA-F-Group {
  margin-bottom: 2vw;
}
.UA-F-Group label {
  display: block;
  font-size: 1.1vw;
  color: #dadada;
  margin-bottom: 0.7vw;
  font-weight: 500;
}
.UA-F-Group input,
.UA-F-Group select {
  width: 100%;
  padding: 1vw;
  background: #5a5a5a;
  border: 0.1vw solid #444;
  border-radius: 0.35vw;
  font-size: 1.1vw;
  color: #fafafa;
  transition: all 0.3s ease;
}
.UA-F-Group input:focus,
.UA-F-Group select:focus {
  border-color: #3a86ff;
  outline: none;
  box-shadow: 0 0 0 0.2vw rgba(58, 134, 255, 0.2);
}
.UA-F-Group input::placeholder {
  color: #d6d6d6;
}
.UA-F-Button {
  width: 100%;
  padding: 1vw;
  background: #3a86ff;
  color: white;
  border: none;
  border-radius: 0.35vw;
  font-size: 1.1vw;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 0.7vw;
  text-transform: uppercase;
  letter-spacing: 0.07vw;
}
.UA-F-Button:hover {
  background: #2667cc;
}
/* Анимация при фокусе */
@keyframes inputFocus {
  from {
    box-shadow: 0 0 0 0 rgba(58, 134, 255, 0);
  }
  to {
    box-shadow: 0 0 0 0.2vw rgba(58, 134, 255, 0.2);
  }
}
.UA-F-Group input:focus {
  animation: inputFocus 0.3s ease forwards;
}
/*#endregion*/

/*#region UsersList*/
.UsersList {
  width: 100%;
  min-height: 100vh;
  background-color: #333333; /* тёмный фон страницы */
  padding: 5vw 0;
  padding-top: 10vw;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #e0e0e0; /* общий текст светлый */
}
.UL-Container {
  width: 90vw;
  margin: 0 auto;
  background: #444444; /* тёмный контейнер */
  box-shadow: 0 0.5vw 1vw rgba(0, 0, 0, 0.2);
  border-radius: 1.5vw;
  padding: 3vw;
  overflow-x: auto;
}
.UL-Container h1 {
  color: #fafafa; /* белый заголовок */
  font-size: 2.5vw;
  margin-bottom: 2vw;
  text-align: center;
  font-weight: 600;
}
.UL-C-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2vw;
  background-color: #353535; /* тёмный фон таблицы */
}
.UL-C-table thead {
  background-color: rgb(32, 32, 32);
  color: #fafafa;
}
.UL-C-table th {
  padding: 1.5vw;
  text-align: left;
  font-weight: 500;
  letter-spacing: 0.05vw;
}
.UL-C-table td {
  padding: 1.5vw;
  border-bottom: 0.1vw solid #333; /* тёмная граница */
  color: #cccccc; /* светло-серый текст ячеек */
}
.UL-C-table tbody tr:hover {
  background-color: #2c2c2c; /* тёмный hover */
  transition: background-color 0.2s ease;
}
.UL-C-table tbody tr:last-child td {
  border-bottom: none;
}
/*#endregion*/

/*#region UsersList*/
.AgenciesList {
  width: 100%;
  min-height: 100vh;
  background-color: #333333;
  padding: 5vw 0;
  padding-top: 10vw;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #e0e0e0;
}
.AL-Container {
  width: 90vw;
  margin: 0 auto;
  background: #444444;
  box-shadow: 0 0.5vw 1vw rgba(0, 0, 0, 0.2);
  border-radius: 1.5vw;
  padding: 3vw;
  overflow-x: auto;
}
.AL-Container h1 {
  color: #fafafa;
  font-size: 2.5vw;
  margin-bottom: 2vw;
  text-align: center;
  font-weight: 600;
}
.AL-C-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2vw;
  background-color: #353535;
}
.AL-C-table thead {
  background-color: rgb(32, 32, 32);
  color: #fafafa;
}
.AL-C-table th {
  padding: 1.5vw;
  text-align: left;
  font-weight: 500;
  letter-spacing: 0.05vw;
}
.AL-C-table td {
  padding: 1.5vw;
  border-bottom: 0.1vw solid #333;
  color: #cccccc;
}
.AL-C-table tbody tr:hover {
  background-color: #2c2c2c;
  transition: background-color 0.2s ease;
}
.AL-C-table tbody tr:last-child td {
  border-bottom: none;
}
.btn.btn-primary {
  background-color: #1976d2;
  color: #fff;
  border: none;
  padding: 0.7vw 1.5vw;
  border-radius: 0.5vw;
  cursor: pointer;
  text-decoration: none;
  font-size: 1vw;
  transition: background 0.2s;
}
.btn.btn-primary:hover {
  background-color: #1565c0;
}
/*#endregion*/

/*#region PostsList*/
.PostList {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: start;
  padding-top: 7vw;
  box-sizing: border-box;
  background-color: #d9d9d9;
  color: aliceblue;
  align-items: stretch;
}
.PostList h1 {
  font-size: 2.2vw;
  color: #fafafa;
  margin-bottom: 1.8vw;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.07vw;
  text-shadow: 0 0.12vw 0.3vw rgba(0, 0, 0, 0.3);
}
.PL-Items {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1vw;
  /* max-width: 85vw; */
  /* margin: 0 auto; */
}
.PL-I-Item {
  background: #fafafa;
  /* margin-bottom: 1.6vw; */
  border-radius: 1vw;
  padding: 1.6vw;
  box-shadow: 0 0.3vw 0.6vw rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.PL-I-Item h2 {
  font-size: 1.4vw;
  color: #4b4b4b;
  margin: 0 0 0.8vw 0;
  font-weight: 500;
}
.PL-I-Item p {
  font-size: 1vw;
  line-height: 1.5;
  margin: 0.6vw 0;
  color: #e0e0e0;
}
.PL-I-Item p strong {
  color: #fafafa;
}
.PL-I-Meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2vw;
  margin-top: 1.2vw;
  font-size: 0.9vw;
}
.PL-I-Meta span {
  display: flex;
  align-items: center;
  color: #4b4b4b;
}
.PL-I-Meta i {
  margin-right: 0.4vw;
  color: #3a86ff;
}
.PL-I-Buttons {
  display: flex;
  gap: 1vw;
  position: relative;
}
.PL-I-Link {
  display: inline-block;
  margin-top: 1.2vw;
  padding: 0.6vw 1.2vw;
  background: #0f2c60;
  color: white;
  text-decoration: none;
  border-radius: 0.3vw;
  font-weight: 500;
  transition: background 0.3s ease;
  font-size: 0.9vw;
}
.PL-I-Link-Delete {
  background-color: rgba(255, 0, 0, 0.699);
  /* margin-left: 10vw; */
  border: none;
  position: absolute;
  right: 0;
}
.PL-I-Link:hover {
  background: #2667cc;
}
.PL-I-Link-Delete:hover {
  background-color: red;
}
.PostList > p {
  text-align: center;
  font-size: 1.1vw;
  color: #888;
  margin-top: 3vw;
}
/*#endregion*/

/*#region Category */
.P-C-Grid {
  width: 100%;
  background-color: #ffffff;
  /* display: grid;
  grid-template-columns: repeat(3, 1fr); */
  gap: 20px;
  padding: 2vw;
  box-sizing: border-box;
  border-radius: 1vw;
}
.P-C-G-Card {
  /* background-color: #ff0000; */
  border-radius: 1vw;
  transition: transform 0.3s;
  display: flex;
  gap: 1.5vw;
}
.P-C-G-Card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.P-C-G-C-Media {
  width: 40%;
}
.P-C-G-C-Media img {
  width: 100%;
  height: 17vw;
  object-fit: cover;
  border-radius: 1vw;
}
.P-C-G-C-Content {
  width: 100%;
  display: flex;
}
.P-C-G-C-C-Left {
  width: 70%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5vw;
}
.P-C-G-C-C-Right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: end;
}
.P-C-G-C-C-Right button {
  background: transparent;
  width: 2.5vw;
  height: 2.5vw;
  border: 0;
}
.P-C-G-C-C-Right button svg {
  width: 100%;
  height: 100%;
}
.P-C-G-C-C-L-h3 {
  font-size: 2.2vw;
  color: #0f2c60;
}
.P-C-G-C-C-L-h3.price {
  color: #4b4b4b;
  font-size: 2.5vw;
}
.P-C-G-C-C-L-p {
  font-size: 1.5vw;
  color: #4b4b4b;
  /* margin: 0.5vw 0; */
}
.P-C-G-C-C-L-p.adapted {
  display: none;
}
.P-C-G-C-C-L-p.description {
  font-size: 1.2vw;
  color: #666666;
  margin: 0.5vw 0;
}
.P-C-G-C-C-L-Bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.P-C-G-C-C-L-Bottom a {
  text-decoration: none;
  color: #0f2c60;
  font-weight: 600;
  font-size: 1.2vw;
  transition: color 0.3s ease;
}
.P-C-G-C-C-L-Bottom p {
  font-size: 1.2vw;
  color: #4b4b4b;
  margin: 0;
}
/*#endregion */

/*#region Mortgage */
.Mortgage {
  width: 100%;
  min-height: 100vh;
  background-color: #d9d9d9;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10vw;
  padding-bottom: 3vw;
  gap: 2vw;
  color: black;
}
.M-Container {
  width: 80%;
  /* background-color: red; */
}
.M-C-WelcomePage {
  display: flex;
}
.M-C-WP-Left {
  width: 35%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2vw;
  margin-left: 1vw;
}
.M-C-WP-Left h1 {
  width: 100%;
  text-align: start;
  font-size: 2.6vw;
  color: #071836;
}
.M-C-WP-Left p {
  width: 100%;
  font-size: 1.2vw;
  font-weight: 500;
  color: #4b4b4b;
}
.M-C-WP-L-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.8vw;
}
.M-C-WP-L-F-span {
  display: flex;
  gap: 0.5vw;
}
.M-C-WP-L-F-span input {
  width: 100%;
  padding: 0.3vw 0.5vw;
  border: none;
  border-radius: 0.5vw;
  background-color: transparent;
  border: 0.19vw solid #a2a2a2;
  font-size: 1vw;
  color: #333;
}
.M-C-WP-L-form button {
  width: 100%;
  padding: 0.8vw;
  background-color: #0f2c60;
  color: white;
  border: none;
  border-radius: 0.5vw;
  font-size: 1vw;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.M-C-WP-L-form p {
  font-size: 1vw;
}
.M-C-WP-Right {
  width: 65%;
  display: flex;
  justify-content: end;
}
.M-C-WP-Right img {
  width: 37vw;
}
.W-C-WP-Main {
  width: 100%;
  /* height: 100vw; */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5vw;
  background-color: #fafafa;
  border-radius: 1vw;
}
.W-C-WP-M-Why {
  width: 90%;
  padding: 4vw 1vw 1vw 1vw;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 2vw;
}
.W-C-WP-M-Why h1 {
  font-size: 2vw;
}
.W-C-WP-M-W-Cards {
  width: 100%;
  display: flex;
  gap: 1.5vw;
  justify-content: center;
  padding: 0 2vw;
  box-sizing: border-box;
}
.W-C-WP-M-W-C-Card {
  width: 100%;
  background-color: #f0f0f0;
  padding: 1.5vw 1vw;
  border: 0.12vw solid #0f2c60;
  border-radius: 0.5vw;
  box-shadow: 0 0.2vw 0.5vw rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1vw;
}
.W-C-WP-M-W-C-Card img {
  width: 2vw;
}
.W-C-WP-M-W-C-Card h1 {
  font-size: 1.5vw;
}
.W-C-WP-M-W-C-Card p {
  font-size: 1.2vw;
}
.W-C-WP-M-W-Button {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.W-C-WP-M-W-Button button {
  width: 30vw;
  height: 4vw;
  background-color: #0f2c60;
  border-radius: 1vw;
  color: #fafafa;
  font-size: 1.2vw;
}
.W-C-WP-Main hr {
  width: 90%;
  border: none; /* убираем стандартную границу */
  height: 0.2vw; /* толщина линии */
  background-color: #a2a2a2;
  border-radius: 1vw;
}
.W-C-WP-M-How {
  width: 90%;
  padding: 4vw 1vw 1vw 1vw;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 2vw;
}
.W-C-WP-M-H-Cards {
  width: 100%;
  display: flex;
  gap: 1.5vw;
  justify-content: center;
  padding: 0 2vw;
  box-sizing: border-box;
  flex-direction: column;
}
.W-C-WP-M-H-C-Separator {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 2vw;
}
.W-C-WP-M-H-C-Card {
  width: 20vw;
  background-color: #f0f0f0;
  padding: 1.5vw 1vw;
  border: 0.12vw solid #0f2c60;
  border-radius: 0.5vw;
  box-shadow: 0 0.2vw 0.5vw rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.7vw;
}
.W-C-WP-M-H-C-C-Artilce {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1vw;
  justify-content: start;
}
.W-C-WP-M-H-C-C-Artilce h2 {
  width: 2vw;
  height: 2vw;
  background-color: #0f2c60;
  border-radius: 10vw;
  color: #fafafa;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1vw;
}
.W-C-WP-M-H-C-C-Artilce h1 {
  font-size: 1.5vw;
}
.W-C-WP-M-H-C-Card p {
  font-size: 1vw;
  font-weight: 600;
  color: #4b4b4b;
}
/* Основные стили калькулятора */
.W-C-WP-M-Count {
  width: 90%;
  padding: 2vw 1vw;
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 1vw;
  box-shadow: 0 0.2vw 1vw rgba(0, 0, 0, 0.1);
  border: 0.15vw solid #0f2c60;
}
.W-C-WP-M-C-Header {
  margin-bottom: 2vw;
}
.W-C-WP-M-C-Header h1 {
  font-size: 2vw;
  color: #071836;
  margin-bottom: 0.5vw;
}
.W-C-WP-M-C-Header p {
  font-size: 1.2vw;
  color: #4b4b4b;
}
/* Стили формы */
.W-C-WP-M-C-Form {
  display: flex;
  flex-direction: column;
  gap: 2vw;
}
.W-C-WP-M-C-F-Row {
  display: flex;
  gap: 2vw;
}
.W-C-WP-M-C-F-InputGroup {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5vw;
}
.W-C-WP-M-C-F-InputGroup label {
  font-size: 1vw;
  font-weight: 600;
  color: #4b4b4b;
}
/* Стили для выпадающего списка */
.custom-select {
  position: relative;
}
.custom-select select {
  width: 100%;
  padding: 0.8vw;
  border: 0.15vw solid #a2a2a2;
  border-radius: 0.5vw;
  font-size: 1vw;
  appearance: none;
  background-color: white;
}
.select-arrow {
  position: absolute;
  right: 1vw;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.8vw;
}
/* Стили для слайдера */
.range-container {
  display: flex;
  align-items: center;
  gap: 1vw;
}
.slider {
  flex: 1;
  -webkit-appearance: none;
  height: 0.3vw;
  background: #ddd;
  border-radius: 0.5vw;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.5vw;
  height: 1.5vw;
  background: #0f2c60;
  border-radius: 50%;
  cursor: pointer;
}
.range-value {
  font-size: 1vw;
  min-width: 5vw;
}
/* Стили для полей ввода */
.input-with-currency {
  position: relative;
}
.input-with-currency input {
  width: 100%;
  padding: 0.8vw;
  border: 0.15vw solid #a2a2a2;
  border-radius: 0.5vw;
  font-size: 1vw;
}
.input-with-currency span {
  position: absolute;
  right: 1vw;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1vw;
}
/* Стили для блока результата */
.W-C-WP-M-C-F-InputGroup.result {
  justify-content: flex-end;
}
.result-value {
  padding: 0.8vw;
  font-size: 1.5vw;
  font-weight: bold;
  color: #0f2c60;
  border-bottom: 0.15vw solid #a2a2a2;
}
/* Стили для кнопки */
.calculate-btn {
  width: 100%;
  padding: 1vw;
  background-color: #0f2c60;
  color: white;
  border: none;
  border-radius: 0.5vw;
  font-size: 1.2vw;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1vw;
  transition: background-color 0.3s;
}
.calculate-btn:hover {
  background-color: #1a3d7a;
}
.W-C-WP-M-Banks {
  width: 90%;
  background-color: #fafafa;
  /* padding: ; */
  padding-bottom: 4vw;
  display: flex;
  flex-direction: column;
  gap: 1vw;
}
.W-C-WP-M-B-Card {
  width: 100%;
  border: 0.15vw solid #0f2c60;
  border-radius: 1vw;
  /* padding: 1vw; */
  box-sizing: border-box;
}
.W-C-WP-M-B-Title {
  width: 100%;
  height: 5vw;
  /* background-color: #0f2c60; */
  display: flex;
  /* justify-content: center; */
  border-bottom: 0.15vw solid #a2a2a2;
  align-items: center;
  text-align: center;
  padding-left: 4vw;
  box-sizing: border-box;
  font-size: 2vw;
  color: #4b4b4b;
}
.W-C-WP-M-B-C-Inner {
  height: 12vw;
  padding: 2vw;
  display: flex;
  gap: 2vw;
}
.W-C-WP-M-B-C-Inner span {
  width: 33.33%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5vw;
  align-items: center;
  position: relative;
  /* justify-content: center; */
}
.W-C-WP-M-B-C-Inner span:has(img) {
  justify-content: center;
}
.W-C-WP-M-B-C-Inner span img {
  width: 100%;
  /* height: 100%; */
  /* margin: 0 auto; */
}
.W-C-WP-M-B-C-Inner span h1 {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 0.5vw;
}
.W-C-WP-M-B-C-Inner span h1 p {
  font-size: 1.4vw;
  color: #808080;
  font-weight: 400;
}
.W-C-WP-M-B-C-Inner span h1 p strong {
  color: #4b4b4b;
}
.W-C-WP-M-B-C-Inner span button {
  width: 100%;
  height: 3vw;
  background-color: #0f2c60;
  color: #fafafa;
  font-size: 1vw;
  border-radius: 0.5vw;
  border: 0;
  position: absolute;
  bottom: 0;
  right: 0;
}
/*#endregion */

/*#region Agents */
.Agents {
  width: 100%;
  min-height: 100vh;
  background-color: #d9d9d9;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10vw;
  padding-bottom: 3vw;
  gap: 2vw;
}
.A-Container {
  width: 70%;
}
.A-C-WelcomePage {
  display: flex;
}
.A-C-WP-Left {
  width: 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2vw;
  margin-left: 1vw;
}
.A-C-WP-Left h1 {
  width: 100%;
  text-align: start;
  font-size: 2vw;
  color: #071836;
}
.A-C-WP-Left p {
  width: 100%;
  font-size: 1.2vw;
  font-weight: 500;
  color: #4b4b4b;
}
.A-C-WP-Right {
  width: 60%;
  display: flex;
  justify-content: end;
}
.A-C-WP-Right img {
  width: 30vw;
  padding-right: 2vw;
  box-sizing: border-box;
}
.A-C-MakeFeedback {
  width: 100%;
  /* height: 100vw; */
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  gap: 1vw;
  background-color: #fafafa;
  border-radius: 1vw;
  padding: 1.2vw;
  box-sizing: border-box;
}
.A-C-MakeFeedback h1 {
  font-size: 2vw;
  color: #071836;
  margin-bottom: 0.5vw;
}
.A-C-MakeFeedback p {
  font-size: 1.1vw;
  color: #4b4b4b;
}
.A-C-MakeFeedback span {
  display: flex;
  flex-direction: column;
  gap: 1vw;
}
.A-C-MakeFeedback span h2 {
  font-size: 1.2vw;
}
.A-C-MakeFeedback span input {
  width: 100%;
  padding: 0.8vw;
  border: 0.15vw solid #a2a2a2;
  border-radius: 0.5vw;
  font-size: 1vw;
  appearance: none;
  background-color: white;
}
.A-C-MakeFeedback span textarea {
  width: 100%;
  padding: 0.8vw;
  border: 0.15vw solid #a2a2a2;
  border-radius: 0.5vw;
  font-size: 1vw;
  height: 10vw;
  resize: none;
}
.A-C-Agents {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5vw;
  background-color: #fafafa;
  padding: 1.2vw;
  box-sizing: border-box;
  border-radius: 1vw;
  gap: 1vw;
}
.A-C-Agents h1 {
  font-size: 2vw;
  color: #071836;
}
.A-C-A-Cards {
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 1.5vw;
}
.A-C-A-C-Card {
  width: 100%;
  background-color: #f0f0f0;
  border: 0.12vw solid #0f2c60;
  border-radius: 1vw;
  box-shadow: 0 0.2vw 0.5vw rgba(0, 0, 0, 0.1);
  display: flex;
  padding: 1vw;
  box-sizing: border-box;

  gap: 1vw;
}
.A-C-A-C-Card img {
  width: 10vw;
  height: 10vw;
  border-radius: 100vw;
  object-fit: cover;
}
.A-C-A-C-Card span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5vw;
}
.A-C-A-C-Card span h1 {
  font-size: 1.6vw;
}
.A-C-A-C-Card span p {
  font-size: 1vw;
}
.A-C-A-C-Card span nav {
  display: flex;
  gap: 1vw;
}
.A-C-A-C-Card span nav button {
  width: 10vw;
  height: 2vw;
  border-radius: 0.5vw;
  background-color: #0f2c60;
  font-size: 0.85vw;
  color: #fafafa;
}
.A-C-A-C-Card span nav button.feedback {
  background: transparent;
  color: #071836;
}
.A-C-A-C-C-Mark {
  flex: 1;
  display: inline-block;
  font-size: 1.5vw; /* размер звёзд */
  line-height: 1.6vw; /* расстояние между строками */
  position: relative;
  writing-mode: vertical-rl; /* текст вертикально */
  transform: rotate(-360deg); /* чтобы звёзды шли сверху вниз */
  text-align: center;
}

.A-C-A-C-C-Mark::before {
  content: "★★★★★";
  background: linear-gradient(
    180deg,
    #f5a623 calc(var(--rating) / 5 * 100%),
    #ccc calc(var(--rating) / 5 * 100%)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ccc;
  display: inline-block;
}
.A-C-A-C-C-Mark p {
  rotate: -90deg; /* чтобы текст был читаем */
}
#resultsList {
  list-style: none;
  margin: 0;
  padding: 0;
  /* position: absolute; */
  width: 100%;
  max-height: 15vw;
  overflow-y: auto;
  background: #fff;
  border: 0.15vw solid #0f2c60;
  border-radius: 0.7vw;
  box-shadow: 0 0.5vw 1.5vw rgba(0, 0, 0, 0.15);
  z-index: 1000;

  display: none; /* по умолчанию скрыт */
  flex-direction: column; /* когда активен — колоночный */
}

#resultsList li {
  padding: 0.8vw 1vw;
  font-size: 1vw;
  color: #071836;
  cursor: pointer;
  transition: background 0.25s ease, padding-left 0.25s ease;
  border-bottom: 1px solid #e6e6e6;
}
#resultsList li:last-child {
  border-bottom: none;
}
#resultsList li:hover {
  background: #f0f4fa;
  padding-left: 1.3vw;
}

/*#endregion */

/*#region Tariffs */
.Tariffs {
  width: 100%;
  min-height: 100vh;
  background-color: #d9d9d9;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10vw;
  padding-bottom: 3vw;
  gap: 2vw;
}
.T-Container {
  width: 70%;
}
.T-C-WelcomePage {
  display: flex;
}
.T-C-WP-Left {
  width: 40%;
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  justify-content: center;
  gap: 1.2vw;
  margin-left: 1vw;
}
.T-C-WP-Left h1 {
  width: 100%;
  text-align: start;
  font-size: 2.4vw;
  color: #071836;
}
.T-C-WP-Left p {
  width: 100%;
  font-size: 1.2vw;
  font-weight: 500;
  color: #4b4b4b;
}
.T-C-WP-Left button {
  width: 80%;
  height: 3vw;
  background-color: #0f2c60;
  color: white;
  border: none;
  border-radius: 0.5vw;
  font-size: 1vw;
  font-weight: bold;
  cursor: pointer;
}
.T-C-WP-Right {
  width: 60%;
  display: flex;
  justify-content: end;
}
.T-C-WP-Right img {
  width: 100%;
  padding-right: 2vw;
  box-sizing: border-box;
}
.T-C-Main {
  width: 100%;
  /* height: 100vw; */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5vw;
  background-color: #fafafa;
  border-radius: 1vw;
  /* padding: 1.2vw; */
  box-sizing: border-box;
  position: relative;
  z-index: 3;
}
.T-C-Main hr {
  width: 90%;
  border: none; /* убираем стандартную границу */
  height: 0.1vw; /* толщина линии */
  background-color: #a2a2a2;
  border-radius: 1vw;
}
.T-C-M-Sell {
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1vw;
  padding: 1.5vw;
  z-index: 2;
  background-color: #fafafa;
  border-radius: 1vw 1vw 1vw 1vw;
  transition: border-radius 0.2s ease-in-out;
}
.T-C-M-Sell h1 {
  font-size: 1.5vw;
  color: #071836;
}
.T-C-M-S-Cards {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 1.8vw;
  justify-content: center;
  padding: 0 2vw;
  box-sizing: border-box;
}
.T-C-M-S-C-Card {
  width: 19vw;
  height: 23vw;
  background: transparent;
  padding: 1.5vw;
  box-sizing: border-box;
  border: 0.12vw solid #0f2c60;
  border-radius: 0.5vw;
  box-shadow: 0 0vw 0.8vw rgba(0, 0, 0, 0.336);
  display: flex;
  flex-direction: column;
  gap: 0vw;
}
.T-C-M-S-C-Card.abonement {
  height: 27vw;
}
.T-C-M-S-C-Card h5 {
  font-size: 0.65vw;
  color: #4b4b4b;
}
.T-C-M-S-C-Card img {
  width: 12vw;
  margin: 0 auto;
}
.T-C-M-S-C-Card.abonement img {
  width: 8vw;
}
.T-C-M-S-C-Card h2 {
  width: 100%;
  font-size: 1.3vw;
  color: #0f2c60;
  text-align: center;
}
.T-C-M-S-C-Card ul {
  list-style-position: inside; /* маркер внутри блока */
  padding-left: 0; /* убираем лишние отступы */
}
.T-C-M-S-C-Card li {
  font-size: 0.8vw;
  color: #666666;
  /* text-align: center; */
  text-indent: 0em;
}
.T-C-M-S-C-Card li::marker {
  color: #0f2c60; /* цвет точки */
  font-size: 1.5vw; /* размер */
}
.T-C-M-S-C-Card button {
  width: 100%;
  height: 2.5vw;
  background-color: #0f2c60;
  color: white;
  border: none;
  border-radius: 0.5vw;
  font-size: 0.8vw;
  font-weight: bold;
  cursor: pointer;
  margin: 0 auto;
  margin-top: 2vw;
}
.T-C-M-Buttons {
  display: flex;
  height: 5vw;
  width: 20vw;
  background-color: #a2a2a2;
  position: absolute;
  left: 0;
  top: -2.5vw;
  z-index: 1;
  border-radius: 0.5vw;
}
.T-C-M-Buttons button {
  color: #4b4b4b;
  width: 10vw;
  height: 2.5vw;
  background: transparent;
  border-radius: 0.5vw 0.5vw 0 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8vw;
  border: 0;
}

.T-C-M-Buttons button.active {
  background-color: #fafafa;
  color: #4b4b4b;
  /* border-color: #2c3e50; */
}
/* .T-C-M-Buttons button:hover {
  background-color: #e9e9e9;
} */
.T-C-M-Buttons:has(button.active) + .firstBorder {
  border-radius: 0vw 1vw 1vw 1vw;
}
.hidden {
  display: none;
}
.visible {
  display: flex;
}
/*#endregion */

/*#region AgentProfile */
.AP {
  width: 100%;
  min-height: 100vh;
  background-color: #d9d9d9;
  padding-top: 10vw;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  padding-bottom: 3vw;
}

.AP-Container {
  width: 90vw;
  /* max-width: 1100px; */
  display: flex;
  flex-direction: column;
  gap: 1.6vw;
}

.AP-Card {
  background: #fafafa;
  border-radius: 1vw;
  padding: 1.2vw;
  box-shadow: 0 0.3vw 1vw rgba(0, 0, 0, 0.12);
}

/* Блок агента */
.AP-AgentCard {
  display: flex;
  flex-direction: column;
  gap: 1.2vw;
}

.AP-Name {
  font-size: 1.8vw;
  font-weight: 700;
  color: #0f2c60;
  margin: 0;
}

.AP-AgentInfo {
  display: flex;
  gap: 2vw;
  align-items: flex-start;
}

.AP-Avatar img {
  width: 10vw;
  height: 10vw;
  border-radius: 50%;
  object-fit: cover;
}

.AP-Info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8vw;
}

.AP-Meta p {
  font-size: 1vw;
  color: #555;
  margin: 0;
}

.AP-Rating {
  display: flex;
  align-items: center;
  gap: 1vw;
  margin-top: 0.6vw;
}

.AP-Rating-Num {
  font-weight: 700;
  font-size: 1vw;
  color: #0f2c60;
}

.AP-Star {
  font-size: 1.2vw;
  color: #ccc;
}

.AP-Star.filled,
.AP-Star.half {
  color: #f1b600;
}

/* Форма отзыва */
.AP-Title {
  font-size: 1.2vw;
  font-weight: 700;
  color: #071836;
  margin-bottom: 1vw;
}

.AP-R-Form {
  display: flex;
  flex-direction: column;
  gap: 1vw;
}
.AP-Label {
  font-size: 1vw;
}
.AP-Select {
  width: 12vw;
  padding: 0.6vw 1vw;
  border-radius: 0.6vw;
  border: 0.12vw solid #ccc;
  background: #fff;
  font-size: 1vw;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  appearance: none; /* убираем стандартную стрелку */
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg width='12' height='8' xmlns='http://www.w3.org/2000/svg'><path d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none' fill-rule='evenodd'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.8vw center;
  background-size: 0.8vw auto;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.AP-Select:hover {
  border-color: #0f2c60;
}

.AP-Select:focus {
  outline: none;
  border-color: #0f2c60;
  box-shadow: 0 0 0 0.15vw rgba(15, 44, 96, 0.25);
}

.AP-Textarea {
  width: 100%;
  padding: 1vw;
  border-radius: 0.8vw;
  background: #e9e9e9;
  border: none;
  font-size: 1vw;
  resize: vertical;
}

.AP-FormActions {
  display: flex;
  gap: 1vw;
}

.AP-Button {
  padding: 0.6vw 1.2vw;
  border-radius: 0.6vw;
  text-decoration: none;
  font-size: 1vw;
  font-weight: 600;
  cursor: pointer;
}

.AP-Button.primary {
  background: #0f2c60;
  color: #fff;
  border: none;
}

.AP-Button.outline {
  border: 0.12vw solid #aaa;
  background: transparent;
  color: #333;
}

/* Отзывы */
.AP-Reviews {
  display: flex;
  flex-direction: column;
  gap: 1vw;
}

.AP-R-Card {
  display: flex;
  gap: 1vw;
  background: #fff;
  padding: 1vw;
  border-radius: 0.8vw;
  box-shadow: 0 0.3vw 0.8vw rgba(0, 0, 0, 0.08);
}

.AP-R-Left img,
.AP-R-Default {
  width: 3.5vw;
  height: 3.5vw;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
}

.AP-R-Right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4vw;
}

.AP-R-Header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.AP-R-Name {
  font-weight: 700;
  color: #333;
}

.AP-RatingSmall {
  color: #f1b600;
  font-size: 0.9vw;
}

.AP-R-Text {
  font-size: 0.95vw;
  color: #4b4b4b;
  margin: 0;
}

.AP-R-Date {
  color: #9aa0a6;
  font-size: 0.8vw;
}
/*#endregion */
