/* ==========================================================================
БАЗОВЫЕ СТИЛИ
========================================================================== */
body {
  font-family: 'inter', sans-serif;
  margin: 0;
  position: relative;
  background: #ffffff;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow-x: hidden;
}

body.modal-open,
body.nearby-modal-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

.container {
  margin: 0 auto;
}

/* ==========================================================================
СЕТКА И ПЛИТКИ
========================================================================== */
.pagecontainer {
  /* padding: 16px; */
}

.facebox {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(8, 1fr);
  width: 100%;
  height: 100%;
  gap: 16px;
  grid-auto-flow: row dense;
  align-items: stretch;
}

.facebox .tile {
  height: calc(100% + 16px);
}

.tile.t2-1 {
  display: inline-grid;
  grid-column: span 2;
  grid-row: span 1;
  aspect-ratio: 2 / 1;
}

.tile.t2-2 {
  display: inline-grid;
  grid-column: span 2;
  grid-row: span 2;
  height: 100%;
}

.tile.t4-1 {
  display: inline-grid;
  grid-column: span 4;
  grid-row: span 1;
  height: calc(100% + 16px);
}

.tile.t4-2 {
  display: inline-grid;
  grid-column: span 4;
  grid-row: span 2;
  align-items: center;
  gap: 16px;
  height: calc(100% + 16px);
}

/* ==========================================================================
HEADER И НАВИГАЦИЯ
========================================================================== */
.headerbox {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  z-index: 99999;
  top: 0;
}

.header {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 0px;
  overflow: hidden;
  position: sticky;
  top: 0px;
  z-index: 99999;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  width: calc(100% - 32px);
  gap: 16px;
  padding: 0 16px;
}

.header__logo {
  display: flex;
  gap: 16px;
  text-decoration: none;
  align-items: center;
}

.header__actions {
  display: flex;
  gap: 16px;
  color: #000000;
}

.logo {
  height: 28px;
  width: auto;
}

.herobox {
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  gap: 16px;
  flex-wrap: nowrap;
  aspect-ratio: 2 / 1;
  background: #3d3d3d;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.1);
  margin: 8px 16px;
}

/* ==========================================================================
ПОИСК
========================================================================== */
.mainsearch {
  width: calc(100% - 32px);
  margin: 0 16px;
  display: flex;
  align-content: center;
  justify-content: space-between;
  align-items: center;
}

.mainsearchbox {
  height: 56px;
  width: 100%;
  display: flex;
  position: relative;
}

.mainsearchbox svg {
  margin: 16px;
}

.searchtrigger {
  background: #ffffff;
  height: 100%;
  border-radius: 56px;
  display: flex;
  color: #000000;
  font-weight: 500;
  text-indent: 18px;
  font-size: 18px;
  outline: 0;
  border: 0;
  width: -webkit-fill-available;
  align-items: center;
  box-shadow: 0 10px 10px #00000021;
  border: 1px inset transparent;
  background: linear-gradient(to top, white, white), linear-gradient(to top, #ffffff, #eaeaea);
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  text-indent: 56px;
}

.mainsearchbox svg {
  margin: 0 16px 0px;
  position: absolute;
  top: 0;
  margin: 17px;
}

#searchInput {
  background: #ffffff;
  height: 56px;
  border-radius: 56px;
  display: flex;
  align-items: center;
  width: 100%;
  outline: 0;
  border: 0;
  font-family: 'inter', sans-serif;
  font-weight: 600;
  text-indent: 18px;
  font-size: 18px;
  white-space: nowrap;
  position: relative;
  background-image: linear-gradient(90deg, #ff8225, #943391);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  box-shadow: 0px 1px 16px rgba(0, 0, 0, 0.2), 0px 0px 2px rgba(255, 255, 255, 1);
}

#typewriter {
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  -webkit-background-clip: text;
  background-clip: text;
  color: #000000ad;
}

#typewriter::after {
  content: '|';
  animation: blink 0.7s infinite;
  color: #943391;
}

@keyframes blink {
  from { opacity: 1; }
  to { opacity: 0; }
}

.searchregion {
  border-radius: 30px;
  display: flex;
  align-items: flex-start;
  color: #6c6c6c;
  margin: 0 16px;
  width: auto;
  justify-content: space-between;
  padding: 0 8px;
  font-size: 16px;
  font-weight: 600;
}

