/* NEODROP 2030 - Global Styles */
:root {
    --radius-large: 24px;
    --radius-medium: 16px;
    --radius-small: 8px;
    --shadow-sm: 0 4px 12px var(--tint-brand-08);
    --shadow-md: 0 8px 24px var(--tint-brand-15);
    --futuristic-font: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --logo-font: 'Grandstander', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --card-shadow: 0 10px 30px var(--overlay-soft);
    --card-hover-shadow: 0 15px 40px var(--tint-brand-15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: var(--futuristic-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Search Overlay */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--overlay-strong);
    z-index: calc(var(--z-sticky) - 1);
}

.search-focused .search-overlay {
    display: block;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    gap: 2rem;
    height: 80px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.header_left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex: 0 0 auto;
}

/* Стили для бейджа с количеством сообщений */
.message-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--error-color);
    color: var(--text-on-brand);
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0);
}

.message-badge.has-messages {
    opacity: 1;
    transform: scale(1);
}

.message-badge:empty {
    display: none;
}

/* Для десктопной версии в хедере */
.header_right .nav-item,
.header_right2 .nav-item {
    position: relative;
}

.header_right .message-badge,
.header_right2 .message-badge {
    top: 5px;
    right: 10px;
}

/* Для мобильной нижней панели */
.mobile-bottom-panel .nav-item {
    position: relative;
}

.mobile-bottom-panel .message-badge {
    top: 2px;
    right: 5px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
}

/* Анимация при новом сообщении */
@keyframes pulse-message {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 var(--error-color);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(255, 34, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 34, 0, 0);
    }
}

@media (max-width: 1000px) {
    .header_right .message-badge,
    .header_right2 .message-badge {
        top: 0;
        right: 0;
        min-width: 16px;
        height: 16px;
        font-size: 9px;
    }
    .mobile-bottom-panel .message-badge {
    top: 0px;
    right: 0px;
    min-width: 15px;
    height: 15px;
    font-size: 10px;
}
}
/* Улучшенные стили для счетчика сообщений */
.message-badge.high-count {
    min-width: 22px;
    height: 18px;
    font-size: 10px;
    border-radius: 9px;
    padding: 0 4px;
}

/* Анимация для нового сообщения */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 34, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 34, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 34, 0, 0);
    }
}

.message-badge.new-message {
    animation: pulse-glow 0.6s ease-out;
}

.message-badge:not(.has-messages) {
    display: none !important;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.logo-img {
    height: 70px;
    width: auto;
    transition: var(--transition);
}
@media (hover: hover) {
  .logo-link:hover .logo-img {
      transform: scale(1.05);
      filter: drop-shadow(0 5px 15px var(--tint-brand-30));
  }
}


.header_center {
    flex: 1;
    min-width: 0;
    margin: 0 2rem;
    position: relative;
}

.search_form {
    position: relative;
    width: 100%;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.search-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.search-logo {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: none;
}

.search-logo img {
    height: 24px;
    width: 24px;
}

.back-search-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    padding: 0;
    z-index: 2;
    display: none;
}

.back-icon {
    width: 100%;
    height: 100%;
}

.search_field {
    width: 100%;
    padding: 1rem 3rem 1rem 2.5rem;
    border: 2px solid var(--gray-medium);
    border-radius: var(--radius-large);
    font-size: 1.1rem;
    transition: var(--transition);
    background-color: var(--gray-light);
    font-family: inherit;
    box-shadow: var(--shadow-sm);
    height: 55px;
    min-width: 0;
}

.search-focused .search_field {
    box-shadow: 0 0 15px var(--tint-brand-20);
}

.search_field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--tint-brand-10);
    background-color: var(--surface);
}

.clear-search-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    padding: 0;
    opacity: 0.5;
    transition: opacity 0.3s;
    display: none;
}

.clear-search-btn:hover {
    opacity: 1;
}

.clear-search-btn svg {
    width: 100%;
    height: 100%;
    fill: var(--text-light);
}

.search_field:not(:placeholder-shown) + .clear-search-btn {
    display: block;
}

.search-submit-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    display: none;
}

