/* Light headings: the dark glossy bars replaced with the light style of the product cards */

/* Sidebar boxes as cards: white card, header row with a blue icon circle and a navy title, padded content */
#column_column-6 .module-style,
#column_column-8 .module-style{
  margin:0 0 14px;
  background:#fff;
  border:1px solid #dcdfe3;
  border-radius:10px;
  box-shadow:0 2px 8px rgba(0,0,0,.07);
  overflow:hidden;
}
#column_column-6 .module-title,
#column_column-8 .module-title{
  height:auto;
  margin:0;
  padding:10px 12px!important;
  text-align:left;
  background:#fff!important;
  border-bottom:1px solid #eef1f4;
  border-radius:0;
}
#column_column-6 h3,
#column_column-8 h3{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0!important;
  color:#1f3a4d;
  font-size:13px;
  line-height:1.25;
  letter-spacing:.3px;
}
.sb-ico{
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:linear-gradient(#4aa8e4,#2b8fd0);
  color:#fff;
  box-shadow:0 2px 5px rgba(43,143,208,.35);
}
.sb-ico svg{width:15px;height:15px}
#column_column-6 .module-body,
#column_column-8 .module-body{padding:10px 12px 12px;font-size:12px;line-height:1.5}
#column_column-6 .module-body p:last-child,
#column_column-8 .module-body p:last-child{margin-bottom:0}
#column_column-6 .module-body img,
#column_column-8 .module-body img{border-radius:6px}
#column_column-6 .module-body hr,
#column_column-8 .module-body hr{margin:10px 0;border:0;border-top:1px dashed #dcdfe3}
#column_column-8 a[href="chastni-marki.html"]{display:inline-block;margin-top:4px;font-weight:700;color:#009aca}
#column_column-6 .fb-button{margin:0}

/* Homepage slider frame (was a 4px near-black border) */
div#djslider88{
  border:1px solid #dcdfe3;
  border-radius:8px;
  box-shadow:0 1px 3px rgba(0,0,0,.06);
}

