/*
Theme Name: АвтоМаляр
Description: Оформление журнала о кузовном ремонте.
*/
:root {
  color-scheme: light;
  --ink: #303238;
  --muted: #565b66;
  --blue: #244b82;
  --line: #d3d5da;
  font: 16px/1.53 Arial, "DejaVu Sans", sans-serif;
}
* { box-sizing: border-box }
body { margin: 0; background: #e9e9e9; color: var(--ink) }
a { color: var(--blue); text-underline-offset: .15em }
a:hover { color: #652ead }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #285da3; outline-offset: 3px }
img { max-width: 100%; display: block }
p { margin: .65em 0 1em }
h1, h2, h3, h4 { line-height: 1.18; font-family: Georgia, "DejaVu Serif", serif }
h1 { margin: .2em 0 .45em; font-size: clamp(1.7rem, 3.2vw, 2.45rem); color: #392477 }
h2 { margin: 1.15em 0 .55em; font-size: 1.55rem }
h3 { margin: .9em 0 .45em; font-size: 1.2rem }
h4 { font-size: 1.07rem }
button { font: inherit; color: #234b79; background: linear-gradient(#fff,#e3e7ed); border: 1px solid #aeb8c7; padding: 5px 12px; cursor: pointer }
button:hover { background: #dce5f0 }
[hidden] { display: none !important }
.sheet { max-width: 1170px; margin: 13px auto 20px; background: #fff; border: 1px solid #b1b1b1; box-shadow: 0 0 7px #0005 }
.skip { position: absolute; transform: translateY(-300%); background: white; z-index: 3; padding: 8px }
.skip:focus { transform: none }
.menu { display:flex; flex-wrap:wrap; justify-content: flex-end; gap: 5px 19px; padding: 7px 17px; background: linear-gradient(#fbfbfb,#dfdfdf); border-bottom: 1px solid #d5d5d5; font-size: .82rem }
.menu a { text-decoration: none; color: #303238 }
.menu a:hover, .menu a[aria-current] { text-decoration: underline }
.masthead {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 236px; display: grid; grid-template-columns: 170px 1fr 240px; align-items: center;
  gap: 20px; padding: 27px 30px 35px;
  background: #e1e4cb; border-bottom: 1px solid #c8d0d5;
}
.masthead::before {
  content: ""; position: absolute; inset: -18px; z-index: -1;
  background: radial-gradient(ellipse at 12% 41%,#9fb5cf 5%,transparent 34%),radial-gradient(ellipse at 25% 94%,#f7f6d2 8%,transparent 41%),radial-gradient(ellipse at 50% 70%,#dfcb70 5%,transparent 50%),radial-gradient(ellipse at 88% 26%,#bad487 8%,transparent 46%),radial-gradient(ellipse at 73% 90%,#84bdcf 4%,transparent 39%),radial-gradient(ellipse at 41% 15%,#f1d8dd 7%,transparent 48%),linear-gradient(125deg,#d9e8d9,#efeed5);
  filter: blur(7px);
}
.masthead .emblem { width: 163px; margin: 0 auto }
.brand { align-self: center }
.brand-name { display: inline-block; font-size: clamp(2.65rem,6.1vw,5.25rem); color: #36749c; line-height: 1.05; font-weight: bold; letter-spacing: -.055em; text-decoration: none; text-shadow: -2px -2px 0 #f7fbff, 2px -2px 0 #f7fbff, -2px 2px 0 #f7fbff, 2px 2px 0 #f7fbff, 0 2px 5px #436782 }
.brand-line { margin-top: 20px; padding-top: 13px; border-top: 2px solid #fff9; color: #244765; font-weight: bold }
.masthead .tagline { text-align: center; color: #313e25; font: bold 1.25rem/1.32 Georgia,serif }
.tagline a { display: inline-block; margin-top: 16px; font: .85rem Arial,sans-serif }
.columns { display:grid; grid-template-columns: 235px minmax(0,1fr); gap: 27px; padding: 18px 22px 30px; align-items: stretch }
main { min-width: 0 }
.sidebar { min-width: 0 }
.widget { margin: 0 0 15px; border: 1px solid var(--line); background: #fafafa }
.widget h2 { font: bold .94rem/1.3 Arial,sans-serif; color: #284a72; margin: 0; padding: 7px 10px; background: linear-gradient(#fdfdfd,#e1e4e9); border-bottom: 1px solid var(--line) }
.widget ul { margin: 0; list-style: none; padding: 0 10px }
.widget li { padding: 7px 0; border-bottom: 1px dotted #bdc3cf; font-size: .89rem; line-height: 1.35 }
.widget li:last-child { border: 0 }
.widget p { font-size: .89rem; padding: 0 10px }
.widget .count { color: var(--muted); font-size: .79rem; white-space: nowrap }
.sticky { position: sticky; top: 12px }
.search-label { display:block; font-size:.86rem }
.search-box { padding: 9px }
.search-box input { width: 100%; font: inherit; margin: 5px 0; padding: 6px; border: 1px solid #929daf }
.search-box button { font-size: .85rem; width: 100% }
.breadcrumbs { font-size: .84rem; color: var(--muted); margin: 0 0 12px }
.introduction { text-align: center }
.introduction .deck { font: bold 1.2rem Georgia,serif }
.introduction p:last-of-type { text-align: left }
.hero-photo { margin: 12px 0 0; width: 100%; aspect-ratio: 3.1; object-fit: cover; object-position: center 47%; border: 1px solid var(--line) }
.partners { border-top: 1px solid #d3d5da; margin-top: 30px; padding-top: 3px }
.partner { display: grid; grid-template-columns: 105px 1fr; gap: 15px; align-items: center; padding: 12px 10px; border: 1px solid var(--line); background: #fafafa; margin-bottom: 9px }
.partner-logo { display: block; padding: 4px; background: white; border: 1px solid #e0e0e0 }
.partner-logo img { width: 100%; aspect-ratio: 1.4; object-fit: contain }
.partner h3 { margin: 0 0 5px; font: bold 1rem Arial,sans-serif }
.partner p { font-size: .92rem; margin: 0 }
.category { margin: 30px 0 0 }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 10px; background: linear-gradient(#f9fafb,#e6e8ed); padding: 8px 10px; border: 1px solid var(--line) }
.section-heading h2 { margin: 0; color: #2d4260; font-size: 1.36rem }
.section-heading a { font-size: .86rem }
.cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 13px 0 22px }
.card { padding: 9px 10px 11px; border: 1px solid var(--line); display:flex; flex-direction:column; background: #fdfdfd }
.card .photo img { width: 100%; height: 159px; object-fit: cover; border: 1px solid #e2e2e2 }
.card h3 { margin: 8px 0 3px; font-size: 1.12rem }
.card p { font-size: .91rem; line-height: 1.43; margin: 4px 0 7px }
.card .more { margin-top: auto; font-size: .84rem }
.article-photo { width:100%; max-height:285px; object-fit:cover; border:1px solid var(--line) }
.entry-content { max-width: 80ch }
.entry-content .lead { font-size: 1.08rem }
.entry-content li { margin: 0 0 .55em }
.entry-content blockquote { margin: 18px 0; border-left: 4px solid #8da7c3; background: #f0f3f7; padding: 8px 15px }
.entry-content blockquote p { margin: 0 }
.entry-content table { border-collapse: collapse; width: 100%; font-size: .91rem }
.entry-content th, .entry-content td { text-align: left; vertical-align: top; border: 1px solid #d0d4db; padding: 8px; overflow-wrap: anywhere }
.entry-content th { background: #edf0f5 }
.toc, .related { background: #f8f9fb; border: 1px solid var(--line); padding: 10px 15px; margin: 18px 0 }
.toc ul, .related ul { margin: 5px 0; padding-left: 20px }
.related h2 { margin: .2em 0 .4em }
.site-footer { padding: 13px 20px; background: linear-gradient(#f5f5f5,#e6e6e6); border-top: 1px solid #cfd1d5; font-size: .86rem }
.site-footer nav { display:flex; flex-wrap:wrap; gap: 6px 17px }
.site-footer p { margin: 9px 0 0 }
.notice { position: fixed; left: 12px; right: 12px; bottom: 12px; max-width: 660px; margin: auto; background:#fff; border:1px solid #858e9d; box-shadow:0 2px 11px #0003; padding:10px 13px; z-index: 2; font-size:.88rem }
.notice p { margin:0 0 7px }
.notice button { margin: 0 6px 3px 0 }
a.mail { overflow-wrap: anywhere }
@media (max-width: 1189px) { .sheet { margin-inline: 12px } }
@media (max-width: 900px) { .masthead { grid-template-columns: 105px minmax(0,1fr) 165px; min-height: 180px; padding: 20px } .masthead .emblem {width:105px} .masthead .tagline {font-size:1.04rem} .columns {grid-template-columns: 190px minmax(0,1fr); gap:16px; padding-inline:15px} }
@media (max-width: 680px) { .sheet { margin: 0; border: 0 } .menu { justify-content:center } .masthead { grid-template-columns: 72px minmax(0,1fr); min-height: 132px; padding: 15px; gap: 12px } .masthead .tagline { display:none } .masthead .emblem{ width:72px } .brand-line { margin-top:10px; padding-top:7px; font-size:.85rem } .columns { display: flex; flex-direction: column; padding: 13px } .sidebar { order: 2; display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items:start; gap:8px } .sticky { display:contents } .widget { margin-bottom:0 } .hero-photo {aspect-ratio: 2.5} .card .photo img {height:118px} }
@media (max-width: 410px) { .cards {grid-template-columns:1fr} .card .photo img {height:148px} .brand-name {font-size:2.3rem} .partner {grid-template-columns: 75px 1fr; gap: 9px} }
.hero-photo { min-height: max(270px, calc(100svh - 395px)) }
@media (max-width: 680px) { .hero-photo { min-height: max(175px, calc(100svh - 325px)) } }
.columns { grid-template-areas: "sidebar main" }
.sidebar { grid-area: sidebar }
.site-main { grid-area: main }
.site-main > .entry-content > .search-box { max-width: 470px; background: #f8f9fb; border: 1px solid var(--line); margin-bottom: 15px }