/* ==========================================================================
ЛОКАЛЬНАЯ ИНФОРМАЦИЯ (ПОГОДА, ВРЕМЯ)
========================================================================== */
.localinfo {
  width: calc(100% - 16px);
  border-radius: 40px;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  box-shadow: 0 10px 10px #0000002e;
  margin-left: 16px;
  border: 1px inset transparent;
  background: linear-gradient(to top, white, white), linear-gradient(to top, #bababa6e, #bebebe);
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
}

.localinfo img {
  width: 100%;
}

.localinfobox {
  position: absolute;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(0.5px);
  background: #00000054;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.localinfobox .location {
  display: flex;
  align-items: center;
  font-size: 16px;
  gap: 16px;
  flex-wrap: wrap;
  flex-direction: row;
  padding: 0 24px;
  color: #ffffff;
}

.localinfobox .weather {
  display: flex;
  align-items: center;
  font-size: 16px;
  gap: 16px;
  flex-wrap: wrap;
  flex-direction: row;
  padding: 0 24px;
  color: #ffffff;
}

.localinfobox .time {
  display: flex;
  align-items: center;
  font-size: 24px;
  gap: 16px;
  flex-wrap: wrap;
  flex-direction: row;
  padding: 0 24px;
  color: #ffffff;
}

.localinfobox .day {
  display: flex;
  align-items: center;
  font-size: 16px;
  gap: 16px;
  flex-wrap: wrap;
  flex-direction: row;
  padding: 0 24px;
  color: #ffffff;
}

.weather-icon {
  margin-right: 4px;
}

/* ==========================================================================
БЫСТРЫЕ ДЕЙСТВИЯ
========================================================================== */
.quickactions {
  width: calc(100% - 16px);
  border-radius: 30px;
  display: grid;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-column: span 2;
  grid-row: span 2;
  gap: 16px;
}

.quickaction {
  width: 100%;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  box-shadow: 0 10px 10px #00000036;
  border: 1px inset transparent;
  background: linear-gradient(to top, white, white), linear-gradient(to top, #ffffff, #eaeaea);
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  cursor: pointer;
}

/* ==========================================================================
ИНСТРУМЕНТЫ
========================================================================== */
.tools {
  display: grid;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(1, 1fr);
  grid-column: span 4;
  grid-row: span 1;
  gap: 16px;
  width: calc(100% - 32px);
  border-radius: 30px;
  margin: 0 16px;
}

.tool {
  width: 100%;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  box-shadow: 0 10px 10px #00000036;
  border: 1px inset transparent;
  background: linear-gradient(to top, white, white), linear-gradient(to top, #ffffff, #eaeaea);
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  cursor: pointer;
}

/* ==========================================================================
МОДАЛЬНОЕ ОКНО ИНСТРУМЕНТОВ
========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 92vh;
  background: #fff;
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
}

.modal-container.active {
  transform: translateY(0);
}

.modal-drag-handle {
  width: 100%;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
}

.modal-drag-handle::after {
  content: '';
  width: 40px;
  height: 4px;
  background: #ccc;
  border-radius: 2px;
}

.modal-drag-handle:active {
  cursor: grabbing;
}

.modal-header {
  padding: 16px;
  border-bottom: 0px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  text-decoration: none;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 5px 10px;
}

.modal-close:hover {
  color: #333;
}

.modal-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0px;
  -webkit-overflow-scrolling: touch;
}

.modal-content .loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: #666;
  font-size: 16px;
}

/* ==========================================================================
МОДАЛЬНОЕ ОКНО "ЧТО РЯДОМ"
========================================================================== */
.nearby-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 998;
}

.nearby-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nearby-modal-card {
  position: fixed;
  bottom: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 500px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: bottom 0.4s ease, height 0.4s ease, border-radius 0.4s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.nearby-modal-card.hidden {
  bottom: -300px;
}

.nearby-modal-card.preview {
  bottom: 0;
  height: 64px;
  border-radius: 24px 24px 0 0;
  animation: pulse-preview 2s ease-in-out 3;
}

.nearby-modal-card.expanded {
  bottom: 0;
  height: 80vh;
  border-radius: 20px 20px 0 0;
}

@keyframes pulse-preview {
  0%, 100% {
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 -5px 35px rgba(102, 126, 234, 0.4);
  }
}

.nearby-modal-header {
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  background: #fff;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.nearby-modal-header:hover {
  background: #f9f9f9;
}

.nearby-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.nearby-modal-title {
  flex: 1;
}

.nearby-modal-title h4 {
  margin: 0 0 2px 0;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.nearby-modal-title p {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.nearby-modal-action {
  width: 32px;
  height: 32px;
  background: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.nearby-modal-card.expanded .nearby-modal-action {
  transform: rotate(180deg);
}

.nearby-modal-drag-handle {
  width: 100%;
  height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  flex-shrink: 0;
  background: #f5f5f5;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nearby-modal-card.expanded .nearby-modal-drag-handle {
  opacity: 1;
  height: 24px;
}

.drag-indicator {
  width: 40px;
  height: 4px;
  background: #ccc;
  border-radius: 2px;
}

.nearby-modal-drag-handle:active {
  cursor: grabbing;
}

.nearby-modal-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: none;
}
.nearby-modal-content .neartext{display:flex;flex-direction: column;gap: 4px;}
.nearby-modal-content .neartext .subtitle{font-size:16px;font-weight:400}
.nearby-modal-content .neartext .title{font-size:24px;font-weight:800}
.nearby-modal-content .neartext .address{font-size:16px;font-weight:400}
.nearby-modal-content .neartext .note{font-size:16px;font-weight:400}



.nearby-modal-card.expanded .nearby-modal-content {
  opacity: 1;
  display: block;
}

.nearby-modal-content .loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: #666;
  font-size: 16px;
}

.nearby-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.nearby-modal-card.expanded .nearby-modal-close {
  opacity: 1;
}

.nearby-modal-close:hover {
  background: #e0e0e0;
  color: #333;
}

/* ==========================================================================
СПИННЕР ЗАГРУЗКИ
========================================================================== */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
MASTER MENU
========================================================================== */
.mastermenu {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: flex-start;
  align-content: flex-start;
}

.mastermenubox {
  display: flex;
  scroll-behavior: smooth;
  overflow-x: auto;
  scrollbar-width: none;
  scrollbar-height: none;
  -ms-overflow-style: none;
  width: calc(100% - 32px);
  gap: 16px;
  padding: 0 16px;
}

.mastermenubox::-webkit-scrollbar {
  display: none;
}

.mastermenuitem {
  font-size: 12px;
  font-weight: 400;
  flex-shrink: 0;
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(25% - 12px);
}

.mmicon {
  width: 100%;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  overflow: hidden;
  box-shadow: 0 10px 10px #00000036;
  border: 1px inset transparent;
  background: linear-gradient(to top, white, white), linear-gradient(to top, #bababa6e, #d8f3f9);
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
}

.mmicon img {
  width: 100%;
}

/* ==========================================================================
КНОПКИ
========================================================================== */
.button {
  border-radius: 40px;
  display: flex;
  align-items: center;
  font-size: 16px;
  box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.1);
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  border: 0;
  line-height: 14px;
  cursor: pointer;
}

.button.icon {
  padding: 12px 12px;
}

.button.black {
  background: #000000;
  color: #ffffff;
}

.button.grey {
  background: #f2f4f5;
  color: #000000;
}

.button.grey span {
  margin: 0 0 0 8px;
  text-transform: uppercase;
}

button {
  padding: 0;
  font-size: 16px;
  cursor: pointer;
  border-radius: 48px;
  border: none;
  background: none;
  color: #000000;
  font-family: 'inter', sans-serif;
}

/* ==========================================================================
ПОЛЬЗОВАТЕЛЬ И ПРОФИЛЬ
========================================================================== */
.profilecard {
  padding: 8px 16px 32px;
}

.profilecard .container {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.profilecard .container .avatarbox {
  background: #ffffff;
  width: 64px;
  aspect-ratio: 1/1;
  box-shadow: -1px 1px 8px rgba(0, 0, 0, 0.2), 0px 0px 8px rgba(255, 255, 255, 0.9);
  border-radius: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profilecard .container .profileinfobox {
  padding: 0 16px;
}

.profilecard .container .profileinfobox .username {
  font-size: 14px;
  font-weight: 400;
  color: #555;
}

.usermenubox {
  display: flex;
  gap: 24px;
  scroll-behavior: smooth;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: flex-start;
  width: -webkit-fill-available;
  padding: 24px 16px 8px;
}

.usermenubox::-webkit-scrollbar {
  display: none;
}

.usermenuitem {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.umicon {
  width: 64px;
  aspect-ratio: 1/1;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  background: #000000;
  color: #ffffff;
  box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
ПОСТЫ И ЛЕНТА
========================================================================== */
.postcard {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: -1px 1px 8px rgba(0, 0, 0, 0.2);
  color: #000;
  cursor: pointer;
  text-decoration: none;
}

.postcardtop {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.postcard .postimage img {
  width: 100%;
}

.postcardinfo {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.postcardinfo .posttype {
  font-size: 14px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 16px;
  background: #f2f4f5;
}

.postcardinfo .articletitle {
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-size: 24px;
  font-weight: 300;
}

.postcardinfo .article {
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-size: 14px;
}

/* ==========================================================================
ПОИСК И РЕЗУЛЬТАТЫ
========================================================================== */
.searchresultlist {
  background: #ffffff;
}

.searchresultcard {
  font-size: 18px;
  padding: 0 16px 16px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: unset;
  cursor: pointer;
  text-decoration: none;
}

.searchresultcard .image {
  box-shadow: 0px 1px 16px rgba(0, 0, 0, 0.2), 0px 0px 2px rgba(255, 255, 255, 1);
  border-radius: 20px;
  width: 100%;
  aspect-ratio: 3/2;
  background: #f2f4f5;
}

.searchresultcard .info {
  padding: 8px;
}

.searchresultcard .info .storename {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
  text-align: left;
}

.searchresultcard .info .storeaddress {
  font-size: 14px;
  font-weight: 300;
  margin: 0 0 4px;
  color: #000000;
}

/* ==========================================================================
ФОРМЫ
========================================================================== */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  color: #000000;
}

.form-group input,
.form-group select {
  width: -webkit-fill-available;
  border: 0px solid #ddd;
  padding: 16px 16px;
  background: #ffffff;
  border-radius: 32px;
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
  font-family: 'Manrope', sans-serif;
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1), 0px 0px 2px rgba(0, 0, 0, 0.1);
  transition: .3s;
}

.form-group textarea {
  width: -webkit-fill-available;
  border: 0px solid #ddd;
  padding: 16px 16px;
  background: #ffffff;
  border-radius: 32px;
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
  font-family: 'Manrope', sans-serif;
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1), 0px 0px 2px rgba(0, 0, 0, 0.1);
  transition: .3s;
  height: 118px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  background: #ffffff;
  box-shadow: inset 0px 0px 8px rgba(0, 0, 0, 0.1), inset 0px 0px 1px rgba(0, 0, 0, 0.2);
  transition: .3s;
}

/* ==========================================================================
УВЕДОМЛЕНИЯ
========================================================================== */
.notificationsbox {
  margin: 0 16px 32px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  font-size: 14px;
  flex-direction: row;
  gap: 8px;
}

.notificationsbox .iconbox {
  background: #ff8225;
  color: #fff;
}

.iconbox {
  background: #000000;
  height: 28px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.notification {
  margin: 0 8px;
}

.notification .subject {
  font-size: 14px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #000000;
  font-weight: 500;
}

/* ==========================================================================
КАМЕРА И МЕДИА
========================================================================== */
#cameraOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#cameraOverlay.show {
  opacity: 1;
  visibility: visible;
}

#cameraContainer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 100vh;
  background-color: #fff;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  padding: 32px 0;
}

#cameraContainer.show {
  transform: translateY(0);
}

#previewContainer {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  background: #000000;
  overflow: hidden;
}

#preview,
#previewVideo,
#recordedVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(0);
  will-change: transform;
  transition: filter 0.3s ease;
}

#countdown {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 80px;
  font-weight: bold;
  color: red;
  text-shadow: 0 0 10px black;
  z-index: 10;
  display: none;
}

.hidden {
  display: none;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ffffff;
  border-top: 4px solid #000000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

/* ==========================================================================
РЕЙТИНГ И ЗВЕЗДЫ
========================================================================== */
.stars-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  direction: rtl;
  padding: 0 16px 32px;
}

.stars-container input {
  display: none;
}

.star {
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
  opacity: 1;
}

.star svg {
  pointer-events: none;
  transition: all 0.2s ease;
  stroke: #ff8225;
  fill: none;
}

.star:hover svg,
.star:hover ~ .star svg {
  opacity: 1;
}

.star:hover svg {
  fill: #ff8225;
  stroke: #ff8225;
  opacity: 1;
}

#star5:checked ~ .star svg,
#star4:checked ~ .star svg,
#star3:checked ~ .star svg,
#star2:checked ~ .star svg,
#star1:checked ~ .star svg,
#star5:checked ~ .star:first-child svg,
#star4:checked ~ .star:nth-child(2) svg,
#star3:checked ~ .star:nth-child(3) svg,
#star2:checked ~ .star:nth-child(4) svg,
#star1:checked ~ .star:nth-child(5) svg {
  fill: #ff8225;
  stroke: #ff8225;
  opacity: 1;
}

/* ==========================================================================
ПОГОДА ИНСТРУМЕНТ
========================================================================== */
.weathertool {
  padding: 16px;
}

.weathertool .location {
  font-size: 24px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

.weathertool .currentweather {
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
  align-items: flex-end;
}

.weathertool .currentweather .current-temp {
  display: flex;
  flex-direction: column;
}

.weathertool .currentweather #current-temp {
  font-size: 36px;
}

.weathertool .currenticon {
  display: flex;
  justify-content: center;
  aspect-ratio: 1/1;
  width: 100%;
  align-items: center;
  background: radial-gradient(circle, #d1d1d1, #f2f4f5 70%);
}

.weathertool .currenticon .weather-icon {
  aspect-ratio: 1/1;
  width: 50%;
}

.widget.hourly {
  background: #fff;
  border-radius: 20px;
  margin: 0 0 16px;
}

.widget.hourly h3 {
  font-weight: 400;
  font-size: 16px;
  padding: 16px;
  margin: 0;
}

.hourlybox {
  overflow-x: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hourlybox::-webkit-scrollbar {
  display: none;
}

.widget.hourly .hourly-container {
  display: flex;
  gap: 8px;
  width: max-content;
  align-items: flex-start;
  flex-wrap: nowrap;
  flex-direction: row;
  padding: 0 0 16px 0;
}

.hour-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 64px;
}

.hour-time {
  font-size: 12px;
  color: #999;
  font-weight: 300;
}

.hour-icon {
  width: 48px;
}

.hour-temp {
  font-size: 16px;
  font-weight: 500;
}

/* ==========================================================================
ОТЗЫВЫ
========================================================================== */
.reviewslist {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.reviewslist .containertitle {
  border-radius: 30px;
  display: flex;
  align-items: flex-start;
  color: #000000;
  margin: 0;
  width: auto;
  justify-content: space-between;
  padding: 0px 0px 16px 0;
  font-size: 20px;
  font-weight: 600;
}

.reviewauthorcard {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  flex-direction: column;
}

.reviewauthorbox {
  display: flex;
  align-items: center;
  gap: 16px;
}

.reviewauthoravatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.reviewauthoravatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reviewauthorname {
  font-weight: 400;
  font-size: 16px;
  color: #222;
}

.reviewauthorusername {
  font-size: 14px;
  color: #777;
}

.reviewtitle {
  font-size: 18px;
  margin: 12px 0 8px;
  color: #333;
}

.reviewcomment {
  line-height: 1.6;
  color: #000000;
  margin: 16px 0;
}

/* ==========================================================================
АДАПТИВНОСТЬ
========================================================================== */
@media (max-width: 768px) {
  .logo {
    height: 24px;
  }

  .container {
    flex-direction: row;
  }

  .topbox {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
  }

  .headerbox {
    display: flex;
    flex-direction: column;
  }

  .header__actions {
    flex-direction: row;
  }

  .modal-container,
  .nearby-modal-card {
    width: 100%;
  }

  .modal-container.expanded,
  .nearby-modal-card.expanded {
    height: 85vh;
  }
}

@media (min-width: 769px) {
  .container {
    flex-direction: row;
  }

  .topbox {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
  }

  .headerbox {
    display: flex;
    flex-direction: column;
  }

  .header__actions {
    flex-direction: row;
  }
}

/* ==========================================================================
ПРОЧЕЕ
========================================================================== */
.boxtitle {
  margin: 16px 16px 0;
  font-size: 12px;
  background: #fff;
  color: #888;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 32px;
}

.containertitle {
  border-radius: 30px;
  display: flex;
  align-items: flex-start;
  color: #000000;
  margin: 0 16px;
  width: auto;
  justify-content: space-between;
  padding: 16px 8px;
  font-size: 20px;
  font-weight: 600;
}

.backgroundbox {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0 0 20px 20px;
}

.backgroundbox img {
  height: 110%;
  filter: brightness(70%) blur(10px);
}

.pagecontent {
  border-radius: 20px 20px 0 0;
}

.articlebox {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
}

.articlebox textarea {
  border: none;
  border-radius: 20px 20px 0 0;
  padding: 16px;
  font-size: 14px;
  font-family: 'Manrope', sans-serif;
  outline: none;
}

.articlebox .buttonbox {
  margin: 0;
  width: auto;
  border-radius: 0 0 20px 20px;
}

.hintcard {
  margin: 0 0 16px 0;
  padding: 16px;
  background-color: #f8f9fa;
  border-radius: 20px;
}

.hinttext {
  margin: 0 0 16px;
}

.pagination {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 0 0 24px;
}

.paginationbutton {
  padding: 12px;
  background: #f2f4f5;
  text-decoration: none;
  color: #000;
  border-radius: 32px;
  height: 16px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
}

.noreviews {
  padding: 0px 0;
  margin: 0;
}
.permissionRequest{margin:16px;}


/* ==========================================================================
КАМЕРА: OVERLAY И КОНТЕЙНЕР
========================================================================== */
#cameraOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#cameraOverlay.show {
  opacity: 1;
  visibility: visible;
}

#cameraContainer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 100vh;
  background-color: #fff;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  padding: 32px 0;
}

#cameraContainer.show {
  transform: translateY(0);
}

