.mega {
   position: relative;
   font: 16px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial
}

.megatoggle {
   /* display: inline-flex;
   align-items: center;
   gap: .5rem;
   padding: .6rem 1rem;
   border: 1px solid #e1e4e8;
   border-radius: 8px;
   background: #fff;
   cursor: pointer */
}

.megapanel {
   position: absolute;
   inset-inline-start: 0;
   top: 257px;
   z-index: 3;
   min-width: min(96vw, 1100px);
   max-width: 100vw;
   margin-top: 0;
   border: 1px solid #e5e7eb;
   border-radius: 0;
   background: #fff;
   box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
   padding: 16px;
   padding-top: 40px;
   width: 100%;
}

.megapanel .flex {
   width: 100%;
   height: auto;
   display: flex;
   align-items: flex-start;
   justify-content: space-between;
   gap: 50px;
}

.megapanel .flex .column {
   width: 100%;
}

.megagrid {
   /* display: grid; */
   /* grid-template-columns: repeat(5, minmax(200px, 1fr)); */
   display: table;
   /* gap: 16px */
}

.megacol {
   min-width: 0;
   display: flex;
   flex-direction: column;
   gap: 10px;
   padding-top: 20px;
}

.megacol:first-child {
   padding-top: 0px;
}

.megatitle {
   font-size: 14px;
   font-weight: 700
}

.megatitle a {
   color: #111;
   text-decoration: none
}

.megalist {
   margin: 0;
   padding: 0;
   list-style: none;
   display: grid;
   gap: 6px
}

.megalist a {
   display: block;
   color: #334155;
   text-decoration: none;
   border-radius: 6px;
   padding: 4px 6px
}

.megalist a:hover {
   background: var(--bright-yellow);
   color: var(--white);
}

.city-display {
   font-size: 1.5em;
   font-weight: 600;
   margin-bottom: 16px;
}

.city-btn {
   background: var(--bright-yellow);
   color: var(--brown);
   border: none;
   padding: 12px 20px;
   font-size: 16px;
   font-weight: 600;
   border-radius: 8px;
   cursor: pointer;
}

.city-btn:hover {
   background: #ffe5ae;
}

.modal-overlay {
   display: none;
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: var(--transparent-for-window);
   justify-content: center;
   align-items: center;
   z-index: 999;
}

.modal-overlay.active {
   display: flex;
}

.modal-change {
   background: var(--white);
   width: 90%;
   max-width: 500px;
   height: 670px;
   border-radius: 16px;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
   overflow: hidden;
   position: relative;
   z-index: 1;
}

.modal-header {
   background: var(--bright-yellow);
   color: var(--white);
   padding: 16px 24px;
   font-family: var(--second-family);
   text-align: center;
   position: relative;
}

.modal-close {
   position: absolute;
   top: 10px;
   right: 16px;
   background: none;
   border: none;
   font-size: 24px;
   color: white;
   cursor: pointer;
}

.modal-body {
   padding: 20px;
}

.modal-body input {
   width: 100%;
   height: 40px;
   background: #f5f5f5;
   padding-left: 16px;
   color: var(--dark);
   font-size: 16px;
   border: 0;
   border-radius: 4px;
   outline: none;
}

.city-list {
   list-style: none;
   max-height: 500px;
   overflow-y: scroll;
}

.city-item {
   padding: 12px 16px;
   margin: 6px 0;
   background: #f5f5f5;
   border-radius: 8px;
   cursor: pointer;
   transition: background 0.2s;
}

.city-item:hover {
   background: #e6e6e6ff;
}

@media (max-width:1024px) {
   .megagrid {
      grid-template-columns: repeat(3, 1fr)
   }
}

