:root {
  --bg: #fff;
  --text: #202124;
  --muted: #5f6368;
  --line: #e0e0e0;
  --soft: #f8f9fa;
  --hover: #f1f3f4;
  --blue: #1a73e8;
  --blue2: #1669d2;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3 { margin: 0 0 0.5rem; font-weight: 600; line-height: 1.25; }
p { margin: 0 0 1rem; color: var(--muted); }
ul,ol { margin: 0.25rem 0 1rem; padding-left: 1.25rem; color: var(--muted); }
li { margin: 0.25rem 0; }
main { max-width: 980px; margin: 0 auto; padding: 18px 16px 48px; }
section { margin: 22px 0; padding: 0; }
section + section { padding-top: 22px; border-top: 1px solid var(--line); }
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.logo img { width: 36px; height: 36px; border-radius: 10px; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { display: inline-block; padding: 8px 10px; border-radius: 999px; color: var(--text); }
.nav a:hover { background: var(--hover); text-decoration: none; }
.burger { display: none; width: 44px; height: 40px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; padding: 10px; }
.burger:hover { background: var(--hover); }
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; margin: 6px 0; transition: transform .16s ease, opacity .16s ease; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: center; padding: 18px; background: var(--soft); border-radius: var(--radius); }
.hero-text p { max-width: 60ch; }
.hero-image img { border-radius: var(--radius); }
.btn { display: inline-block; padding: 10px 14px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 600; }
.btn:hover { background: var(--blue2); text-decoration: none; }
.categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.category { padding: 12px; border-radius: var(--radius); background: var(--soft); text-align: center; }
.category:hover { background: var(--hover); }
.category img { width: 100%; height: 72px; object-fit: cover; border-radius: 10px; }
.category p { margin: 10px 0 0; color: var(--text); font-weight: 600; }
.about-container { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: center; }
.about-image img { border-radius: var(--radius); }
.catalog-table { width: 100%; border-collapse: collapse; }
.catalog-table thead th { text-align: left; padding: 10px 8px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
.catalog-table td { padding: 12px 8px; vertical-align: top; border-bottom: 1px solid var(--line); }
.catalog-table tbody tr:hover { background: #fafafa; }
.catalog-table td img { width: 92px; height: 68px; object-fit: cover; border-radius: 10px; }
.request-form,.feedback-form { display: grid; gap: 12px; width: 100%; }
label { display: grid; gap: 6px; color: var(--text); font-weight: 600; }
input,textarea,select { font: inherit; padding: 10px 2px; border: 0; border-bottom: 1px solid #dadce0; border-radius: 0; background: transparent; color: var(--text); outline: none; }
textarea { min-height: 120px; resize: vertical; }
input:focus,textarea:focus,select:focus { border-bottom: 2px solid var(--blue); }
button { justify-self: start; padding: 10px 14px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 600; cursor: pointer; }
button:hover { background: var(--blue2); }
.site-footer { max-width: 980px; margin: 0 auto 28px; padding: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer .contacts { background: var(--soft); border-radius: var(--radius); padding: 14px; }
.site-footer strong { color: var(--text); }
.site-footer > p { margin: 12px 0 0; text-align: center; }
@media (max-width: 900px) { .hero,.about-container { grid-template-columns: 1fr; } .categories { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .burger { display: block; }
  .nav { position: absolute; top: 56px; left: 16px; right: 16px; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--line); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .16s ease, transform .16s ease; }
  .nav ul { flex-direction: column; gap: 2px; padding: 8px; }
  .nav a { border-radius: 10px; padding: 10px; }
  .site-header.nav-open .nav { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .site-header.nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .site-header.nav-open .burger span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