/* ==========================================================================
КАМЕРА: ПРЕДПРОСМОТР И МЕДИА
========================================================================== */
#previewContainer {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  background: #000000;
  overflow: hidden;
}

#preview, 
#previewVideo, 
#recordedVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(0);
  will-change: transform;
  transition: filter 0.3s ease;
}

.preview-container {
  margin-top: 15px;
  text-align: center;
  width: 100%;
}

.preview-container img, 
.preview-container video {
  width: 100%;
}

/* ==========================================================================
КАМЕРА: ИНДИКАТОРЫ И ТАЙМЕРЫ
========================================================================== */
#countdown {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 80px;
  font-weight: bold;
  color: red;
  text-shadow: 0 0 10px black;
  z-index: 10;
  display: none;
}

.countdown-display {
  font-size: 48px;
  font-weight: bold;
  color: #333;
  margin: 10px 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.duration-display {
  color: #000000;
  padding: 8px 16px;
  border-radius: 15px;
  font-size: 14px;
  z-index: 10;
  text-align: center;
}

.progress-container {
  height: 8px;
  background-color: #000000;
  border-radius: 16px;
  margin: 0 16px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: #f5f5f5;
  width: 0%;
  transition: width 0.1s linear;
}

/* ==========================================================================
КАМЕРА: КНОПКИ И УПРАВЛЕНИЕ
========================================================================== */
#captureBtn {
  /* Наследует общие стили button, но имеет специфичные состояния */
}

