/* encoding: UTF-8 */
/* Базовые переменные */
:root {
    --color-bg: #ffffff;
    --color-text: #111111;
    --color-muted: #666666;
    --color-accent: #0d6efd;
    --color-wa: #25D366;
    --color-tg: #229ED9;
    --color-border: #e5e7eb;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Шапка */
.site-header {
    border-bottom: 1px solid var(--color-border);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 16px;
}

.brand h1 {
    margin: 0;
    font-size: 22px;
}

.tagline {
    margin: 4px 0 0;
    color: var(--color-muted);
    font-size: 14px;
}

.contacts {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.phone {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
}

.phone:hover {
    text-decoration: underline;
}

.messengers {
    display: flex;
    gap: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: transform .06s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn img {
    display: block;
}

.btn-wa img {
    transform: scale(1.45);
    transform-origin: center;
    width: 36px;
    height: 36px;
}

.btn-wa {
    background: var(--color-wa);
}

.btn-tg {
    background: var(--color-tg);
}

/* Хиро */
.hero {
    padding: 26px 0 6px;
}

.hero h2 {
    margin: 0 0 6px;
    font-size: 28px;
}

.hero p {
    margin: 0;
    color: var(--color-muted);
}

/* Каталог */
.catalog {
    padding: 10px 0 60px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

.card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f7f7f7;
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Индикатор загрузки изображений */
.image-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 8px;
    z-index: 2;
}

.thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
    border-top: 1px solid var(--color-border);
}

.thumbs img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.thumbs img:hover {
    opacity: 1;
    transform: scale(1.05);
    border-color: var(--color-accent);
}

.thumbs img.active {
    opacity: 1;
    border-color: var(--color-accent);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.card-title {
    margin: 0;
    font-size: 18px;
}

.card-desc {
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.4;
}

.card-desc ul,
.card-desc ol {
    margin: 8px 0;
    padding-left: 20px;
}

.card-desc li {
    margin: 4px 0;
}

.card-desc strong,
.card-desc b {
    font-weight: 600;
    color: var(--color-text);
}

.card-desc em,
.card-desc i {
    font-style: italic;
}

.card-desc a {
    color: var(--color-accent);
    text-decoration: underline;
}

.card-desc a:hover {
    color: #0056b3;
}

.card-dimensions,
.card-height {
    margin: 0;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 500;
}

.card-dimensions strong,
.card-height strong {
    color: var(--color-accent);
}

.prices {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-old {
    color: var(--color-muted);
    text-decoration: line-through;
}

.price-new {
    color: #0a7c2f;
    font-weight: 800;
    font-size: 18px;
}

.cta-row {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    gap: 8px;
}

.cta-row .btn {
    padding: 8px 10px;
    font-weight: 600;
}

/* Футер */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 18px 0;
    background: #fff;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

/* Утилиты */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}