/* avtoradio.net - oformlenie 2026. Svetlaya tema, bez sborki.
   Fajl namerenno v ASCII: togda ego kodirovka ne imeet znacheniya. */

:root {
  --ink:        #0f172a;
  --text:       #334155;
  --muted:      #64748b;
  --faint:      #94a3b8;
  --line:       #e2e8f0;
  --line-soft:  #eef2f7;
  --bg:         #ffffff;
  --surface:    #f8fafc;
  --surface-2:  #f1f5f9;
  --accent:     #1d4ed8;
  --accent-dk:  #1e3a8a;
  --accent-sf:  #eff6ff;
  --amber:      #f59e0b;
  --amber-dk:   #b45309;
  --radius:     14px;
  --radius-sm:  9px;
  --shadow:     0 1px 2px rgba(15,23,42,.05), 0 8px 24px -12px rgba(15,23,42,.18);
  --shadow-sm:  0 1px 2px rgba(15,23,42,.06);
  --maxw:       1220px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
img[src*="blank.gif"] { display: none; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin: 1.8em 0 .6em;
}
h1 { font-size: clamp(26px, 3.4vw, 38px); margin-top: 0; }
h2 { font-size: clamp(21px, 2.4vw, 27px); }
h3 { font-size: 19px; }
p  { margin: 0 0 1.1em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

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

/* ---------- shapka ---------- */

.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-in {
  display: flex; align-items: center; gap: 20px;
  min-height: 68px;
}

.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-dk) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
}
.brand-mark svg { width: 21px; height: 21px; display: block; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-weight: 800; font-size: 18px; color: var(--ink);
  letter-spacing: -.03em;
}
.brand-sub { font-size: 11.5px; color: var(--muted); letter-spacing: .01em; }

.head-nav { margin-left: auto; display: flex; gap: 2px; flex-wrap: wrap; }
.head-nav a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--text); font-size: 14.5px; font-weight: 500; white-space: nowrap;
}
.head-nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.head-nav a.on { background: var(--accent-sf); color: var(--accent-dk); }