#captureBtn.capturing {
  opacity: 0.8;
  transform: scale(0.98);
  transition: all 0.2s ease;
}

#captureBtn:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

.mode-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.mode-btn {
  padding: 10px 20px;
  border: none;
  background: #f0f0f0;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
}

.mode-btn.active {
  background: #000;
  color: white;
}

.mode-btn:first-child {
  border-radius: 20px 0 0 20px;
}

.mode-btn:last-child {
  border-radius: 0 20px 20px 0;
}

.grid-btn:active {
  transform: scale(0.95);
}

/* ==========================================================================
КАМЕРА: СЕТКА (GRID)
========================================================================== */
.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.grid-line {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.7);
}

.grid-line.vertical {
  width: 1px;
  height: 100%;
}

.grid-line.horizontal {
  width: 100%;
  height: 1px;
}

/* ==========================================================================
КАМЕРА: ЭКРАНЫ И СОСТОЯНИЯ
========================================================================== */
#recordingScreen {}

#recordingScreen .actionbox {
  display: flex;
  justify-content: space-around;
  padding: 32px;
}

#previewScreenVideo .actionbox, 
#previewScreen .actionbox {
  display: flex;
  justify-content: space-around;
  padding: 16px;
}

#photoScreen .actionbox {
  display: flex;
  justify-content: space-around;
  padding: 32px;
}

