@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans&display=swap');
@import "reset.css";

/* Base size: rem follows user/browser default; clamp() adds gentle scaling by viewport (DPI/window), without touching heading px sizes */
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 960px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(1.125rem, 1rem + 0.35vw, 1.25rem); /* ~18px … ~20px at 16px root */
  line-height: 1.5;
  color: #333;
  background-color: #232323;
}

h1, h2, h3, h4, h5, h6  { margin: 0; font-family:'IBM Plex Sans',sans-serif;font-weight: 600; color: #333; }
h1  {font-size: 36px;} h2  {font-size: 26px;} h3  {font-size: 22px;} h4  {font-size: 18px;} h5  {font-size: 14px;} h6  {font-size: 12px;}

p  {margin: 0;}

/* 1.2 Hyperlinks */

a:link, a:visited  { color: #06a0f0; text-decoration:none; }
a:hover  { text-decoration:underline; }

h1 a:link, h1 a:visited, h2 a:link, h2 a:visited, h3 a:link, h3 a:visited,
h4 a:link, h4 a:visited, h5 a:link, h5 a:visited, h6 a:link, h6 a:visited  { text-decoration: none; }
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover  {text-decoration: underline;}

/*-------------------------------------------------------------------------------------------*/
/* 2. SITE STRUCTURE & APPEARANCE */
/*-------------------------------------------------------------------------------------------*/

/* 2.1 Containers & Columns */
#container  { background: #fff;}

/* Top header background strip */
#top {
  background-image: url(/images/bg-header-strip.jpg);
  background-repeat: repeat-x;
  background-position: top center;
  min-height: 0;
}
.col-left { float: left; }
.col-right { float: right; }
.col-full  { width: 960px; margin: 0 auto; }

ul#nav { margin-top:9px; }
#nav, #nav ul  { z-index:100; margin:0; padding:0; list-style:none; line-height:1; }
#nav a  { display:block; z-index:100; padding:0 10px; line-height:28px; font-size:17px; color:#fff; text-decoration:none;}
#nav li  { float:left; width: auto; padding:2px 5px;}
#nav li:hover, #nav li.current_page_item, #nav li.current_page_parent { background: #4a6786; transition: all 0.2s;}
#nav li li.current_page_item, #nav li li.current_page_parent { background: none; }
/* 2.2.1 Drop-down menus */
#nav li ul  { position: absolute; left: -999em; width: 172px; background: #FFF; border:1px solid #efefef; padding:5px; }
#nav li ul li  { border: 1px solid #efefef;  padding:0; }
#nav li ul li a  { background:url(/images/ico-bullet.png) no-repeat 5px 10px; width:145px; padding-left:15px; line-height:30px; font-size:12px; color:#000; }
#nav li ul li:hover  { background:#fafafa; }
#nav li ul ul  { margin: -25px 0 0 120px; }
#nav li ul li ul li a  { border-width: 0 0 1px; }
#nav li:hover ul ul, #nav li.sfhover ul ul, #nav li:hover ul ul ul, #nav li.sfhover ul ul ul { left:-999em; }
#nav li:hover ul,#nav li li:hover ul,#nav li li li:hover ul,#nav li.sfhover ul,#nav li li.sfhover ul,#nav li li li.sfhover ul  { left:auto; }
#nav li:hover,#nav li.hover  { position:static; }

#nav .sf-sub-indicator {display:none;}

/* 2.3 Header */
#header{background:url(/images/bg-top.png) repeat;padding:25px 0 20px;clear:both;position:relative;z-index:10;}

#logo .site-title, #logo .site-description  { display: none; }
#logo .site-title a { color:#fff; font-size:32px; line-height:28px; text-transform:uppercase; letter-spacing:1px; font-weight:bold; }
#logo .site-title a:hover { text-decoration:none; color:#eee; }
#logo .site-description { color:#bbb; text-transform:uppercase; font-size:12px;}

/* 2.4 Content */
#content{background:url(/images/bg-content-top.png) repeat-x top center; min-height:400px;padding:30px 0; }

#main{width:620px;}
#main.fullwidth  { width: 960px; }

/* 2.5 Sidebar */
#sidebar{width:260px;overflow:hidden; padding:25px 25px 15px; background:#f7f7f7; border-bottom:1px solid #dbdbdb; }

/* 2.6 Footer */
#footer{background: #232323 url(/images/bg-footer-top.png) repeat-x top center; font-size:12px;padding: 20px 0;border-top: 1px solid #eee; }
#footer #credit, #footer #copyright { color: #777; }
#footer #credit a, #footer #copyright a { color: #999; }

#footer #footer-credits { background:url(/images/bg-footer-bevel.png) repeat-x top center; padding:25px 0 20px; margin: 20px 0; }
#footer #credit img{vertical-align:middle;}
#footer #credit span{display:none;}

#footer #footer-widgets { margin-top:20px; color:#bbbbbb; font-size:14px; }
#footer #footer-widgets p { color:#bbbbbb; }
#footer #footer-widgets .block { float:left; width:210px; margin:0 40px 0 0; }
#footer #footer-widgets .block.last { margin-right:0; }
#footer #footer-widgets h3 { font-size:18px; color:#fff; font-weight:normal;}
#footer #footer-widgets ul { border:none; }
#footer #footer-widgets li { padding-left:15px; }
#footer #footer-widgets li a { border:none; color:#fefefe; line-height:18px; padding:3px 0; }
#footer #footer-widgets li a:hover { color:#06a0f0; }

/* 2.7 Featured Area */
#featured { background:url(/images/bg-border-top.png) repeat-x top left; }
#featured #page-title { padding: 25px 0; }
#featured h2, #featured h1, #featured span.archive_header { color:#fff;font-size:40px; line-height:40px; letter-spacing:-1px;  }
#featured span.archive_header  { display:block; font-size: 30px; font-weight:bold; }
#featured span.archive_header.blog  { font-size: 40px; }

/* 2.8 Homepage */
#featured.home .featured-image { width:490px; padding:23px 0 0; margin-bottom:-60px; position:relative; text-align:center; }
#featured.home .featured-content { width:450px; padding:0 0 60px 0; }
#featured.home h2 { font-size:40px; padding:20px 0 30px;}
#featured.home p { font-size:20px; color:#fff; line-height:30px; }

#featured a.button { background: url(/images/btn-featured-right.png) no-repeat scroll top right; display: block; float: left; height: 44px; padding-right: 16px;text-decoration: none;color: #093c5b;font-family:Arial, Helvetica, sans-serif; font-size:22px;font-weight:bold;margin:30px 30px 20px 0;letter-spacing:-1px;}
#featured a.button span {	float:left; background: url(/images/btn-featured.png) no-repeat; display: block;	line-height: 44px; padding: 0 10px 0 55px; }
#featured a.button:hover span{ text-decoration:none; color:#555; }
#featured a.button:hover { cursor:pointer; }
a.button span:hover { text-shadow: #8bd1f1 1px 1px 2px; }

#main-page1 { padding: 30px 0 0; }
#main-page2 { padding: 0 0 30px; }

/*-------------------------------------------------------------------------------------------*/
/* 3. POSTS */
/*-------------------------------------------------------------------------------------------*/

#breadcrumb { background:#eee url(/images/bg-breadcrumb-top.png) repeat-x top center; height:44px; border-top:1px solid #efefef; border-bottom:1px solid #d5d5d5; color:#777; line-height:44px; }

.post  { margin: 0 0 25px 0;}

/* 3.1 Typographic Elements */
.entry h1, .entry h2, .entry h3, .entry h4, .entry h5, .entry h6  {	margin: 0 0 15px 0; }

.entry p  { margin: 0 0 15px 0; }

.entry blockquote  { padding: 10px 30px; color: #666; }

.entry ul  { margin: 0 0 15px 0; padding: 0 0 0 30px; }
.entry ul ul  { margin: 0; }
.entry ul li  {	list-style-type: circle; }
.entry ul ul li  { list-style-type: disc; }

.entry ol  { margin: 0 0 15px 0; padding: 0 0 0 30px; }
.entry ol ol  { margin: 0; }
.entry  ol li  { list-style-type: upper-latin; }
.entry  ol li ol li  { list-style-type: lower-latin; }

/* 3.2 Images */
.entry img  { padding: 5px;	border: 1px solid #ccc; }

.alignleft  { float: left; height: auto; margin: 10px 15px 10px 0; }
.alignright  { float: right; height: auto; margin: 10px 0 10px 15px; }
.aligncenter  { text-align: center; margin-bottom:15px;}
img.aligncenter  { margin-left:auto; margin-right:auto; display:block; }

/*-------------------------------------------------------------------------------------------*/
/* 4. WIDGETS */
/*-------------------------------------------------------------------------------------------*/

/* 4.2 Generic Widgets */
.widget  { margin: 0 0 30px 0; }
.widget h3  { margin: 0 0 15px 0;text-transform:uppercase; font-size:14px; color:#777; }

.widget p { color:#666; }
.widget ul  { clear:both; }
.widget ul li  { background: url(/images/ico-bullet.png) no-repeat left 8px; padding-left:15px; }
.widget ul li a  { display: block; padding: 3px 0; line-height: 18px; text-decoration: none; color:#666; }
.widget ul li a:hover  { color: #000; }
.widget ul ul  { padding: 0 0 0 15px; border-top: none; }

.mybutton {
  display: inline-block;
  border-radius: 4px;
  background-color: #2e58cf;
  border: none;
  text-align: center;
  font-size: 20px;
  padding: 16px;
  transition: all 0.5s;
  cursor: pointer;
  margin: 5px;
  width: 240px;
}

.mybutton span {
  cursor: pointer;
  color: #FFFFFF;
  display: inline-block;
  position: relative;
  transition: 0.5s;
}

.mybutton span:after {
  content: '\00bb';
  position: absolute;
  opacity: 0;
  top: 0;
  right: -20px;
  transition: 0.5s;
}

.mybutton:hover span {
  padding-right: 25px;
}

.mybutton:hover span:after {
  opacity: 1;
  right: 0;
}

.dropdown {
  text-decoration: none;
  position: relative;
  display: inline-block;
}
.dropbtn {
  background: url(/images/globe.svg) no-repeat center;
  background-size: contain;
  width: 32px;
  line-height: 26px;
  padding-right: 21px;
}
.dropdown-content {
  display: none;
  position: absolute;
  margin-left: -5px;
  background-color:#11435e;
  border: 1px solid white;
  min-width: 50px;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.5);
  z-index: 1;
  text-align: left;
}
.dropdown-content a {
  padding: 5px 20px 5px 20px !important;
  display: block;
  text-decoration: none;
  font-size: 15px;
  color: white;
  border-bottom:none;
  transition: all 0.2s;
}

.dropdown-content a:hover {background-color: #112632; transition: all 0.2s;}

.dropdown:hover .dropdown-content {display: block;}

/*-------------------------------------------------------------------------------------------*/
/* Mobile / narrow screens (shared by all pages using this theme) */
/*-------------------------------------------------------------------------------------------*/

@media (max-width: 900px) {
  html { box-sizing: border-box; }
  *, *::before, *::after { box-sizing: inherit; }

  body { min-width: 0 !important; overflow-x: hidden; }

  /* repeat-x header strip does not cover full height when content stacks */
  #top { background-color: #1a2836; }

  .col-full { width: 100% !important; max-width: 100%; padding-left: 16px; padding-right: 16px; }

  #header .col-full { overflow: hidden; }
  #logo.fl, ul#nav.fr { float: none !important; width: 100%; text-align: center; }
  #logo { margin-bottom: 10px; }
  ul#nav { margin-top: 0; display: flex; flex-wrap: wrap; justify-content: center; row-gap: 4px; column-gap: 6px; }
  #nav li { float: none !important; padding: 2px 4px; }
  #nav a { font-size: 15px; line-height: 26px; padding: 0 8px; }

  #main, #main.fullwidth { width: 100% !important; max-width: 100%; float: none !important; }
  #main.col-left, #sidebar.col-right { float: none !important; width: 100% !important; max-width: 100%; }
  #sidebar { margin-top: 24px; }

  #breadcrumb { height: auto; min-height: 44px; line-height: 1.4; padding-top: 10px; padding-bottom: 10px; }

  #featured #page-title { padding: 16px; }
  #featured #page-title h1 { font-size: clamp(22px, 5.5vw, 40px); line-height: 1.2; }

  #featured.home .featured-image,
  #featured.home .featured-content { float: none !important; width: 100% !important; max-width: 100%; }
  #featured.home .featured-image { padding-top: 16px; margin-bottom: 0; text-align: center; }
  #featured.home .featured-image img { max-width: 100% !important; height: auto; }
  #featured.home .featured-content { padding-bottom: 40px; text-align: center; }
  #featured.home h2 { font-size: clamp(26px, 7vw, 40px); line-height: 1.15; padding: 12px 0 20px; }
  #featured.home p { font-size: 17px; line-height: 1.45; }
  #featured a.button { float: none; display: inline-block; margin: 20px 0 16px; max-width: 100%; }
  #featured .featured-content .fl { float: none !important; }
  #featured .featured-content .fl p { text-align: center; }

  .entry img, .entry video { max-width: 100%; height: auto; }
  .alignleft, .alignright { float: none !important; display: block; margin-left: auto; margin-right: auto; max-width: 100%; }

  h1 { font-size: clamp(24px, 6vw, 36px); }
  .entry h2 { font-size: 22px; }

  #contact-page ol.forms textarea {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }
  #contact-page ol.forms li:not(.buttons):not(.screenReader) input {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  #footer #footer-widgets .block { float: none !important; width: 100%; margin-right: 0; }
  #footer #copyright.col-left, #footer #credit.col-right { float: none !important; width: 100%; text-align: center; }
  #footer #copyright p { margin-bottom: 8px; }

  /* rus/purchase.html: Yandex order table + fixed 360px inputs */
  .purchase-order-box {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .purchase-order-form table {
    width: 100% !important;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    table-layout: fixed;
  }
  .purchase-order-form table tr {
    display: block;
    width: 100%;
  }
  .purchase-order-form table td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }
  .purchase-order-form table input[type="text"],
  .purchase-order-form table input[type="submit"] {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }
  .purchase-order-form table input[type="button"] {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
    display: block;
  }
  .purchase-order-form td[style*="nowrap"] {
    white-space: normal !important;
  }
  .purchase-order-form #buybtn {
    white-space: normal;
    height: auto;
    line-height: 1.25;
  }
}
