/* Основные цвета и ширина страницы меняются здесь. */
:root {
  --orange: #ff7800;
  --sidebar: #fbeebf;
  --panel: #fbd8ba;
  --error: #c90000;
  --site-width: 946px;
}
* { box-sizing: border-box; }
body { margin: 0; color: #111; background: white; font: 13px Arial, Helvetica, sans-serif; }
.site { max-width: var(--site-width); margin: 15px auto 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font-family: Arial, Helvetica, sans-serif; font-size: 13px; }
button { cursor: pointer; border: 1px solid #888; border-radius: 2px; color: #111; background: linear-gradient(#fff, #dcdcdc); padding: 2px 7px; line-height: 16px; }
button:hover { background: #e8e8e8; }
input, select { color: #111; background: #fff; border: 1px solid #777; border-radius: 2px; height: 22px; min-width: 0; }
input { padding: 1px 4px; }
:focus-visible { outline: 2px solid #1e64a9; outline-offset: 3px; }
.header { display: flex; align-items: center; min-height: 43px; margin-bottom: 16px; gap: 13px; }
.brand { display: inline-flex; align-items: baseline; white-space: nowrap; gap: 5px; }
.brand:hover { text-decoration: none; }
.brand-symbol { font: bold 37px Arial, sans-serif; color: #ed7000; letter-spacing: -4px; padding-right: 3px; }
.brand-name { font-size: 35px; font-weight: 400; letter-spacing: -1.3px; }
.tagline { white-space: nowrap; }
.top-nav { display: flex; gap: 25px; align-items: center; margin-left: auto; padding-right: 20px; font-weight: bold; }
.add-ad { padding: 5px; background: var(--panel); border: 1px solid #e3c6ae; border-radius: 2px; }
.search { min-height: 34px; padding: 4px 23px; border: 1px solid #cd6200; border-radius: 2px; background: var(--orange); display: flex; align-items: center; gap: 9px; }
.search-group { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.search label, .search-group > span { color: #fff; font-weight: bold; }
#query { width: 147px; }
#category-select { width: 115px; }
#location { width: 61px; }
#radius { width: 31px; }
#price-from, #price-to { width: 68px; }
.search > button { flex-shrink: 0; }
.subnav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 9px 10px 23px; min-height: 18px; }
.language-picker { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.language-picker select { font-size: 11px; height: 21px; }
.layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 17px; padding: 0 6px; align-items: stretch; }
.sidebar { padding-right: 10px; border-right: 1px dashed #ddd; }
.sidebar h2 { margin: 0; font-size: 14px; padding: 4px 0; line-height: 16px; text-align: center; color: white; background: var(--orange); border: 1px solid #c2691b; border-radius: 3px 3px 0 0; }
#category-list { background: var(--sidebar); border: 1px solid #e6d9a9; border-top: none; }
.category { text-align: center; min-height: 80px; padding: 18px 4px 11px; line-height: 15px; }
.category a { display: inline-block; margin-bottom: 3px; font-weight: bold; }
.category p { margin: 0; }
.verification-panel { background: var(--panel); border: 1px solid #e1cdbb; border-radius: 3px; padding: 4px; min-height: 194px; }
h1 { font-size: 13px; line-height: 14px; margin: 0 0 16px; font-weight: bold; }
.explanation { line-height: 15px; margin: 0 0 13px; }
#phone-form label { display: block; margin-bottom: 3px; }
.required { color: #db2100; font-weight: bold; }
#phone { display: block; width: 167px; max-width: 100%; border: 2px solid #444; border-radius: 4px; height: 23px; }
#phone-form button { display: block; margin-top: 17px; }
.demo-note { color: #666; font-size: 11px; line-height: 1.5; margin: 10px 5px; }
#form-status { margin: 10px 5px; line-height: 1.5; }
#form-status:empty { display: none; }
#form-status.is-error { color: var(--error); }
dialog { width: min(440px, calc(100% - 32px)); border: 1px solid #d4bba4; border-radius: 5px; padding: 34px 24px 25px; background: #fffaf5; color: #111; box-shadow: 0 8px 35px #0003; text-align: center; }
dialog::backdrop { background: #0005; }
.dialog-close { position: absolute; top: 5px; right: 8px; border: none; background: transparent; font-size: 23px; line-height: 23px; padding: 1px 5px; }
.error-text { color: var(--error); font-weight: bold; font-size: 16px; line-height: 1.5; margin: 4px 0 20px; }
.dialog-action { padding: 8px 12px; font-weight: bold; }
@media (max-width: 980px) {
  .site { margin: 12px; }
  .search { flex-wrap: wrap; padding: 8px; }
  .header { flex-wrap: wrap; }
  .top-nav { gap: 16px; padding-right: 0; }
}
@media (max-width: 640px) {
  .site { margin: 10px; }
  .header { gap: 8px 12px; margin-bottom: 12px; }
  .brand-name { font-size: 30px; }
  .brand-symbol { font-size: 32px; }
  .tagline { font-size: 11px; }
  .top-nav { width: 100%; margin: 2px 0 0; justify-content: space-between; gap: 8px; font-size: 12px; }
  .search { gap: 8px; }
  .query-group { width: 100%; }
  #query { flex: 1; width: 65px; }
  #category-select { width: 128px; }
  .price-group { gap: 6px; }
  #price-from, #price-to { width: 52px; }
  .subnav { margin: 10px 0 16px; flex-wrap: wrap; font-size: 12px; }
  .layout { display: flex; flex-direction: column; padding: 0; gap: 18px; }
  .main { order: 0; }
  .sidebar { order: 1; border: none; padding: 0; }
  #category-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category { min-height: 76px; padding-top: 14px; }
  .verification-panel { padding: 10px; }
  h1 { line-height: 17px; }
  .explanation { line-height: 17px; }
  #phone { width: 210px; height: 32px; font-size: 16px; }
  #phone-form button { padding: 6px 12px; margin-top: 13px; }
}