/* Main menu: navy (the card-title colour) instead of the black glossy bar (t_menu_bg.png), thin blue top line */
.navbar-default{
  background:linear-gradient(#294b62,#1f3a4d)!important;
  box-shadow:inset 0 3px 0 #3a9ddf,0 2px 6px rgba(0,0,0,.15);
}
.navbar-default .navbar-nav>li>a{color:#fff}
.menu-head ul.sunfw-tpl-menu li a:hover,
.navbar-default .navbar-nav>li>a:hover,
.navbar-default .navbar-nav>li>a:focus{
  color:#87cefa!important;
  background:rgba(255,255,255,.1)!important;
}
.menu-head ul.sunfw-tpl-menu li.active>a,
.menu-head ul.sunfw-tpl-menu li.current>a,
.navbar-default .navbar-nav>.active>a,
.navbar-default .navbar-nav>.active>a:focus,
.navbar-default .navbar-nav>.active>a:hover{
  color:#87cefa!important;
  background:rgba(255,255,255,.08)!important;
}

/* Content column edges: thin light-grey solid lines instead of the black dotted ones (custom.css) */
.layout-item.sunfw-item-page-content{border-left:1px solid #e3e7eb;border-right:1px solid #e3e7eb}
.sunfw-pos-content-inner{border-bottom:1px solid #e3e7eb}
/* Content is full width with the sidebars below it on narrow screens: no edge lines there */
@media (max-width:960px){.layout-item.sunfw-item-page-content{border-left:0;border-right:0}}

/* Wider site on wide screens: 1140 px instead of the theme's fixed 960 px (sidebars ~250 px, content ~640 px).
   The header photo is 960 px: it keeps its sharp original size, centred, with the rounded top on the photo itself. */
@media (min-width:1180px){
  .sunfw-content{width:1140px}
  .sunfw-content .container{width:1140px!important}
}
.epic-logo .sunfw-logo img.logo{margin-left:auto;margin-right:auto}
/* Header photo: a small 6 px rounding on the top corners only (the theme rounded them 100px); the menu below is square,
   so header + menu read as one block. Phones keep square corners (the header starts flush at the top of the screen). */
.epic-logo,.epic-logo .sunfw-logo img.logo{border-radius:6px 6px 0 0!important}
@media (max-width:767px){.epic-logo,.epic-logo .sunfw-logo img.logo{border-radius:0!important}}

/* Page backgrounds, switchable: html[data-bg] is set by js/bg-switch.js (site default there, preview with ?bg=…).
   All pure CSS on a near-white base, behind the white cards. Without JS the waves are used (the site default). */

/* gradient: soft "water" glows in the site colours, fixed while scrolling */
html[data-bg="gradient"] body{
  background-color:#f7fbfe!important;
  background-image:
    radial-gradient(ellipse 60% 50% at 0% 0%,rgba(135,206,250,.38),transparent 70%),
    radial-gradient(ellipse 40% 35% at 88% 8%,rgba(64,196,214,.16),transparent 70%),
    radial-gradient(ellipse 55% 48% at 100% 100%,rgba(58,157,223,.24),transparent 70%),
    radial-gradient(ellipse 45% 40% at 8% 92%,rgba(135,206,250,.2),transparent 70%)!important;
  background-repeat:no-repeat!important;
  background-attachment:fixed!important;
}

/* waves (default): light sky-blue to white gradient with pale wave layers along the bottom of the screen */
html:not([data-bg]) body,
html[data-bg="waves"] body{
  background-color:#ffffff!important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1440 260%27 preserveAspectRatio=%27none%27%3E%3Cpath fill=%27%2387cefa%27 fill-opacity=%27.18%27 d=%27M0 120c180-50 360-50 540 0s360 50 540 0 270-40 360-20v160H0z%27/%3E%3Cpath fill=%27%233a9ddf%27 fill-opacity=%27.14%27 d=%27M0 170c200-45 400-45 600 0s400 45 600 0c90-20 170-25 240-15v105H0z%27/%3E%3Cpath fill=%27%23294b62%27 fill-opacity=%27.08%27 d=%27M0 215c240-35 480-35 720 0s480 35 720 0v45H0z%27/%3E%3C/svg%3E"),
    linear-gradient(#e3f3fd 0%,#f4fafe 45%,#ffffff 100%)!important;
  background-repeat:no-repeat,no-repeat!important;
  background-position:center bottom,0 0!important;
  background-size:100% 220px,100% 100%!important;
  background-attachment:fixed,fixed!important;
}

/* flat: one very pale grey-blue, the white cards stand out on their own */
html[data-bg="flat"] body{
  background:#f2f6f9!important;
}

/* drops: near-white with a faint repeating pattern of small light-blue dots */
html[data-bg="drops"] body{
  background-color:#f9fcfe!important;
  background-image:
    radial-gradient(circle,rgba(58,157,223,.14) 2px,transparent 2.6px),
    radial-gradient(circle,rgba(135,206,250,.22) 1.4px,transparent 2px)!important;
  background-size:32px 32px,32px 32px!important;
  background-position:0 0,16px 16px!important;
  background-repeat:repeat!important;
  background-attachment:fixed!important;
}

/* Main menu layout: taller bar (46 px), the 8 items spread evenly and vertically centred on one row,
   a blue line under the current page, and no gap to the content panel (menu = top edge of the content) */
.navbar{margin-bottom:0}
.navbar-default{border-radius:0!important}
@media (min-width:768px){
  .navbar-default .navbar-nav{display:flex;float:none;width:100%;margin:0}
  .navbar-default .navbar-nav>li{float:none;flex:1 1 auto}
  .navbar-default .navbar-nav>li>a{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    height:46px;
    padding:0 8px!important;
    white-space:nowrap;
    text-align:center;
  }
  .navbar-default .navbar-nav>li.active>a::after,
  .navbar-default .navbar-nav>li.current>a::after{
    content:"";
    position:absolute;
    left:14px;
    right:14px;
    bottom:6px;
    height:3px;
    border-radius:2px;
    background:#3a9ddf;
  }
}

/* The left sidebar now comes before the content in the HTML (so the page paints in its final order on desktop).
   Phones stack the columns: keep the content first there, then the sidebars, as before. */
@media (max-width:600px){
  #sunfw_section_main-content .sunfw-flex-component{display:flex;flex-direction:column}
  #sunfw_section_main-content #column_column-7{order:-2}
}

/* Small tablets / large phones (601-960 px): three columns do not fit, the right sidebar used to drop under the left one.
   Content first at full width, then both sidebars side by side (what custom.css intended; flex overrode it). */
@media (min-width:601px) and (max-width:960px){
  #sunfw_section_main-content .sunfw-flex-component{display:flex;flex-wrap:wrap}
  #sunfw_section_main-content #column_column-7{flex:0 0 100%;max-width:100%;width:100%;order:-2}
  #sunfw_section_main-content #column_column-6,
  #sunfw_section_main-content #column_column-8{flex:0 0 50%;max-width:50%;width:50%}
}

/* Mobile menu (< 768 px): bar with the current page name, a call button and an animated hamburger;
   the open menu as full-width 48 px rows with the current page marked by a blue bar. */
@media (min-width:768px){.mm-current,.mm-call{display:none!important}}
@media (max-width:767px){
  .navbar-default{margin-top:0!important;border-radius:0!important}
  .navbar-default .navbar-header{display:flex;align-items:center;gap:8px;float:none;margin:0!important;padding:7px 8px 7px 16px;text-align:left}
  .mm-current{flex:1;min-width:0;color:#fff;font-size:13px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mm-call{display:flex;flex:0 0 auto;align-items:center;justify-content:center;height:36px;padding:0 12px;border-radius:999px;background:linear-gradient(#4aa8e4,#2b8fd0);color:#fff!important;font-size:13px;font-weight:700;letter-spacing:.2px;white-space:nowrap;text-decoration:none!important;box-shadow:0 2px 6px rgba(0,0,0,.25)}
  .mm-call:hover,.mm-call:focus{background:#3a9ddf}
  .navbar-default .navbar-toggle{display:flex;flex:0 0 auto;align-items:center;justify-content:center;width:46px;height:40px;margin:0!important;padding:0!important;float:none;background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.2)!important;border-radius:8px}
  .navbar-default .navbar-toggle:hover,.navbar-default .navbar-toggle:focus{background:rgba(255,255,255,.18)!important}
  .mm-bars{position:relative;display:block;width:20px;height:14px}
  .mm-bars span{position:absolute;left:0;width:100%;height:2px;border-radius:2px;background:#fff;transition:top .25s,transform .25s,opacity .2s}
  .mm-bars span:nth-child(1){top:0}
  .mm-bars span:nth-child(2){top:6px}
  .mm-bars span:nth-child(3){top:12px}
  .navbar-toggle:not(.collapsed) .mm-bars span:nth-child(1){top:6px;transform:rotate(45deg)}
  .navbar-toggle:not(.collapsed) .mm-bars span:nth-child(2){opacity:0}
  .navbar-toggle:not(.collapsed) .mm-bars span:nth-child(3){top:6px;transform:rotate(-45deg)}
  .navbar-default .navbar-collapse{margin:0!important;padding:0!important;border-top:1px solid rgba(255,255,255,.12)!important;box-shadow:none}
  .navbar-default .navbar-nav{margin:0!important}
  .navbar-default .navbar-nav>li>a{display:flex;align-items:center;justify-content:space-between;min-height:48px;margin:0!important;padding:0 16px 0 20px!important;color:#fff;font-size:13px;border-bottom:1px solid rgba(255,255,255,.08)}
  .navbar-default .navbar-nav>li:last-child>a{border-bottom:0}
  .navbar-default .navbar-nav>li>a::after{content:"\203A";font-size:20px;line-height:1;color:rgba(255,255,255,.4)}
  .navbar-default .navbar-nav>li.active>a,
  .navbar-default .navbar-nav>li.current>a{color:#87cefa!important;background:rgba(255,255,255,.06)!important;box-shadow:inset 3px 0 0 #3a9ddf}
  .navbar-default .navbar-nav>li.active>a::after{color:#87cefa}
}
@media (prefers-reduced-motion:reduce){.mm-bars span{transition:none}}