.head-search { flex: 0 0 auto; display: flex; }
.head-search input {
  width: 170px; padding: 8px 12px;
  border: 1px solid var(--line); border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font: inherit; font-size: 14px; color: var(--ink);
  background: var(--surface); outline: none;
}
.head-search input:focus { border-color: var(--accent); background: #fff; }
.head-search button {
  border: 1px solid var(--accent); background: var(--accent); color: #fff;
  padding: 0 13px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer; display: flex; align-items: center;
}
.head-search button:hover { background: var(--accent-dk); border-color: var(--accent-dk); }
.head-search svg { width: 16px; height: 16px; }

.burger {
  display: none; margin-left: auto;
  width: 42px; height: 38px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.burger svg { width: 20px; height: 20px; }

/* ---------- geroj ---------- */

.hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 62%;
  opacity: .5;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,23,42,.92) 0%, rgba(15,23,42,.72) 46%, rgba(15,23,42,.35) 100%);
}
.hero-in {
  position: relative; z-index: 2;
  padding: 52px 0 56px;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,460px);
  gap: 44px; align-items: center;
}
.hero-title {
  font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: #fff;
  letter-spacing: -.03em; line-height: 1.15; margin: 0 0 16px;
}
.hero-text { color: #cbd5e1; font-size: 17px; margin: 0 0 24px; max-width: 46ch; }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-links a {
  display: inline-block; padding: 9px 16px; border-radius: 999px;
  background: rgba(255,255,255,.1); color: #e2e8f0; font-size: 14.5px;
  border: 1px solid rgba(255,255,255,.16);
}
.hero-links a:hover { background: rgba(255,255,255,.2); color: #fff; text-decoration: none; }

/* ---------- magnitola ---------- */

.radio {
  background: linear-gradient(178deg, #1e293b 0%, #0b1220 100%);
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 18px;
  box-shadow: 0 24px 48px -24px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.07);
  padding: 16px;
  color: #e2e8f0;
}
.radio-top { display: flex; align-items: center; gap: 14px; }

.knob {
  width: 62px; height: 62px; flex: 0 0 auto; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #64748b 0%, #334155 42%, #1e293b 100%);
  box-shadow: inset 0 2px 3px rgba(255,255,255,.18), inset 0 -3px 6px rgba(0,0,0,.6), 0 3px 8px rgba(0,0,0,.5);
  position: relative; cursor: ns-resize; touch-action: none;
}
.knob::after {
  content: ""; position: absolute; left: 50%; top: 7px;
  width: 3px; height: 15px; margin-left: -1.5px; border-radius: 2px;
  background: var(--amber); box-shadow: 0 0 7px rgba(245,158,11,.85);
  transform-origin: 50% 24px;
  transform: rotate(var(--a, 0deg));
  transition: transform .08s linear;
}
.knob:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.knob-cap { text-align: center; font-size: 9.5px; color: #64748b; margin-top: 5px;
  letter-spacing: .09em; text-transform: uppercase; }

.screen {
  flex: 1 1 auto; min-width: 0;
  background: linear-gradient(180deg, #04121a 0%, #071a24 100%);
  border: 1px solid rgba(56,189,248,.18);
  border-radius: 10px; padding: 10px 13px;
  box-shadow: inset 0 2px 12px rgba(0,0,0,.85);
}
.screen-row { display: flex; align-items: baseline; gap: 9px; }
.screen-name {
  font-size: 19px; font-weight: 700; color: #7dd3fc; letter-spacing: .01em;
  text-shadow: 0 0 12px rgba(125,211,252,.5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto;
}
.screen-band {
  font-size: 10px; letter-spacing: .14em; color: #0891b2;
  border: 1px solid rgba(8,145,178,.5); border-radius: 4px; padding: 1px 5px;
  flex: 0 0 auto;
}
.screen-sub {
  font-size: 11.5px; color: #0e7490; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.screen-live {
  display: none; align-items: center; gap: 5px;
  font-size: 10px; letter-spacing: .1em; color: var(--amber);
}
.screen-live.on { display: inline-flex; }
.screen-live i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--amber);
  animation: pulse 1.5s ease-in-out infinite; font-style: normal;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.eq { display: flex; align-items: flex-end; gap: 2px; height: 16px; margin-top: 6px; }
.eq b {
  flex: 1 1 auto; background: linear-gradient(180deg, #22d3ee, #0e7490);
  height: 2px; border-radius: 1px; transition: height .09s linear;
}

.radio-btns { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.rbtn {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(148,163,184,.3);
  background: linear-gradient(180deg, #334155, #1e293b);
  color: #cbd5e1; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,.45);
}
.rbtn:hover { color: #fff; border-color: rgba(148,163,184,.6); }
.rbtn svg { width: 15px; height: 15px; }
.rbtn-play {
  width: 52px; height: 52px;
  background: linear-gradient(180deg, #f59e0b, #b45309);
  border-color: #b45309; color: #1c1917;
}
.rbtn-play:hover { background: linear-gradient(180deg, #fbbf24, #d97706); color: #0c0a09; }
.rbtn-play svg { width: 19px; height: 19px; }

.presets { display: flex; gap: 6px; margin-top: 14px; }
.preset {
  flex: 1 1 0; min-width: 0; padding: 7px 4px; cursor: pointer;
  border: 1px solid rgba(148,163,184,.25); border-radius: 7px;
  background: rgba(148,163,184,.08); color: #94a3b8;
  font: inherit; font-size: 11px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.preset:hover { background: rgba(148,163,184,.2); color: #e2e8f0; }
.preset.on { background: rgba(245,158,11,.18); border-color: rgba(245,158,11,.6); color: #fcd34d; }
.preset i { display: block; font-style: normal; font-size: 9px; color: #475569; letter-spacing: .08em; }
.preset.on i { color: var(--amber-dk); }

.radio-more {
  margin-top: 12px; padding-top: 11px;
  border-top: 1px solid rgba(148,163,184,.16);
}
.radio-more summary {
  cursor: pointer; font-size: 13px; color: #94a3b8; list-style: none;
  display: flex; align-items: center; gap: 6px;
}
.radio-more summary::-webkit-details-marker { display: none; }
.radio-more summary:hover { color: #e2e8f0; }
.radio-more summary::before { content: "\25B8"; transition: transform .15s; }
.radio-more[open] summary::before { transform: rotate(90deg); }

.stations { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.stn {
  padding: 5px 10px; border-radius: 999px; cursor: pointer; font: inherit;
  font-size: 12.5px; border: 1px solid rgba(148,163,184,.25);
  background: rgba(148,163,184,.07); color: #94a3b8;
}
.stn:hover { background: rgba(148,163,184,.2); color: #e2e8f0; }
.stn.on { background: rgba(245,158,11,.18); border-color: rgba(245,158,11,.6); color: #fcd34d; }

.radio-note {
  margin-top: 11px; font-size: 11.5px; line-height: 1.5; color: #64748b;
}
.radio-note a { color: #7dd3fc; }
.radio-err {
  display: none; margin-top: 9px; padding: 7px 10px; border-radius: 7px;
  background: rgba(220,38,38,.14); border: 1px solid rgba(248,113,113,.35);
  color: #fca5a5; font-size: 12.5px;
}
.radio-err.on { display: block; }

/* karta stancii pod plejerom (tolko gde est svoya stranica) */
.stn-link { margin-top: 9px; font-size: 12.5px; color: #94a3b8; }
.stn-link a { color: #7dd3fc; }

/* ---------- razmetka ---------- */

.layout {
  display: grid; grid-template-columns: minmax(0,1fr) 300px;
  gap: 40px; padding: 34px 0 56px; align-items: start;
}
.layout.full { grid-template-columns: minmax(0,1fr); }

.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

.content { min-width: 0; }
.content .block { font-size: 16.5px; }
.content .block img {
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  margin: 6px 0;
}
.content .block p > img:first-child { margin-bottom: 14px; }
.content .block ul, .content .block ol { padding-left: 1.3em; }
.content .block li { margin-bottom: .4em; }
.content .block table { max-width: 100%; border-collapse: collapse; }
.content .block td, .content .block th { padding: 6px 10px; border: 1px solid var(--line); }

.date { color: var(--faint); font-size: 13.5px; margin-bottom: 16px; }

/* spisok materialov razdela */
ul.pos {
  list-style: none; margin: 0 0 2em; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px;
}
ul.pos > li {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow .16s, transform .16s, border-color .16s;
  display: flex; flex-direction: column; min-width: 0;
}
ul.pos > li:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #cbd5e1; }

.ci-pic {
  display: block; aspect-ratio: 3 / 2; overflow: hidden;
  background: var(--surface-2) url(/redesign/img/placeholder.jpg) center/cover no-repeat;
}
.ci-pic img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 0; box-shadow: none; margin: 0;
}
.ci-body { padding: 14px 16px 0; flex: 1 1 auto; min-width: 0; }
.ci-body h3 { margin: 0 0 7px; font-size: 16.5px; line-height: 1.35; }
.ci-body h3 a { color: var(--ink); }
.ci-body h3 a:hover { color: var(--accent); text-decoration: none; }
.ci-body p {
  font-size: 14px; color: var(--muted); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden;
}
.ci-body p:empty { display: none; }
.ci-body .date2 { font-size: 12.5px; color: var(--faint); margin-bottom: 6px; }
.ci-foot { padding: 12px 16px 14px; }
.ci-foot .link { font-size: 13.5px; font-weight: 600; }

/* prostye spiski ssylok v kontente */
.content ul.list3 { list-style: none; padding: 0; }

/* ---------- bokovaya kolonka ---------- */

.side { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 88px; }

.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 16px 17px;
}
.card-t {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--muted); margin: 0 0 11px;
}

ul.list1 { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
ul.list1 li { margin: 0 0 2px; }
ul.list1 > li > a {
  display: block; padding: 5px 9px; border-radius: 7px; color: var(--ink); font-weight: 600;
}
ul.list1 > li > a:hover { background: #fff; color: var(--accent); text-decoration: none; }
ul.list1 > li > a.select { background: var(--accent-sf); color: var(--accent-dk); }
ul.list1 ul { list-style: none; margin: 1px 0 7px; padding: 0 0 0 9px;
  border-left: 2px solid var(--line); }
ul.list1 ul a {
  display: block; padding: 3px 9px; font-size: 13.5px; font-weight: 400; color: var(--text);
  border-radius: 6px;
}
ul.list1 ul a:hover { background: #fff; color: var(--accent); text-decoration: none; }
ul.list1 ul a.select { color: var(--accent-dk); font-weight: 600; }

.card ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.card ul li { padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.card ul li:last-child { border-bottom: 0; }
.card ul li a { color: var(--ink); }
.card ul li a:hover { color: var(--accent); }
.card ul li span { display: block; font-size: 12px; color: var(--faint); }

/* ---------- podval ---------- */

.site-foot {
  border-top: 1px solid var(--line); background: var(--surface);
  padding: 40px 0 30px; margin-top: 20px; font-size: 14px;
}
.foot-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 26px 30px;
}
.foot-cols h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted); margin: 0 0 9px;
}
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols li { margin-bottom: 5px; }
.foot-cols a { color: var(--text); font-size: 14px; }
.foot-cols a:hover { color: var(--accent); }
.foot-bot {
  margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center;
  color: var(--muted); font-size: 13px;
}
.foot-bot b { color: var(--ink); }

/* ---------- melochi ---------- */

.tree { font-size: 15px; }
.tree div { margin-left: 14px; }
.tree > .treetitle { margin-left: 0; font-weight: 700; color: var(--ink); font-size: 20px; margin-bottom: 10px; }

.pictures { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.pictures li { max-width: 220px; font-size: 13px; color: var(--muted); }

form.msg input[type=text], form.msg input[type=email], form.msg textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; background: #fff;
}
form.msg input[type=submit] {
  padding: 10px 20px; border: 0; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
form.msg input[type=submit]:hover { background: var(--accent-dk); }

.white, .blue { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }

/* ---------- adaptiv ---------- */

@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .side { position: static; }
  .hero-in { grid-template-columns: minmax(0,1fr); gap: 30px; padding: 38px 0 42px; }
}

@media (max-width: 820px) {
  .burger { display: flex; }
  .head-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 14px 14px;
    box-shadow: var(--shadow);
  }
  .head-nav.open { display: flex; }
  .head-nav a { padding: 10px 12px; font-size: 15.5px; }
  .head-search { display: none; }
  .head-search.open { display: flex; width: 100%; order: 3; padding-bottom: 12px; }
  .head-search input { width: 100%; }
  .head-in { flex-wrap: wrap; position: relative; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 15px; }
  .radio { padding: 13px; }
  .radio-top { flex-wrap: wrap; }
  .knob-wrap { order: 2; }
  .screen { order: 1; width: 100%; flex: 1 0 100%; }
  .radio-btns { order: 3; margin-left: auto; }
  .presets { flex-wrap: wrap; }
  .preset { flex: 1 1 30%; }
  .brand-sub { display: none; }
  ul.pos { grid-template-columns: minmax(0,1fr); }
}
