
:root {
    --text: #1b1b1b;
    --muted: #6b6b6b;
    --line: #e2e0dc;
    --bg: #fbfaf8;
    --accent: #7a4a2b;
}

* { box-sizing: border-box; }

body {
    margin: 0;


    /*  background-image: url("https://artdad.ru/wp-content/uploads/2024/12/08-tarasovo_2001_16x9.jpg");
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;*/

    background: var(--bg);
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {

    border-bottom: 1px solid var(--line);
    background: #fff;
}

.logo img {
    display: block;
    width: auto;
    height: auto;
}

.header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.logo {
    font-size: 24px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text);
}

.nav a {
    margin-left: 18px;
    color: var(--muted);
    text-decoration: none;
    font-size: 16px;
}

.nav a:first-child { margin-left: 0; }
.nav a:hover { color: var(--accent); }

/* Основная часть */
.main {
    padding: 40px 20px 60px;
    min-height: 60vh;
}

h1 { font-size: 32px; margin: 0 0 20px; font-weight: normal; }
h2 { font-size: 24px; margin: 40px 0 16px; font-weight: normal; }
h3 { font-size: 20px; margin: 0 0 10px; font-weight: normal; }

a { color: var(--accent); }

.lead { color: var(--muted); }

.muted { color: var(--muted); font-size: 15px; }

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

.card {
    border: 1px solid var(--line);
    background: #fff;
    padding: 20px;
    margin-bottom: 16px;
}

.card h3 { margin-top: 0; }
.card p { margin: 8px 0; }

.card__price {
    font-size: 18px;
    color: var(--accent);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.photo {
    display: block;
    width: 235px;
    height: 235px;
    object-fit: cover;          /* сохраняет пропорции и заполняет квадрат */
    object-position: center;    /* центрирует картинку, если обрезается */
    margin-bottom: 12px;
}

/*
.photo {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 12px;
}
*/

.content img { max-width: 100%; height: auto; }
.content p { margin: 0 0 16px; }

.review__rating { color: var(--accent); letter-spacing: 2px; }

.button {
    display: inline-block;
    padding: 10px 22px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
}

.button:hover { opacity: .9; }

.button--ghost {
    background: transparent;
    color: var(--accent);
}

.order { margin-top: 30px; }

.order summary {
    display: inline-block;
    list-style: none;
}

.order summary::-webkit-details-marker { display: none; }

.order[open] summary { opacity: .6; }

.unity {
    position: relative;
    padding-top: 60%;
    border: 1px solid var(--line);
    background: #000;
    margin-bottom: 12px;
}

.unity iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

code {
    background: #f0eeea;
    padding: 1px 5px;
    font-size: 14px;
}

.form {
    border: 1px solid var(--line);
    background: #fff;
    padding: 24px;
    margin-top: 30px;
    max-width: 520px;
}

.form label {
    display: block;
    margin-bottom: 14px;
}

.form label span {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    color: var(--muted);
}

.form input[type=text],
.form input[type=tel],
.form input[type=email],
.form textarea {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--line);
    background: #fff;
    font-family: inherit;
    font-size: 16px;
}

.form textarea { min-height: 110px; resize: vertical; }

.form .checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
}

.form .checkbox input { margin-top: 4px; }

.hp { position: absolute; left: -9999px; }

.alert {
    padding: 12px 16px;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    background: #fff;
}

.alert--success { border-color: #86a06a; }

.errors {
    margin: 0 0 16px;
    padding-left: 18px;
    color: #a33;
    font-size: 15px;
}

.footer {
    border-top: 1px solid var(--line);
    background: #fff;
    font-size: 15px;
    color: var(--muted);
}

.footer__inner {
    padding-top: 24px;
    padding-bottom: 24px;
}

.footer p { margin: 4px 0; }

.pagination { margin-top: 30px; }
.pagination a, .pagination span { margin-right: 8px; }