#previewScreen .notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s;
}

.notification.success {
  background-color: #4CAF50;
}

.notification.error {
  background-color: #f44336;
}

/* ==========================================================================
КАМЕРА: УТИЛИТЫ И АНИМАЦИИ
========================================================================== */
.hidden {
  display: none;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ffffff;
  border-top: 4px solid #000000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Общие стили кнопок, используемые в камере */
button {
  padding: 0;
  font-size: 16px;
  cursor: pointer;
  border-radius: 48px;
  border: none;
  background: none;
  color: #000000;
  font-family: 'inter', sans-serif;
}

/* ==========================================================================
FLOWFORM: ОСНОВНЫЕ СТИЛИ ФОРМЫ
========================================================================== */
form#flowForm {
  padding: 16px;
}

.form-container {
  /* Обёртка формы */
}

.form-container .form-group {
  margin-bottom: 16px;
}

.form-container .buttonbox {
  width: auto;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  background: none;
  padding: 32px 0;
  margin: 0;
}

/* ==========================================================================
FLOWFORM: ГРУППЫ ПОЛЕЙ
========================================================================== */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  color: #000000;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group select {
  width: -webkit-fill-available;
  border: 0px solid #ddd;
  padding: 16px 16px;
  background: #ffffff;
  border-radius: 32px;
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
  font-family: 'Manrope', sans-serif;
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1), 0px 0px 2px rgba(0, 0, 0, 0.1);
  transition: .3s;
}

