* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    background: #f5f5f7;
}

/* Навигация */
header {
    background: #111;
    color: #fff;
    padding: 1rem 2rem;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}
nav .logo {
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
nav a {
    color: #ddd;
    text-decoration: none;
    font-size: 0.95rem;
}
nav a:hover { color: #fff; }

/* Hero-секция с фото и текстом */
.hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 3rem;
    background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
    color: #fff;
}
.hero-overlay h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}
.hero-overlay p {
    font-size: 1.15rem;
    opacity: 0.95;
}

/* Контейнер */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
h1, h2 {
    margin: 1.5rem 0 1rem;
    color: #111;
}
p { margin-bottom: 1rem; }

/* Быстрые характеристики */
.quick-specs {
    list-style: none;
    margin: 1rem 0;
}
.quick-specs li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}
.quick-specs li:last-child { border-bottom: none; }

/* Заметки */
.notes { list-style: none; margin: 1rem 0; }
.notes li {
    padding: 0.75rem 0;
    border-bottom: 1px dashed #ddd;
}
.notes li:last-child { border-bottom: none; }

/* Таблица характеристик */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.specs-table th,
.specs-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}
.specs-table th {
    background: #111;
    color: #fff;
    font-weight: 600;
}
.specs-table tr:nth-child(even) td { background: #fafafa; }

/* Галерея */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.2s;
    cursor: pointer;
}
.gallery img:hover { transform: scale(1.02); }

/* Ссылки */
.links-list {
    list-style: none;
    margin: 1rem 0 2rem;
}
.links-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #eee;
}
.links-list a {
    color: #0066cc;
    text-decoration: none;
}
.links-list a:hover { text-decoration: underline; }

/* Футер */
footer {
    background: #111;
    color: #aaa;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
    font-size: 0.9rem;
}
footer a {
    color: #ddd;
    text-decoration: none;
}
footer a:hover { color: #fff; }

/* Адаптив */
@media (max-width: 640px) {
    .hero-overlay { padding: 1.5rem; }
    .hero-overlay h1 { font-size: 1.8rem; }
    .hero-overlay p { font-size: 1rem; }
    nav {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    nav ul { gap: 1rem; }
}