:root{
  --bg:#f7f7f8;
  --surface:#fff;
  --text:#111;
  --muted:#555;
  --accent:#0066cc;
  --border:#e4e7ea;
  --maxw:1100px;
  --radius:8px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

/* Dark theme variables */
:root[data-theme="dark"]{
  --bg:#0b0d10;
  --surface:#0f1418;
  --text:#e6eef6;
  --muted:#9aa6b2;
  --accent:#3993ff;
  --border:#22272b;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:linear-gradient(180deg,var(--bg),rgba(0,0,0,0));
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
  transition:background .25s ease, color .25s ease;
}

.container{
  max-width:var(--maxw);
  margin:0 auto;
  padding:24px;
}

.site-header{
  background:linear-gradient(90deg,var(--surface) 0,rgba(255,255,255,0.02));
  border-bottom:1px solid var(--border);
  transition:background .25s ease, border-color .25s ease;
}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:12px}
.logo{margin:0;font-size:20px;color:var(--accent);font-weight:700}
.nav a{margin-left:12px;color:var(--muted);text-decoration:none}
.nav a:hover{color:var(--accent)}

.theme-toggle{
  background:transparent;border:1px solid var(--border);padding:8px 10px;border-radius:8px;cursor:pointer;font-size:16px;
  color:var(--text);
}
.theme-toggle:focus{outline:2px solid rgba(0,150,255,0.18);outline-offset:2px}

/* Table and cards */
.prices h2, .tv h2, .contacts h2{margin-top:0}
.price-table{
  width:100%;
  border-collapse:collapse;
  background:var(--surface);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:0 1px 2px rgba(0,0,0,0.04);
  transition:background .25s ease, box-shadow .25s ease;
}
.price-table th, .price-table td{
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  text-align:left;
  font-size:15px;
  color:var(--text);
}
.price-table thead th{background:transparent;color:var(--muted);font-weight:600}
.price-table tbody tr.highlight td{
  background:linear-gradient(90deg, rgba(57,147,255,0.06), transparent);
  font-weight:600;
}
.note{color:var(--muted);font-size:13px;margin-top:8px}

/* TV section */
.tv-grid{display:grid;grid-template-columns:1fr 300px;gap:20px;align-items:start;margin-top:12px}
.tv-text p{margin:0 0 12px}
.tv-box{
  background:var(--surface);
  border:1px solid var(--border);
  padding:16px;border-radius:8px;text-align:center;
  transition:background .25s ease, border-color .25s ease;
}
.tv-box .price{font-weight:700;color:var(--accent);margin:8px 0}
.btn{
  display:inline-block;background:var(--accent);color:#fff;padding:10px 14px;border-radius:6px;text-decoration:none;margin-top:8px
}

/* Contacts */
.contacts-grid{display:grid;grid-template-columns:1fr 320px;gap:20px;align-items:start;margin-top:12px}
.contact-info p{margin:6px 0;color:var(--muted)}
.photo-block{
  background:linear-gradient(180deg,var(--surface),rgba(255,255,255,0.02));
  border:1px dashed var(--border);
  padding:12px;
  border-radius:8px;
  text-align:center;
  transition:background .25s ease, border-color .25s ease;
}
.photo-label{font-weight:600;color:var(--accent);margin-bottom:8px}
.photo{
  width:100%;
  height:200px;
  object-fit:cover;
  background:#e9eef6;
  border-radius:6px;
  border:1px solid var(--border);
}
.photo-caption{font-size:13px;color:var(--muted);margin-top:8px}

/* Responsive: адаптивность под все устройства */
@media (max-width:1100px){
  .container{padding:20px}
  .tv-grid{grid-template-columns:1fr 280px}
  .contacts-grid{grid-template-columns:1fr 280px}
}
@media (max-width:880px){
  .header-inner{flex-wrap:wrap;align-items:center}
  .nav{order:3;width:100%;display:flex;gap:12px;padding-top:8px}
  .tv-grid, .contacts-grid{grid-template-columns:1fr}
  .photo{height:220px}
  .theme-toggle{order:2;margin-left:auto}
}
@media (max-width:480px){
  .container{padding:16px}
  .logo{font-size:18px}
  .price-table th, .price-table td{padding:12px}
  .photo{height:180px}
}

/* Accessibility helpers */
a, button{transition:background .15s ease, color .15s ease, border-color .15s ease}

