
/* prozrenie-optica.ru — full stylesheet (Curvy_Clean DOM, own CSS).
   Mobile-first responsive. No dependency on template base css.
*/

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #eaf1f5;
  color: #2a3540;
}

a { color: #08627e; text-decoration: none; }
a:hover { color: #d8722d; text-decoration: underline; }

/* ─── WRAPPER ─── */
#wrapper {
  max-width: 1120px; margin: 0 auto;
  background: #fff;
  box-shadow: 0 2px 24px rgba(0, 40, 70, .10);
  min-height: 100vh;
}

/* ─── HERO BANNER (home) ─── */
#home_banner { display: block; overflow: hidden; }
#home_banner a { display: block; pointer-events: none; }
#home_banner img {
  width: 100%; height: auto; max-height: 340px;
  object-fit: cover; object-position: center 30%;
  display: block;
}

/* ─── HEADER ─── */
#header {
  background: linear-gradient(180deg, #08627e 0%, #0d7a99 100%);
  color: #fff;
  padding: 22px 32px 20px;
  border-bottom: 4px solid #e0c060;
}
#header_logo { margin: 0; }
#header_logo img { display: none; }
#header_logo a { display: inline-block; color: #fff; text-decoration: none; }
#header_logo:before {
  content: "Прозрение"; display: block;
  color: #fff; font: 700 30px/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: -.5px;
}
#header_logo:after {
  content: "Салон оптики в Барнауле · с 2008 года"; display: block;
  color: #cbe4ec; font: italic 13px/1.4 Arial, sans-serif; margin-top: 5px;
}

/* ─── LAYOUT (main grid: 2 columns) ─── */
.pz-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 400px; }
#side_menu_container {
  padding: 24px 14px 24px 22px;
  border-right: 1px solid #e5edf1;
  background: #fbfdff;
  min-width: 0;
}
#content_body {
  padding: 24px 34px 32px;
  line-height: 1.65;
  min-width: 0;
  overflow-wrap: break-word;
}

/* ─── SIDE MENU ─── */
#side_menu { list-style: none; padding: 0; margin: 0 0 18px; }
#side_menu li { border-bottom: 1px solid #dde6ec; }
#side_menu li:last-child { border-bottom: none; }
#side_menu a {
  display: block; padding: 10px 8px;
  color: #08627e; font: bold 12.5px Arial, sans-serif;
  text-transform: uppercase; letter-spacing: .6px; text-decoration: none;
}
#side_menu a:hover, #side_menu a.current {
  background: #eaf3f7; color: #d8722d;
}
.side_menu_box {
  background: #fef6d9; border-top: 3px solid #e0c060;
  padding: 12px 14px; margin: 0 0 14px;
  font-size: 12.5px; line-height: 1.55; border-radius: 3px;
}
.side_menu_box:nth-of-type(2) { background: #eaf3f7; border-top-color: #08627e; }
.side_menu_box .top { font-weight: bold; color: #7a5d00; margin-bottom: 8px; font-size: 13px; }
.side_menu_box:nth-of-type(2) .top { color: #08627e; }
.side_menu_box ul { list-style: none; padding: 0; margin: 0; }
.side_menu_box li { margin-bottom: 4px; }
#info {
  padding: 12px 8px 0; font-size: 12px; color: #556270; line-height: 1.7;
}
.size20 { display: block; font-size: 14px; color: #08627e; font-weight: bold; margin: 4px 0; }

/* ─── TYPOGRAPHY IN CONTENT ─── */
#content_body h1 {
  color: #08627e; font: normal 28px/1.2 Georgia, serif;
  margin: 0 0 16px; padding-bottom: 8px;
  border-bottom: 2px solid #e0c060;
}
#content_body h2 {
  color: #08627e; font: normal 22px/1.25 Georgia, serif;
  margin: 26px 0 12px; padding-bottom: 5px;
  border-bottom: 1px dotted #cdd8e0;
}
#content_body h3 {
  color: #d8722d; font: bold 16px Arial, sans-serif;
  margin: 18px 0 8px;
}
#content_body p { margin: 0 0 14px; }
#content_body ul { padding-left: 22px; margin: 0 0 14px; }
#content_body li { margin-bottom: 4px; line-height: 1.6; }
#content_body img { max-width: 100%; height: auto; }

