/* -------------------------------------------------
   Общие стили
   ------------------------------------------------- */
body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    background: #f8f9fa;
}

/* -------------------------------------------------
   Бар (шапка) сверху
   ------------------------------------------------- */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2c3e50;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* -------------------------------------------------
   Логотип‑иконка в левом верхнем углу шапки
   ------------------------------------------------- */
.top-logo {
    width: 32px;
    height: 32px;
    position: absolute;
    left: 12px;  
    top: 50%;      
    transform: translateY(-50%);
}

/* Вертикальные разделители */
.separator {
    width: 2px;
    height: 28px;
    background: #ecf0f1;
    margin: 0 24px;
}

/* -------------------------------------------------
   Кнопка в баре
   ------------------------------------------------- */
.nav-button {
    background: #1abc9c;      /* бирюзовый */
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background .2s ease;
    /* Чтобы кнопка оставалась в центре, задаём ей
       автоматический боковой отступ. */
    margin-left: auto;
    margin-right: auto;
}

/* При наведении – чуть темнее */
.nav-button:hover {
    background: #149a86;
}

/* -------------------------------------------------
   Содержание главной страницы
   ------------------------------------------------- */
main {
    text-align: center;
    margin-top: 10%;
}
h1 {
    color: #2c3e50;
}

/* -------------------------------------------------
   Страница Wishlist (grid‑layout)
   ------------------------------------------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 20px;
    max-width: 1350px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Плитка */
.tile {
    border: 2px solid #2c3e50;
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
    background: #fff;
    transition: transform .15s ease, box-shadow .15s ease;
}
.tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* Картинка в плитке */
.tile img {
    width: 100%;
    height: auto;
    display: block;
}

/* Описание под картинкой */
.tile .caption {
    text-align: left;
    padding: 12px;
    font-size: .95rem;
    color: #333;
    white-space: pre-line;
}
.tile .text {
    text-align: left;
    padding: 2px;
    font-size: .75rem;
    color: #333;
    white-space: pre-line;
}

/* Ссылка, охватывающая всю плитку */
.tile a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.spec-list {
    text-align: left;
    margin: 0;
    padding-left: 1.4em;
}

.profile-link {
    color: inherit;
    text-decoration: none;
    font-weight: normal;
    text-decoration: underline;
}

.profile-link:hover {
    text-decoration: underline;
}

/* -------------------------------------------------
   Адаптивность (по желанию)
   ------------------------------------------------- */
@media (max-width: 600px) {
    .grid { grid-template-columns: 1fr; }
}