@media (max-width:720px) {
   .mega {
      width: 100%
   }

   .megapanel {
      position: fixed;
      inset: 0;
      max-width: none;
      border-radius: 0;
      margin: 0;
      padding: 12px;
      padding-top: 120px;
      overflow: auto
   }

   .megagrid {
      grid-template-columns: 1fr
   }

   .megatitle {
      position: sticky;
      top: 0;
      background: #fff;
      padding-block: 8px;
      border-bottom: 1px solid #eee
   }

   section.megacol {
      padding: 10px 0 !important;
   }

   .modal-change {
      width: 100%;
      height: 100%;
   }

   .city-list {
      max-height: calc(100vh - 250px);
   }
}

:root {
   --bright-yellow: #F0C568;
   --border: #B5B5B5;
   --text: #121212;
   --muted: #B5B5B5;
}

.thanks-modal {
   position: fixed;
   inset: 0;
   z-index: 1000;
   display: flex;
   align-items: center;
   justify-content: center;
   font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* затемнение */
.thanks-modal__overlay {
   position: absolute;
   inset: 0;
   background-color: rgba(0, 0, 0, 0.35);
}

/* карточка */
.thanks-modal__card {
   position: relative;
   z-index: 1;
   width: 340px;
   max-width: 90vw;
   background: #fff;
   border-radius: 20px;
   padding: 28px 24px 24px;
   box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
   text-align: center;
   color: var(--text);
}

/* крестик */
.thanks-modal__close {
   position: absolute;
   top: 16px;
   right: 16px;
   border: none;
   background: transparent;
   font-size: 20px;
   cursor: pointer;
   color: var(--text);
}

/* иконка сверху */
.thanks-modal__icon {
   margin-bottom: 16px;
}

.thanks-modal__title {
   margin: 0 0 8px;
   font-size: 16px;
   font-weight: 600;
}

.thanks-modal__text {
   margin: 0 0 20px;
   font-size: 14px;
   line-height: 1.4;
}

/* кнопка */
.thanks-modal__btn {
   width: 100%;
   border-radius: 6px;
   padding: 12px 40px;
   border: none;
   background: var(--bright-yellow);
   color: var(--text);
   font-size: 16px;
   font-weight: 600;
   cursor: pointer;
   display: block;
   text-align: center;
   text-decoration: none;
   color: var(--text);
}

.art-modal {
   position: fixed;
   inset: 0;
   display: flex;
   align-items: center;
   justify-content: center;
   background: rgba(0, 0, 0, .3);
   z-index: 100;
   font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.art-modal__card {
   position: relative;
   width: 360px;
   max-width: 90vw;
   background: #fff;
   border-radius: 24px;
   padding: 24px 24px 20px;
   box-shadow: 0 16px 40px rgba(0, 0, 0, .15);
}

.art-modal__close {
   position: absolute;
   top: 16px;
   right: 16px;
   border: none;
   background: transparent;
   font-size: 20px;
   cursor: pointer;
   color: var(--text);
}

.art-modal__close:hover {
   color: var(--bright-yellow);
}

.art-modal__text {
   margin: 0 24px 20px 0;
   font-size: 14px;
   line-height: 1.4;
   text-align: center;
}

.art-modal__field {
   display: block;
   margin-bottom: 10px;
}

.art-modal__textarea {
   width: 100%;
   min-height: 120px;
   padding: 10px 12px;
   border-radius: 10px;
   border: 2px solid #F0C568;
   resize: vertical;
   font: 14px/1.4 inherit;
   box-sizing: border-box;
   outline: none;
   resize: none;
}

.art-modal__hint {
   font-size: 10px;
   color: #B5B5B5;
   margin-bottom: 24px;
}

.art-modal__hint span {
   color: #B5B5B5;
}

.art-modal__divider {
   height: 1px;
   background: #B5B5B5;
   margin-bottom: 16px;
}

.art-modal__submit {
   width: 100%;
   padding: 12px 14px;
   border-radius: 6px;
   border: none;
   background: #F0C568;
   color: #111;
   font-size: 15px;
   font-weight: 600;
   cursor: pointer;
}

.art-modal__submit:hover {
   opacity: 0.8;
}