.form-group textarea {
  width: -webkit-fill-available;
  border: 0px solid #ddd;
  padding: 16px 16px;
  background: #ffffff;
  border-radius: 32px;
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
  font-family: 'Manrope', sans-serif;
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1), 0px 0px 2px rgba(0, 0, 0, 0.1);
  transition: .3s;
  height: 118px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  background: #ffffff;
  box-shadow: inset 0px 0px 8px rgba(0, 0, 0, 0.1), inset 0px 0px 1px rgba(0, 0, 0, 0.2);
  transition: .3s;
}

.form-group input:selected {
  appearance: menulist-button;
  background-color: #000000;
  color: fieldtext !important;
  transition: .3s;
}

.form-group input[type="button" i]:focus {
  outline: none;
  border-color: #667eea;
  background: #555;
  box-shadow: inset 0px 0px 8px rgba(0, 0, 0, 0.1), inset 0px 0px 1px rgba(0, 0, 0, 0.2);
  transition: .3s;
}

/* ==========================================================================
FLOWFORM: КНОПКИ
========================================================================== */
.btn {
  width: 100%;
  padding: 0.75rem;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background: #5a6fd8;
}

.btn-primary {
  background: #6c757d;
  color: #fff;
}

.btn-primary:hover {
  background: #5a6fd8;
}