.search-icon {
    height: 20px;
    width: 20px;
}

.search_btn {
    padding: 0 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-on-brand);
    border: none;
    border-radius: var(--radius-large);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    height: 55px;
    min-width: 120px;
}
@media (hover: hover) {
  .search_btn:hover {
      background: linear-gradient(135deg, var(--primary-dark) 0%, #0047b3 100%);
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
  }
}


.search_btn:active {
    transform: scale(0.98);
}

.search_btn.cancel-btn {
    background: var(--gray-light);
    color: var(--text-color);
    display: none;
}
@media (hover: hover) {
  .search_btn.cancel-btn:hover {
      background: var(--gray-medium);
      transform: none;
      box-shadow: none;
  }
}


.search_btn.search-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-on-brand);
    display: none;
}

.suggestions {
    position: absolute;
    top: 108%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-md);
    border-top-left-radius: 0;
    border-top-right-radius:0;
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    border: 1px solid var(--gray-medium);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.suggestions a {
    display: flex;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--gray-light);
    align-items: center;
    gap: 1rem;
}

.suggestions a:last-child {
    border-bottom: none;
}

.suggestions a:hover {
    background-color: var(--primary-light);
}

.suggestion-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-small);
    object-fit: cover;
    background-color: var(--gray-light);
}

.suggestion-text {
    flex: 1;
}

.suggestion-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.suggestion-category {
    font-size: 0.85rem;
    color: var(--text-light);
}

.search-loading {
    display: none;
    padding: 1rem;
    text-align: center;
    color: var(--text-light);
}

.search-loading::after {
    content: " ";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--gray-medium);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
   100% { transform: rotate(360deg); }
}

.header_right1, .header_right2 {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    flex-wrap: wrap;
}

.authBtn {
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-on-brand);
    border-radius: var(--radius-large);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    height: 55px;
    display: flex;
    align-items: center;
}
@media (hover: hover) {
  .authBtn:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow-md);
  }
}


/* Navigation Items */
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    gap: 4px;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: var(--radius-medium);
    min-width: 70px;
    height: 70px;
    justify-content: center;
}

.nav-item:hover {
    background-color: var(--primary-light);
}

.nav-item img {
    height: 24px;
    width: 24px;
    transition: all 0.3s ease;
}

.nav-item span {
    font-size: 12px;
    opacity: 0.8;
    text-align: center;
}

/* Footer Styles */
footer {
    background: var(--surface);
    padding: 3rem 2rem 2rem;
    margin-top: 3rem;
    border-top: 1px solid var(--gray-medium);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.03);
}

.upper_footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-medium);
}