/* ─── BREADCRUMB ─── */
.pz-crumb {
  font-size: 12px; color: #7f8a95; margin: 0 0 16px;
  padding: 4px 0 8px; border-bottom: 1px dotted #e0e6ea;
}
.pz-crumb a { color: #7f8a95; }
.pz-crumb a:hover { color: #08627e; }
.pz-crumb .cur { color: #08627e; font-weight: bold; }
.pz-crumb span { margin: 0 4px; color: #b8c1c9; }

/* ─── CARD GRID (categories / services) ─── */
.pz-cards {
  list-style: none; padding: 0; margin: 18px 0 22px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.pz-cards li { display: block; }
.box_yellow, .box_blue, .box_pink, .box_green {
  padding: 16px; border-radius: 6px;
  border: 1px solid;
  border-bottom-width: 3px;
  display: flex; gap: 14px; align-items: flex-start;
  min-height: 108px; height: 100%;
  transition: transform .15s, box-shadow .15s;
}
.box_yellow:hover, .box_blue:hover, .box_pink:hover, .box_green:hover {
  transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,40,70,.08);
}
.box_yellow { background: #fff8de; border-color: #efe0a5; border-bottom-color: #d9b955; }
.box_blue   { background: #eaf3f7; border-color: #b4d3df; border-bottom-color: #7ab4c9; }
.box_pink   { background: #fbeee6; border-color: #e6c9b1; border-bottom-color: #d69a70; }
.box_green  { background: #e8f2ea; border-color: #bcd7c2; border-bottom-color: #78ac86; }

.box_yellow .img, .box_blue .img, .box_pink .img, .box_green .img {
  flex: 0 0 96px; margin: 0;
}
.box_yellow .img img, .box_blue .img img, .box_pink .img img, .box_green .img img {
  width: 96px; height: 76px; object-fit: cover; border-radius: 4px; display: block;
}
.box_yellow .right, .box_blue .right, .box_pink .right, .box_green .right {
  flex: 1 1 auto; min-width: 0;
}
.box_yellow .title, .box_blue .title, .box_pink .title, .box_green .title {
  font: normal 16px/1.25 Georgia, serif; color: #08627e; margin: 0 0 6px;
}
.box_yellow .title a, .box_blue .title a, .box_pink .title a, .box_green .title a {
  color: #08627e; text-decoration: none;
}
.box_yellow .title a:hover, .box_blue .title a:hover, .box_pink .title a:hover, .box_green .title a:hover {
  text-decoration: underline;
}
.box_yellow p, .box_blue p, .box_pink p, .box_green p {
  margin: 0; font-size: 13px; color: #556; line-height: 1.55;
}

/* Service cards без картинок */
.box_yellow:not(:has(.img)) .right,
.box_blue:not(:has(.img)) .right,
.box_pink:not(:has(.img)) .right,
.box_green:not(:has(.img)) .right { flex: 1 1 100%; margin-left: 0; }

/* ─── AUTHOR BOX ─── */
.pz-author {
  display: flex; gap: 14px; align-items: center;
  padding: 12px 16px; background: #f2f8fa;
  border-left: 3px solid #08627e; border-radius: 3px;
  margin: 0 0 20px; font-size: 12.5px; line-height: 1.5;
}
.pz-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.pz-author strong { color: #08627e; }

/* ─── THANKS LETTER BLOCK ─── */
.pz-thanks {
  background: linear-gradient(135deg, #fdf5e0 0%, #fbe9c9 100%);
  border-left: 4px solid #d9b955;
  border-radius: 4px;
  padding: 20px 24px;
  margin: 18px 0 24px;
  box-shadow: 0 2px 8px rgba(120, 90, 30, .08);
  position: relative;
}
.pz-thanks:before {
  content: "❝"; position: absolute; top: 4px; left: 12px;
  color: #d9b955; font: 48px/1 Georgia, serif; opacity: .55;
}
.pz-thanks-body {
  padding-left: 40px;
  font-size: 14px;
  line-height: 1.65;
  color: #444;
}
.pz-thanks-body p { margin: 0 0 10px; }
.pz-thanks-body a { color: #08627e; font-weight: 500; }

@media (max-width: 500px) {
  .pz-thanks { padding: 16px 18px; }
  .pz-thanks:before { display: none; }
  .pz-thanks-body { padding-left: 0; }
}

/* ─── INFO BOX (CTA) ─── */
.pz-info {
  background: #fef6d9; border-left: 4px solid #e0c060;
  padding: 14px 18px; margin: 18px 0; border-radius: 3px;
}
.pz-info h3 {
  color: #7a5d00 !important; margin: 0 0 8px;
  font: bold 14px Arial, sans-serif !important; text-transform: uppercase; letter-spacing: .5px;
}
.pz-info p { margin: 0; font-size: 13.5px; }

/* ─── ARTICLE LIST ─── */
.pz-article-list { list-style: none; padding: 0; margin: 0; }
.pz-article-list li {
  display: flex; gap: 16px; padding: 14px 0;
  border-bottom: 1px dotted #e0e6ea; align-items: flex-start;
}
.pz-article-list li:last-child { border-bottom: none; }
.pz-article-list img {
  width: 160px; height: 100px; object-fit: cover; border-radius: 3px; flex: 0 0 160px;
}
.pz-article-list div { flex: 1 1 auto; min-width: 0; }
.pz-article-list h3 { margin: 0 0 6px; font: normal 16px/1.3 Georgia, serif; }
.pz-article-list h3 a { color: #08627e; }
.pz-article-list p { font-size: 13px; color: #556270; margin: 0; }

/* ─── FOOTER ─── */
#footer {
  background: #08627e; color: #cbe4ec;
  padding: 30px 32px 18px;
  font-size: 13px; line-height: 1.6;
}
#footer a { color: #f1c40f; text-decoration: none; }
#footer a:hover { color: #fff; text-decoration: underline; }

.pz-footcols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid #0a7897;
}
.pz-fcol h4 {
  margin: 0 0 10px;
  color: #fff;
  font: bold 13px Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.pz-fcol p { margin: 0 0 8px; color: #cbe4ec; font-size: 12.5px; }
.pz-fcol ul { list-style: none; padding: 0; margin: 0; }
.pz-fcol li { margin-bottom: 4px; font-size: 12.5px; }
.pz-fcol a { color: #cbe4ec; }
.pz-fcol a:hover { color: #f1c40f; text-decoration: underline; }

.pz-fbrand {
  color: #fff;
  font: 700 22px/1.1 Georgia, "Times New Roman", serif;
  margin-bottom: 8px;
}
.pz-fcol-brand p { max-width: 340px; }

.pz-footbottom {
  padding-top: 14px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #7db3c6;
  flex-wrap: wrap; gap: 10px;
}
.pz-footbottom .pz-footnav a { color: #cbe4ec; margin-left: 4px; }
.pz-footbottom .pz-footnav a:hover { color: #f1c40f; }

.clear { clear: both; visibility: hidden; height: 0; margin: 0; border: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .pz-cards { grid-template-columns: 1fr; }
  .pz-layout { grid-template-columns: 190px 1fr; }
  #side_menu_container { padding: 20px 12px 20px 18px; }
  #content_body { padding: 20px 22px 26px; }
}

@media (max-width: 720px) {
  #wrapper { max-width: 100%; box-shadow: none; }
  #header { padding: 16px 20px 14px; }
  #header_logo:before { font-size: 24px; }
  #header_logo:after { font-size: 12px; }
  #home_banner img { max-height: 220px; }

  .pz-layout { grid-template-columns: 1fr; }
  #side_menu_container {
    width: 100%;
    padding: 12px 18px; border-right: none; border-bottom: 1px solid #e5edf1;
  }
  #side_menu { margin-bottom: 10px; }
  #side_menu li { border-bottom: none; display: inline-block; }
  #side_menu a { padding: 6px 10px; font-size: 12px; }
  .side_menu_box, #info { display: none; }
  #content_body { padding: 20px 18px 26px; }
  #content_body h1 { font-size: 24px; }
  #content_body h2 { font-size: 20px; }

  .box_yellow, .box_blue, .box_pink, .box_green { flex-direction: column; }
  .box_yellow .img img, .box_blue .img img, .box_pink .img img, .box_green .img img {
    width: 100%; height: 160px;
  }

  .pz-article-list li { flex-direction: column; }
  .pz-article-list img { width: 100%; height: 160px; flex: 0 0 auto; }

  #footer { padding: 22px 20px 16px; }
  .pz-footcols { grid-template-columns: 1fr 1fr; gap: 22px; padding-bottom: 18px; }
  .pz-fcol-brand { grid-column: 1 / -1; }
  .pz-footbottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 500px) {
  .pz-footcols { grid-template-columns: 1fr; gap: 18px; }
}
