body {
  margin: 0;
  font-family: "Inter", sans-serif;
}
* {
  box-sizing: border-box;
}

.header {
  height: 80px;
  background: white;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: center;
}

.header-content {
  width: 1440px;
  max-width: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container img {
  height: 40px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.flag-icon {
  width: 24px;
  border-radius: 2px;
}
.arrow {
  font-size: 16px;
  color: #555;
}
.globe {
  font-size: 20px;
  color: #333;
}
.login-link {
  color: #e85d26;
  text-decoration: underline;
  font-weight: 600;
  font-size: 14px;
}

.search-bar {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  width: 250px;
}
.search-icon {
  width: 16px;
  opacity: 0.5;
}
.search-bar input {
  background: transparent;
  border: none;
  outline: none;
  margin-left: 10px;
  width: 100%;
  font-size: 14px;
}

.cta-buttons {
  display: flex;
  gap: 10px;
}
.btn {
  padding: 10px 24px;
  border-radius: 24px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s;
}
.btn-outline {
  background: white;
  border: 1px solid #e85d26;
  color: #e85d26;
}
.btn-outline:hover {
  background: #fff5f0;
}

.btn-filled {
  background: #e85d26;
  border: 1px solid #e85d26;
  color: white;
}
.btn-filled:hover {
  background: #d14d1b;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
}

.modal-overlay.show {
  display: flex;
  opacity: 1 !important;
  visibility: visible !important;
}

.modal-box {
  width: 900px;
  max-width: 90%;
  height: 500px;
  background: white;
  border-radius: 16px;
  display: flex;
  overflow: visible; /* ИСПРАВЛЕНО: было hidden, стало visible */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.modal-left {
  flex: 1;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top-left-radius: 16px; /* Добавлено скругление */
  border-bottom-left-radius: 16px; /* Добавлено скругление */
  background: white;
}

.title-orange {
  font-size: 28px;
  font-weight: 800;
  color: #e85d26;
  line-height: 1.2;
  margin: 0 0 20px 0;
}
.title-dark {
  font-size: 28px;
  font-weight: 800;
  color: #333;
  line-height: 1.2;
  margin: 0 0 20px 0;
}

.popup-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-group input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 12px 0;
  font-size: 16px;
  outline: none;
  background: transparent;
}
.input-group input:focus {
  border-bottom-color: #e85d26;
}

.custom-select-wrapper {
  position: relative;
  border-bottom: 1px solid #ccc;
  cursor: pointer;
}
.selected-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.selected-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #000;
}
.arrow-icon {
  font-size: 20px;
  color: #757575;
}

.popup-dropdown-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ddd;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.popup-dropdown-list.open {
  display: block;
}

.dropdown-header {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  background: #f9f9f9;
}
.dropdown-item {
  padding: 10px 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
}
.dropdown-item:hover {
  background: #fff3e0;
  color: #e85d26;
}
.dropdown-divider {
  height: 1px;
  background: #eee;
  margin: 0;
}

.btn-submit {
  background: #e85d26;
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  margin-top: 15px;
  width: fit-content;
}

.modal-right {
  flex: 1;
  position: relative;
  background: #f0f0f0;
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
  overflow: hidden;
}
.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.emoji-bubble {
  position: absolute;
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.e-heart {
  top: 20%;
  right: 25%;
  color: #ff0033;
}
.e-laugh {
  bottom: 40%;
  left: 15%;
}
.e-like {
  bottom: 25%;
  right: 15%;
  color: #4a90e2;
}

.tags-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tag-item {
  background: #eeeeee;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s, color 0.2s;
  user-select: none;
  border: 1px solid transparent;
}

.tag-item:hover {
  background-color: #e0e0e0;
}

.tag-item input {
  display: none;
}

.tag-text {
  font-size: 11px;
  font-weight: 800;
  color: #666;
  line-height: 1.3;
}

.checkmark {
  width: 24px;
  height: 24px;
  background: white;
  border: 2px solid #ccc;
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
}

.tag-item.selected {
  background: #ff0033 !important;
  border-color: #ff0033;
}

.tag-item.selected:hover {
  background: #d6002b !important;
}

.tag-item.selected .tag-text {
  color: white !important;
}

.tag-item.selected .checkmark {
  border: none;
  background-color: transparent;

  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='24' height='24' rx='4' fill='white'/%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z' fill='%23ff0033'/%3E%3C/svg%3E");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 24px;
  height: 24px;

  transform: translate(-2px, -2px);
}

.tag-item.selected .checkmark::after {
  content: none;
  display: none;
}