.upper_footer_block {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.svg {
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    border-radius: var(--radius-medium);
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.svg_information h2 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.svg_information span {
    display: block;
    color: var(--text-light);
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

.lower_footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.lower_footer_left {
    padding-right: 2rem;
}

.lower_footer_left h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 1rem 0;
    font-family: var(--logo-font);
    font-weight: 700;
}

.lower_footer_left p {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.lower_footer_left h2 {
    margin: 1.8rem 0 1.2rem;
    color: var(--text-color);
    font-size: 1.4rem;
}

.icons {
    display: flex;
    gap: 1.2rem;
}

.icon {
    width: 48px;
    height: 48px;
    background-size: contain;
    background-repeat: no-repeat;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
@media (hover: hover) {
  .icon:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-md);
  }
}


.lower_footer_right h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.agreements_block {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem;
    border-radius: var(--radius-medium);
    transition: var(--transition);
    margin-bottom: 1rem;
    background: var(--gray-light);
}
@media (hover: hover) {
  .agreements_block:hover {
      transform: translateX(8px);
      background: var(--primary-light);
      box-shadow: var(--shadow-sm);
  }
}


.file_icon {
    width: 28px;
    height: 28px;
    filter: invert(36%) sepia(91%) saturate(2590%) hue-rotate(202deg) brightness(101%) contrast(101%);
}

.agreements_block p {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Mobile Bottom Panel */
.mobile-bottom-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    justify-content: space-around;
    align-items: center;
    background: var(--surface);
    padding: 5px 0;
    box-shadow: 0 -2px 10px var(--overlay-soft);
    z-index: var(--z-sticky);
    border-top: 1px solid var(--gray-medium);
}

.mobile-bottom-panel .nav-item {
    padding: 0.3rem;
    height: auto;
    /* Каждый пункт занимает равную долю панели. Раньше ширина зависела от
       длины подписи: в «Ещё» (31px) попасть было заметно труднее, чем
       в «Профиль» (53px), и расстояния между значками гуляли. */
    flex: 1;
    min-width: 0;
}

.mobile-bottom-panel .nav-item span {
    font-size: 10px;
}

.clear-search-btn {
        right: 20px;
    }

/* Utility Classes */
.desktop-only {
    display: none;
}

.mobile-only {
    display: none;
}

/* Адаптивность шапки */
@media (max-width: 1400px) {
    .header-container {
        max-width: 100%;
        padding: 0 0.3rem;
    }
}

@media (max-width: 1200px) {
    header {
        height: auto;
        padding: 0 0 0 0;
        flex-wrap: wrap;
    }
    .suggestions {
    top: 99%;
    }
    .header_center {
        margin: 0 1rem;
    }
    
    .search_field {
        padding: 1rem 3rem 1rem 2.5rem;
    }
    
    .search_btn {
        padding: 0 1.5rem;
    }
}

@media (max-width: 1001px) {
 header {
        padding: 0.21rem 0 0.21rem 0;

    }
    .suggestions {
    top: 90%;
    }
    .logo-img {
        height: 70px;
    }
    
    .search_form {
        flex-direction: row;
    }
    
    .search_btn {
        margin-left: 0.5rem;
        padding: 0.8rem;
        width: auto;
        height: 50px;
        min-width: 100px;
    }
    
    .authBtn {
        padding: 0.7rem 1.2rem;
        height: 50px;
        font-size: 0.95rem;
    }
    
    /* Mobile specific styles */
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block;
    }
    
    .header-container {
        flex-wrap: wrap;
    }
    
    .header_left {
        display: none;
    }
    
    .header_center {
        order: 2;
        width: 100%;
        margin: 10px 0 0;
    }
    
    .header_right {
        display: none;
    }
    
    .search_form {
        position: relative;
    }
    
    .search_field {
        padding: 0.9rem 4.7rem 0.9rem 3rem;
    }
    
    .clear-search-btn {
        right: 45px;
    }
    
    .search-submit-btn {
        display: flex;
        right: 15px;
    }
    
    .back-search-btn {
        display: flex;
        left: 15px;
    }
    
    .search-logo {
        display: flex;
        left: 15px;
    }

     .search-logo img {
        display: flex;
    height: 35px;
    width: 35px;
}


    .mobile-bottom-panel {
        display: flex;
    }
    
    /* Адаптация выпадающих подсказок */
    .suggestions {
        width: 100vw;
        left: 0 !important;
        max-width: 100%;
    }
    
    .mobile-search-focused .header_left,
    .mobile-search-focused .header_right {
        display: none;
    }
    
    .mobile-search-focused .header_center {
        margin: 0;
    }
}

@media (min-width: 781px) {
    .desktop-only {
        display: flex;
    }
     .search-logo img {
        display: flex;
    height: 30px;
    width: 30px;
}
    
    .search_btn.search-btn {
        display: flex;
    }
    
    /* Улучшаем внешний вид крестика на компьютере */
    
}

@media (max-width: 576px) {
    .search_field {
        padding: 0.9rem 2.8rem 0.9rem 2.8rem;
        font-size: 1rem;
        height: 50px;
    }
    
    .search_btn {
        padding: 0 0.8rem;
        font-size: 0.85rem;
        min-width: 80px;
    }
    
    .suggestions a {
        padding: 0.8rem 1.2rem;
    }
    
    .authBtn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        height: 45px;
    }
    
    .upper_footer_block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .mobile-bottom-panel {
        padding: 1px 0;
        padding-bottom: 11px;
    }
    
    .mobile-bottom-panel .nav-item img {
        width: 20px;
        height: 20px;
    }
    
    .nav-item {
        min-width: 50px;
        height: 50px;
    }
     .search-logo img {
        display: flex;
    height: 30px;
    width: 30px;
}
}