.btn-secondary {
  background: #f8f9fa;
  color: #333;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background: #e9ecef;
}

.button {
  border-radius: 40px;
  display: flex;
  align-items: center;
  font-size: 16px;
  box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.1);
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  border: 0;
  line-height: 14px;
  cursor: pointer;
}

.button.icon {
  padding: 12px 12px;
}

.button.black {
  background: #000000;
  color: #ffffff;
}

.button.grey {
  background: #f2f4f5;
  color: #000000;
}

.button.grey span {
  margin: 0 0 0 8px;
  text-transform: uppercase;
}

.ratebox .buttonbox {
  width: auto;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  background: none;
  padding: 32px 0;
  margin: 0;
}

/* ==========================================================================
FLOWFORM: ССЫЛКИ И НАВИГАЦИЯ
========================================================================== */
.form-links {
  text-align: center;
  color: #000000;
}

.form-links a {
  text-decoration: none;
  margin: 0 0.5rem;
  color: #000000;
}

.form-links a:hover {
  text-decoration: underline;
}

.back-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  color: #667eea;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
FLOWFORM: СООБЩЕНИЯ (ОШИБКИ/УСПЕХ)
========================================================================== */
.error-message {
  color: #dc3545;
  margin-bottom: 1rem;
  text-align: center;
}

.success-message {
  color: #28a745;
  margin-bottom: 1rem;
  text-align: center;
}

/* ==========================================================================
FLOWFORM: РЕЙТИНГ (ЗВЕЗДЫ)
========================================================================== */
.stars-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  direction: rtl;
  padding: 0 16px 32px;
}

.stars-container input {
  display: none;
}

.star {
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
  opacity: 1;
}

.star svg {
  pointer-events: none;
  transition: all 0.2s ease;
  stroke: #ff8225;
  fill: none;
}

.star:hover svg,
.star:hover ~ .star svg {
  opacity: 1;
}

.star:hover svg {
  fill: #ff8225;
  stroke: #ff8225;
  opacity: 1;
}

#star5:checked ~ .star svg,
#star4:checked ~ .star svg,
#star3:checked ~ .star svg,
#star2:checked ~ .star svg,
#star1:checked ~ .star svg,
#star5:checked ~ .star:first-child svg,
#star4:checked ~ .star:nth-child(2) svg,
#star3:checked ~ .star:nth-child(3) svg,
#star2:checked ~ .star:nth-child(4) svg,
#star1:checked ~ .star:nth-child(5) svg {
  fill: #ff8225;
  stroke: #ff8225;
  opacity: 1;
}

/* ==========================================================================
FLOWFORM: ОБЩИЕ СТИЛИ КНОПОК
========================================================================== */
button {
  padding: 0;
  font-size: 16px;
  cursor: pointer;
  border-radius: 48px;
  border: none;
  background: none;
  color: #000000;
  font-family: 'inter', sans-serif;
}

button:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}
/* ==========================================================================
WEATHERTOOL: ОСНОВНОЙ КОНТЕЙНЕР
========================================================================== */
.weathertool {
  padding: 16px;
}