/* Loader Styles */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: var(--z-loader);
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.loader-animation {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    width: 100%;
}

.loader-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    animation: float 1.5s infinite ease-in-out;
    box-shadow: 0 5px 15px var(--tint-brand-30);
}

.loader-circle:nth-child(2) {
    animation-delay: 0.2s;
    background-color: #00c4ff;
}

.loader-circle:nth-child(3) {
    animation-delay: 0.4s;
    background-color: var(--primary-color);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 2rem;
    letter-spacing: 1px;
    position: relative;
    font-family: var(--logo-font);
}

.loader-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.loader-dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    opacity: 0.6;
}

.loader-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

/* Стили для нижней панели на мобильных устройствах */
@media (max-width: 780px) {
    .mobile-bottom-panel {
        display: flex;
    }
}

/* Добавить в конец файла */
.countdown-blue {
    font-size: 14px;
    color: #2196F3;
    font-weight: 600;
    margin-top: 5px;
    background: var(--info-bg);
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #bbdefb;
}

.countdown-blue.expiring {
    color: #f44336;
    background: var(--danger-bg);
    border-color: #ffcdd2;
}

/* Убедимся, что кнопка лупы на мобильной версии всегда видима */
@media (max-width: 780px) {
    .search-submit-btn {
        display: flex !important;
    }
}

/* Отступы поля поиска на мобильной версии.
   Иконка занимает до 45px от края (центр 30px, ширина 30px), поэтому
   52px хватает с запасом. Прежние 4.5rem = 72px оставляли у лупы
   пустоту в полпальца. */
@media (max-width: 780px) {
    .search_field {
        padding: 0.9rem 52px 0.9rem 52px !important;
    }
}

/* Footer Styles */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--gray-light, var(--gray-light));
  padding: 40px 20px 30px;
  margin-top: auto;
  color: var(--text-color, var(--text-color));
  font-size: 14px;
  box-shadow: 0 -4px 12px var(--overlay-soft);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-column h4 {
  color: var(--primary-color, var(--primary-color));
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 10px;
}

.footer-column a {
  color: var(--text-light, var(--text-light));
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.footer-column a:hover {
  color: var(--primary-color, var(--primary-color));
  text-decoration: underline;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo img {
  height: 32px;
  width: auto;
}

.footer-logo span {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color, var(--primary-color));
  letter-spacing: -0.5px;
}

.footer-copyright {
  margin: 8px 0 4px;
  color: var(--text-light, var(--text-light));
}

.footer-requisites {
  font-size: 12px;
  color: var(--gray-dark, var(--gray-dark));
  margin-top: 8px;
}

.social-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.social-links a {
  color: var(--primary-color, var(--primary-color));
  font-weight: 600;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--primary-light, var(--primary-light));
  transition: all 0.2s ease;
}

.social-links a:hover {
  background: var(--primary-color, var(--primary-color));
  color: var(--text-on-brand);
}

#cookie-settings-link {
  cursor: pointer;
}

/* Адаптивность футера */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .site-footer {
    padding: 30px 16px 20px;
    text-align: center;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .social-links {
    justify-content: center;
  }
}
/* ==========================================
   СТРОКА ПОИСКА: ВЫРАВНИВАНИЕ ИКОНОК
   ========================================== */

@media (max-width: 1001px) {
  /* Кнопки в строке выросли до 44px ради пальца (ui.css), а логотип остался
     30px. При одинаковом left: 15px иконка стрелки оказывалась правее места
     логотипа, а лупа — дальше от края, чем нужно. Поэтому позиционируем не
     край кнопки, а её центр: 30px от края формы — там же, где центр
     логотипа. */
  .back-search-btn,
  .search-submit-btn {
    width: var(--tap-target);
    height: var(--tap-target);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .back-search-btn {
    left: calc(30px - var(--tap-target) / 2);
  }

  .search-submit-btn {
    right: calc(30px - var(--tap-target) / 2);
  }
}