.weathertool .location {
  font-size: 24px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
WEATHERTOOL: ТЕКУЩАЯ ПОГОДА
========================================================================== */
.weathertool .currentweather {
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
  align-items: flex-end;
}

.weathertool .currentweather .current-temp {
  display: flex;
  flex-direction: column;
}

.weathertool .currentweather #current-temp {
  font-size: 36px;
}

.weathertool .currentweather .currenttemp {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.weathertool .currentweather .currenttemp #current-desc {
  font-size: 16px;
}

/* ==========================================================================
WEATHERTOOL: ИКОНКА ПОГОДЫ
========================================================================== */
.weathertool .currenticon {
  display: flex;
  justify-content: center;
  aspect-ratio: 1/1;
  width: 100%;
  align-items: center;
  background: #fff;
  background: radial-gradient(#ffffff, #f2f4f5);
  background: radial-gradient(circle, #d1d1d1, #f2f4f5 70%);
}

.weathertool .currenticon .weather-icon {
  aspect-ratio: 1/1;
  width: 50%;
}

/* ==========================================================================
WEATHERTOOL: ПОЧАСОВОЙ ПРОГНОЗ
========================================================================== */
.widget.hourly {
  background: #fff;
  border-radius: 20px;
  margin: 0 0 16px;
}

.widget.hourly h3 {
  font-weight: 400;
  font-size: 16px;
  padding: 16px;
  margin: 0;
}

.hourlybox {
  overflow-x: scroll;
  -ms-overflow-style: none;  /* IE и Edge */
  scrollbar-width: none;     /* Firefox */
}

.hourlybox::-webkit-scrollbar {
  display: none;             /* Chrome, Safari, Edge */
}

.widget.hourly .hourly-container {
  display: flex;
  gap: 8px;
  width: max-content;
  align-items: flex-start;
  flex-wrap: nowrap;
  flex-direction: row;
  padding: 0 0 16px 0;
}

.hour-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 64px;
}

.hour-time {
  font-size: 12px;
  color: #999;
  font-weight: 300;
}

.hour-icon {
  width: 48px;
}

.hour-temp {
  font-size: 16px;
  font-weight: 500;
}

.hour-precip {
  height: 24px;
  font-size: 14px;
}

/* ==========================================================================
WEATHERTOOL: ДНЕВНОЙ ПРОГНОЗ
========================================================================== */
.widget.day {
  background: #fff;
  border-radius: 20px;
  margin: 0 0 16px;
}

.widget.day h3 {
  font-weight: 400;
  font-size: 16px;
  padding: 16px;
  margin: 0;
}

.day-forecast {
  display: flex;
  flex-direction: column;
}

.day-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 16px;
}

.day-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 30%;
}

.prec {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 30%;
}

.day-icon {
  width: 48px;
}

/* ==========================================================================
WEATHERTOOL: ВИДЖЕТЫ И СТАТИСТИКА
========================================================================== */
.widgetbox {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.widgetbox .widget {
  background: #fff;
  width: calc(50% - 8px);
  border-radius: 20px;
  aspect-ratio: 1/1;
}

.stat-item {
  width: 100%;
  display: contents;
}

.stat-label {
  font-weight: 400;
  font-size: 16px;
  padding: 16px 16px 8px;
  margin: 0;
}

.widget .value {
  font-weight: 200;
  font-size: 24px;
  padding: 0 16px;
  margin: 0;
  display: flex;
  gap: 8px;
}

.widget .value.col {
  width: 100%;
  display: flow;
  flex-direction: row;
  justify-content: space-between;
}

#wind-dir,
#gust-value {
  font-size: 16px;
  font-weight: 300;
}

.widget .secondvalue {
  padding: 0 16px;
  margin: 0;
  display: flex;
  gap: 8px;
  font-size: 16px;
  font-weight: 300;
}

/* ==========================================================================
WEATHERTOOL: ПОДСКАЗКИ И ИНФО
========================================================================== */
.hintcard {
  margin: 0 0 16px 0;
  padding: 16px;
  background-color: #f8f9fa;
  border-radius: 20px;
}

.hinttext {
  margin: 0 0 16px;
}

.weather-hint a {
  color: #000000;
  text-decoration: underline;
}

/* ==========================================================================
WEATHERTOOL: ОБЩИЕ СТИЛИ ВИДЖЕТОВ
========================================================================== */
.widget {
  /* Базовые стили для всех виджетов погоды */
}

.widget.hourly,
.widget.day {
  /* Специфичные стили для типов виджетов */
}