/**
 * CSS styles for forms generated by yiic.
 * @license http://www.yiiframework.com/license/
 */

div.form
{
	margin: 0;
}

div.form input,
div.form textarea,
div.form select
{
	margin:0;
}

div.form fieldset
{
	border: 1px solid #DDD;
	padding: 10px;
	margin: 0 0 10px 0;
    -moz-border-radius:7px;
}

div.form label
{
	font-weight: bold;
	font-size: 0.9em;
	display: inline-block;
	width:130px;
}

div.form .row
{
	margin:0 0 5px;
}

div.form .hint
{
	margin: 0;
	padding: 0;
	color: #999;
}

div.form .note
{
	font-style: italic;
}

div.form span.required
{
	color: red;
}

div.form div.error label,
div.form label.error,
div.form span.error
{
	color: #C00;
}

div.form div.error input,
div.form div.error textarea,
div.form div.error select,
div.form input.error,
div.form textarea.error,
div.form select.error
{
	background: #FEE;
	border-color: #C00;
}

div.form div.success input,
div.form div.success textarea,
div.form div.success select,
div.form input.success,
div.form textarea.success,
div.form select.success
{
	background: #E6EFC2;
	border-color: #C6D880;
}

div.form .errorSummary
{
	border: 2px solid #C00;
	padding: 7px 7px 12px 7px;
	margin: 0 0 20px 0;
	background: #FEE;
	font-size: 0.9em;
}

div.form .errorMessage
{
	color: red;
	font-size: 0.9em;
}

div.form .errorSummary p
{
	margin: 0;
	padding: 5px;
}

div.form .errorSummary ul
{
	margin: 0;
	padding: 0 0 0 20px;
}

div.wide form label
{
	float: left;
	margin-right: 10px;
	position: relative;
	text-align: right;
	width: 100px;
}

div.wide form .row
{
	clear: left;
}

div.wide form .buttons
{
	clear: left;
	padding-left: 110px;
}

div.wide form .errorMessage
{
	margin: 0 0 0 110px;
}
body {
  margin: 0;
  padding: 0;
  /*background:white url(../images/bg_top.jpg) repeat-x top;*/
  background-color: #dde1e4;
  width: 100%;
  min-width: 1280px;
}
body,
table {
  font-family: Arial, "Helvetica CY", "Nimbus Sans L", sans-serif;
  font-size: 14px;
  line-height: 16px;
  color: #74767a;
}
a {
  text-decoration: unset;
}
a:hover {
  text-decoration: underline;
}
h1,
.H {
  display: block;
  color: #313e5a;
  font-size: 25px;
  margin: 0 0 10px;
  line-height: 140%;
  font-weight: normal;
  margin-top: 20px;
}

h2,
.H {
  display: block;
  color: #313e5a;
  font-size: 20px;
  font-weight: normal;
}
h1.border {
  /*border-bottom:2px #babec8 solid;*/
}
h3 {
  font-size: 18px;
  color: #bf1d1f;
  margin: 0;
  padding: 0;
  line-height: 140%;
  font-weight: normal;
}
h4 {
  font-size: 15px;
  color: #313e5a;
  margin: 0;
  padding: 0;
  line-height: 100%;
  font-weight: normal;
  border-bottom: 2px #babec8 solid;
  padding-left: 20px;
}
h4.clock {
  background: url(../images/ico_clock.gif) no-repeat left center;
}
h4.new {
  background: url(../images/ico_new.gif) no-repeat left center;
}
h2 a {
  color: #f6d500;
  text-decoration: none;
}
p {
  margin: 0 0 1em;
  line-height: 16px;
}
div.hr {
  background: url(../images/hr.gif);
  height: 1px;
  font-size: 1px;
  margin: 1em 0;
}
.t-left {
  background: url(../images/t-left.gif) repeat-y left;
  overflow: visible;
}
.t-right {
  background: url(../images/t-right.gif) repeat-y right;
  overflow: visible;
}
.bottom {
  /*background:url(../images/bg_bottom.gif) repeat-x bottom;*/
  margin: 0 auto;
}
.ugoll {
  background: url(../images/ugoll.gif) no-repeat left bottom;
  width: 1044px;
  overflow: visible;
}
.ugolr {
  background: url(../images/ugolr.gif) no-repeat right bottom;
  padding: 0 10px 20px 10px;
  overflow: visible;
}

.bg_bottom {
  position: relative;
}
.ten-top {
  /*max-width:1120px;*/
  margin: 0 auto;
  border: 1px transparent solid;
}
.ten-bottom {
  /*max-width:1120px;*/
  margin: 0 auto;
  border: 1px transparent solid;
  margin-bottom: 76px;
}
.container {
  width: 1000px;
  min-height: 1812px;
  overflow: visible;
  margin: 0 auto;
  position: relative;
  margin-top: 30px;
  /*margin-bottom:108px;*/
}

#header {
  margin: 0;
  padding: 0;
  height: 80px;
  position: relative;
}
#header div.h2 {
  margin: 0;
  padding: 14px 0 0 30px;
  line-height: 0;
  border: none;
  width: 253px;
  height: 49px;
}
#header div.h2 a {
  display: block;
  line-height: 0;
  width: 253px;
  height: 49px;
}
#header div.h2 img {
  display: block;
  width: 253px;
  height: 49px;
  contain: layout size style;
}

#header .bs {
  position: absolute;
  left: 515px;
  top: 30px;
}
#header .bs a {
  color: #3b4869;
  font-size: 13px;
  padding-left: 15px;
}
#header .bs a.enter {
  background: url(../images/bs/enter.gif) no-repeat left center;
}
#header .bs a.reg {
  background: url(../images/bs/reg.gif) no-repeat left center;
}
#header .city {
  position: absolute;
  right: 30px;
  top: 27px;
}
#header .city select {
  width: 224px;
}

#search {
  background-color: #757b89;
  height: 99px;
  position: relative;
  overflow: visible;
  margin: 30px;
  border-radius: 8px;
}

#search form {
  height: 28px;
  background: white url(../images/search/find_left.gif) no-repeat left;
  position: relative;
  padding-left: 10px;
  color: #868a96;
}
#search form input {
  vertical-align: middle;
}
#search form input#q {
  width: 800px;
  border: none;
  background: transparent;
  position: absolute;
  left: 10px;
  top: 3px;
  color: #a2a8ae;
  font-size: 15px;
}
#search form input.submit {
  position: absolute;
  top: 0;
  right: 0;
}
#search form div {
  margin-top: 5px;
  margin-left: -10px;
}
#search form div a {
  color: #b6bac3;
  text-decoration: none;
  border-bottom: 1px #b6bac3 dashed;
}

#search form div a:hover {
  text-decoration: none;
  border-bottom: none;
}

#mainmenu {
  position: relative;
  overflow: visible;
  font-size: 12px;
  height: 43px;
  font-size: 15px;
}

#mainmenu ul {
  padding: 0;
  margin: 0;
  list-style: none;
  /*line-height:34px;*/
  margin-right: -2px;
}

#mainmenu li {
  float: left;
  margin: 0;
  padding: 0;
}

#mainmenu li a {
  color: #ffffff;
  display: block;
  background: url(../images/search/menu_bg_left.gif) no-repeat left center;
  /*min-height:15px;*/
  height: 33px;
  padding: 10px 23px 0 23px;
}

#mainmenu li.first a {
  background: none;
}
#mainmenu li.selected {
  position: relative;
  /*position:absolute;
	top:-7px;*/
  margin-top: -7px;
}
#mainmenu li.selected a {
  background: url(../images/search/menu_selected_bg.gif) repeat-x top;
  padding: 0;
  height: 43px;
  text-decoration: none;
}
#mainmenu li.selected span {
  display: block;
  height: 38px;
  background: url(../images/search/menu_left.gif) no-repeat left top;
}
#mainmenu li.selected span span {
  display: block;
  background: url(../images/search/menu_right.gif) no-repeat right top;
  padding: 17px 20px 0;
}

#content {
  margin: 0;
  padding: 0 0 0 0;
  z-index: 100;
  position: relative;
  /*width:1024px;*/
  overflow: visible;
}

#right {
  width: 300px;
  float: right;
}

#right .kabinet-links {
  margin-top: 2em;
}
#right .kabinet-links ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}
#right .kabinet-links ul li {
  line-height: 150%;
}

#right .menu {
  margin-top: 2em;
  border: 1px #cfd3d7 solid;
  background: #f0f2f7;
  padding: 10px 0;
}
#right .menu ul {
  padding: 0;
  margin: 0;
  list-style-type: none;
}
#right .menu li {
  padding: 0;
  margin: 0;
  font-size: 14px;
  line-height: 28px;
}
#right .menu li a {
  color: #313e5a;
  text-decoration: none;
  background: url(../images/right_menu_off.gif) no-repeat 28px center;
  padding-left: 38px;
  display: block;
  border-top: 1px white solid;
  border-bottom: 1px #cfd3d7 solid;
}
#right .menu li a span {
  border-bottom: 2px #c0c5d0 solid;
}
#right .menu li a span span {
  color: #313e5a;
  border-bottom: 1px #606a81 solid;
}
#right .menu li a:hover {
  text-decoration: none;
  background-image: url(../images/right_menu_on.gif);
  background-color: #464b59;
  color: white;
  border-top-color: #464b59;
}
#right .menu li a:hover span {
  border-color: #d1d3d6;
}
#right .menu li a:hover span span {
  border-color: #747883;
  color: white;
}
#right .menu li.first a {
  border-top-color: #f0f2f7;
}
#right .menu li.end a {
  border-bottom-color: #f0f2f7;
}

#right .hot {
  margin-top: 2em;
}
#right .hot .title {
  font-size: 18px;
  color: #787b7px;
  background: url(../images/hot/title-bg.gif);
}
#right .hot .title div {
  background: url(../images/hot/title-left.gif) no-repeat left;
}
#right .hot .title div div {
  background: url(../images/hot/title-right.gif) no-repeat right;
  line-height: 34px;
  padding: 0 15px;
}
#right .hot .items {
}
#right .hot div.all {
  text-align: right;
  margin-top: 11px;
}
#right .hot .all a {
  background: url(../images/hot/listok.gif) no-repeat left center;
  padding-left: 12px;
  font-size: 12px;
  color: #313e5a;
}
#right .hot .items {
  margin-top: -2px;
}
#right .hot .items,
#right .hot .items table {
  color: #313e5a;
  font-size: 18px;
}
#right .hot .items table {
  border-collapse: collapse;
  margin: 0;
}
#right .hot .items td {
  vertical-align: top;
  padding: 22px 0 0 0;
  margin: 0;
}

#right .hot .items .img {
  padding-right: 7px;
  width: 1%;
}
#right .hot .items .img a img {
  border: 1px #bdc0c2 solid;
}
#right .hot .items .note {
  width: 99%;
  padding-top: 18px;
}
#right .hot .items .note a {
  font-size: 13px;
  color: #818387;
  text-decoration: none;
}
#right .hot .items .note a span {
  color: #bf1d1f;
  text-decoration: none;
  border-bottom: 1px #bf1d1f solid;
}
#right .hot .items .note a:hover span {
  text-decoration: none;
}

.domain-text h1 {
  font-size: 20px;
  color: #bf1d1f;
  margin: 0;
  padding: 0;
  line-height: 140%;
  font-weight: normal;
}

#text {
  width: 610px;
  overflow: visible;
  position: relative;
  /*padding-right:30px;
	margin-right:30px;*/
  padding-bottom: 60px;
}
#text .find_auto {
  position: relative;
  background: #eef0f3;
  font-size: 14px;
  color: #71757e;
  margin-bottom: 15px;
}
#text .find_auto .tl {
  background: url(../images/find_auto/tl.gif) no-repeat left top;
}
#text .find_auto .tr {
  background: url(../images/find_auto/tr.gif) no-repeat right top;
}
#text .find_auto .bl {
  background: url(../images/find_auto/bl.gif) no-repeat left bottom;
}
#text .find_auto .br {
  background: url(../images/find_auto/br.gif) no-repeat right bottom;
  padding: 15px;
}

#text .find_auto .t {
  background: url(../images/find_auto/line.gif) repeat-x top;
}
#text .find_auto .b {
  background: url(../images/find_auto/line.gif) repeat-x bottom;
}
#text .find_auto .l {
  background: url(../images/find_auto/line.gif) repeat-y left;
}
#text .find_auto .r {
  background: url(../images/find_auto/line.gif) repeat-y right;
}
#text .find_auto .type_body {
  line-height: 160%;
}
#text .find_auto .type_body div {
  display: inline-block;
  width: 150px;
  vertical-align: top;
}

#text .find_auto .expand {
  text-align: right;
  margin-top: 5px;
}
#text .find_auto .expand a {
  font-size: 11px;
  color: #74767a;
}

.notices {
  margin: 15px 0;
  width: 630px;
  position: relative;
  overflow: visible;
}

.car-sale {
  padding: 5px;
  color: white;
  background: #ff0200;
  max-width: fit-content;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 30px;
  margin-top: 20px;
}

.notices .list-view .items .item {
  display: inline-block;
  position: relative;
  color: #818387;
  font-size: 10px;
  border: 1px #e4e4e4 solid;
  padding: 2px 2px 2px 2px;
  margin-right: 12px;
  margin-bottom: 15px;
  vertical-align: top;
}

.notices .list-view .items .item img {
  height: 200px;
  object-fit: contain;
}

.item-card__bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}

.notices .list-view .items .item .price {
  font-size: 18px;
  color: #313e5a;
  display: block;
  margin-top: 20px;
}

.notices .list-view .items .item b {
  color: #bd2829;
  font-weight: normal;
  font-size: 14px;
}

.notices .list-view .items .item .title {
  position: relative;
  line-height: 14px;
  font-size: 16px;
  color: white;
}

.notices .list-view .items .item .title div {
  position: relative;
  background-color: #bf1d1f;
  padding: 15px;
}

.notices .list-view .items .item .title a {
  color: white;
}

.notices .list-view .items .item .title .year {
  font-size: 14px;
  float: right;
}

.notices .row-view .items,
.notices .list-view .items {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.notices .row-view .summary,
.notices .list-view .summary {
  float: left;
  line-height: 25px;
  margin-right: 20px;
  margin-left: 10px;
}

.notices .row-view .sorter,
.notices .list-view .sorter {
  text-align: left;
  font-size: 12px;
  float: left;
}

.notices .row-view .sorter ul,
.notices .list-view .sorter ul {
  margin: 0 10px;
  padding: 0;
}

.notices .row-view .sorter a,
.notices .row-view .sorter a.desc,
.notices .list-view .sorter a,
.notices .list-view .sorter a.desc {
  display: inline-block;
  line-height: 25px;
  padding: 0 15px 0 10px;
  background-color: #4a4f59;
  text-decoration: unset;
  color: #fff;
  border-radius: 8px;
}

.notices .row-view .sorter a:hover,
.notices .list-view .sorter a:hover {
  text-decoration: underline;
}

.notices .row-view .sorter ul {
  list-style: none;
  display: inline-block;
}

.notices .row-view .sorter ul li {
  display: inline;
  margin: 0 0 0 5px;
}

.notices .row-view .items {
  display: table;
  width: 100%;
  margin-bottom: 40px;
  border-collapse: collapse;
}

.notices .row-view .item {
  display: table-row;
  border-bottom: 1px solid #ddd;
}

.notices .row-view .item:hover {
  background: #dde0e5;
}

.notices .row-view .item span {
  display: table-cell;
  vertical-align: middle;
  margin-right: 40px;
  padding: 10px;
}

.notices .row-view .item span a {
  color: #313e5a;
}

.notices .row-view .item img {
  width: 100px;
  height: auto;
}

.notices .row-view .view-type,
.notices .list-view .view-type {
  height: 16px;
  padding: 5px 10px 4px 0;
  background: #dde0e5;
  float: right;
}

.notices .row-view .view-type a,
.notices .list-view .view-type a {
  width: 16px;
  height: 16px;
  display: inline-block;
  margin-left: 10px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.notices .list-view .view-type a:nth-child(1),
.notices .row-view .view-type a:nth-child(1) {
  background-image: url("../images/list.png");
}

.notices .list-view .view-type a:nth-child(2),
.notices .row-view .view-type a:nth-child(2) {
  background-image: url("../images/row.png");
}

.notices .row-view .view-type a:hover,
.notices .list-view .view-type a:hover {
  opacity: 0.7;
}

#sidebar {
  padding: 0 25px 0 25px;
  width: 224px !important;
}
#sidebar a {
  color: #666666;
}

.socialbut {
  font-size: 14px;
  color: #ff0000;
}

.list-news {
}
.list-news .view {
  border: none;
  padding: 0;
  margin: 0;
}
.list-news .img {
  float: left;
  width: 100%;
}
.list-news .img img {
  border: 1px #d4d4d4 solid;
}
.list-news .note {
  float: left;
  width: 460px;
  color: #808080;
}
.list-news .note div {
  margin-top: 5px;
}
.list-news .note .link {
  color: #383838;
  text-decoration: none;
}
.list-news .note .more {
  color: #383838;
  text-decoration: none;
  border-bottom: 1px #cdcdcd solid;
}

.list-article {
}
.list-article .view {
  border: none;
  padding: 0;
  margin: 0;
}
.list-article .img {
  float: left;
  width: 145px;
}
.list-article .img img {
  border: 1px #d4d4d4 solid;
}
.list-article .note {
  float: left;
  width: 460px;
  color: #808080;
}
.list-article .note div {
  margin-top: 5px;
}
.list-article .note .link {
  color: #383838;
  text-decoration: none;
}
.list-article .note .more {
  color: #383838;
  text-decoration: none;
  border-bottom: 1px #cdcdcd solid;
}

.list-testdrive {
}
.list-testdrive .view {
  border: none;
  padding: 0;
  margin: 0;
}
.list-testdrive .img {
  float: left;
  width: 145px;
}
.list-testdrive .img img {
  border: 1px #d4d4d4 solid;
}
.list-testdrive .note {
  float: left;
  width: 460px;
  color: #808080;
}
.list-testdrive .note div {
  margin-top: 5px;
}
.list-testdrive .note .link {
  color: #383838;
  text-decoration: none;
}
.list-testdrive .note .more {
  color: #383838;
  text-decoration: none;
  border-bottom: 1px #cdcdcd solid;
}

.list-video {
}
.list-video .view {
  border: none;
  padding: 0;
  margin: 0;
}
.list-video .img {
  float: left;
  width: 145px;
}
.list-video .img img {
  border: 1px #d4d4d4 solid;
}
.list-video .note {
  float: left;
  width: 460px;
  color: #808080;
}
.list-video .note div {
  margin-top: 5px;
}
.list-video .note .link {
  color: #383838;
  text-decoration: none;
}
.list-video .note .more {
  color: #383838;
  text-decoration: none;
  border-bottom: 1px #cdcdcd solid;
}

.notice-view {
}
.notice-view .images {
  padding: 0 11px 0 0;
  vertical-align: top;
}
.notice-view .images #img {
  margin-bottom: 11px;
}
.notice-view .images #img img {
  border: 1px #d1d5d9 solid;
}
.notice-view .images ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.notice-view .images ul li {
  padding: 0;
  margin: 0 0 0 6px;
  float: left;
}
.notice-view .images ul li img {
  border: 1px #d1d5d9 solid;
}
.notice-view .images ul .left {
  margin: 0;
  padding-top: 14px;
}
.notice-view .images ul .right {
  padding-top: 14px;
}
.notice-view .images ul .left img,
.notice-view .images ul .right img {
  border: none;
}
.notice-view .note {
  padding: 0;
  vertical-align: top;
}
.notice-view .note .title {
  font-size: 14px;
}
.notice-view .note .price {
  font-size: 20px;
  color: #9ba1a7;
  margin: 10px 0 10px;
}
.notice-view .note .price strong {
  color: #c83b3d;
  font-weight: normal;
  font-size: 25px;
}
.notice-view .note .data {
  line-height: 25px;
}
.notice-view .note .data dt {
  display: inline-block;
  width: 110px;
  font-weight: normal;
}
.notice-view .note .data dd {
  display: inline-block;
  margin: 0;
  padding: 0;
}
.notice-view .note .data dd strong {
  color: black;
}

.notice-mm {
}
.notice-mm .title {
  background: url(../images/notice/block_title_bg.gif) repeat-x;
  height: 35px;
  font-size: 18px;
  line-height: 35px;
  color: #313e5a;
  float: left;
  margin-bottom: -1px;
  z-index: 10;
}
.notice-mm .title .l {
  background: url(../images/notice/block_title_left.gif) no-repeat left;
  height: 35px;
}
.notice-mm .title .r {
  background: url(../images/notice/block_title_right.gif) no-repeat right;
  height: 35px;
  padding-left: 15px;
  padding-right: 20px;
}
.notice-mm .items {
  z-index: 5;
  background: #eef0f3 url(../images/notice/block_tl.gif) no-repeat left 1px;
}
.notice-mm .items .tr {
  background: url(../images/notice/block_tr.gif) no-repeat right top;
}
.notice-mm .items .br {
  background: url(../images/notice/block_br.gif) no-repeat right bottom;
}
.notice-mm .items .bl {
  background: url(../images/notice/block_bl.gif) no-repeat left bottom;
  padding: 14px 0 11px 13px;
}
.notice-mm .items .l {
  background: url(../images/notice/pix.gif) repeat-y left;
}
.notice-mm .items .r {
  background: url(../images/notice/pix.gif) repeat-y right;
}
.notice-mm .items .b {
  background: url(../images/notice/pix.gif) repeat-x bottom;
}
.notice-mm .items .t {
  background: url(../images/notice/pix.gif) repeat-x top;
}
.notice-mm table {
  color: #5c5c5d;
  font-size: 11px;
}
.notice-mm table a {
  color: #313e5a;
  font-size: 13px;
}

div.form {
  font-size: 14px;
  margin-bottom: 20px;
}
div.form label {
  font-weight: normal;
  width: 165px;
  vertical-align: top;
}
.add-notice .text,
.add-notice .select {
  width: 200px;
}

.pager {
  font-size: 18px;
  line-height: 28px;
  color: #818387;
  text-align: center !important;
}
ul.yiiPager {
  letter-spacing: 0;
  border: 0;
  margin: 0;
  padding: 0;
  line-height: 100%;
  display: inline;
}
ul.yiiPager a {
  margin: 0;
  padding: 0 7px;
}
ul.yiiPager li {
  display: inline-block;
  padding: 0;
  margin: 0;
  zoom: 1;
  vertical-align: top;
  *display: inline;
}

ul.yiiPager .page a {
  font-weight: normal;
  color: #6e7776;
  border: 1px #d9d6d6 solid;
  text-decoration: none;
  display: block;
  height: 28px;
  line-height: 28px;
}

ul.yiiPager .page a:hover {
  background: #464b59;
  border-color: #262932;
  color: #ffffff;
  text-decoration: none;
}

ul.yiiPager .previous,
ul.yiiPager .next {
  color: #818387;
  text-decoration: underline;
}
ul.yiiPager .previous,
ul.yiiPager .next {
  text-decoration: none;
}
ul.yiiPager .next a,
ul.yiiPager .previous a {
  margin: 0;
  padding: 0;
  color: #6e7776;
  display: block;
  height: 28px;
  line-height: 28px;
}
ul.yiiPager .previous a {
  background: url(../images/pager/left.gif) no-repeat left center;
  padding-left: 21px;
}
ul.yiiPager .next a {
  background: url(../images/pager/right.gif) no-repeat right center;
  padding-right: 21px;
}

ul.yiiPager .selected a {
  background: #464b59;
  border-color: #262932;
  color: #ffffff;
  text-decoration: none;
}

ul.yiiPager .hidden {
  display: none;
}

ul.yiiPager .first,
ul.yiiPager .last {
  display: none;
}

.user_nav {
  text-align: right;
  margin: 0.5em 0 1em;
}

.models {
}
.models div {
  float: left;
  margin-right: 10px;
  /*width:150px;*/
  line-height: 200%;
}
.models div a {
  color: gray;
  text-decoration: none;
}
.models div a:hover {
  text-decoration: none;
}
.models div a span {
  color: #313e5a;
  text-decoration: underline;
}
.models div a:hover span {
  text-decoration: none;
}

.breadcrumbs {
  font-size: 14px;
  color: #313e5a;
}
.breadcrumbs a {
  color: #313e5a;
  text-decoration: underline;
}
.breadcrumbs a:hover {
  text-decoration: none;
}

.profile-view dl {
  margin: 0 0 0.5em;
  padding: 0;
  line-height: 150%;
}
.profile-view dt {
  width: 100px;
  float: left;
  text-align: right;
  font-weight: normal;
  padding-right: 15px;
}
.profile-view dd {
  color: #383838;
  margin-left: 115px;
}
.profile-view dd span {
  font-size: 16.5px;
  color: #808080;
}

#profile-update-form {
}
#profile-update-form div {
  margin-top: 5px;
}
#profile-update-form label {
  width: 100px;
  display: block;
  float: left;
  vertical-align: middle;
}
#profile-update-form input {
  vertical-align: middle;
}

#footer {
  width: 1000px;
  overflow: visible;
  margin: 0 auto;
  position: relative;
  /*min-height:1812px;
	margin-top:80px;*/
  text-align: right;
  padding-right: 20px;
  margin-top: -90px;
  color: #7c7c7d;
  font-size: 12px;
}
#footer .copy {
  left: 35px;
  top: 20px;
  position: absolute;
  text-align: left;
  max-width: 500px;
}

#footer .links {
  left: 600px;
  top: 20px;
  position: absolute;
  text-align: left;
}

#footer .links a {
  color: #7c7c7d;
  margin-right: 10px;
}

.map {
  margin: 0;
  padding: 0;
  list-style-type: none;
  line-height: 150%;
}
.map li {
  margin: 0;
  padding: 0;
}
.map ul {
  margin-left: 20px;
  list-style-type: none;
  padding: 0;
}
.map a {
  text-decoration: none;
}
.map a:hover {
  text-decoration: underline;
}

.bn_4 {
  margin: 10px 0;
}
.bn_7 {
  /*margin-top:-200px;*/
}

#route {
  margin-top: 30px;
}

#route .route-search {
  position: relative;
  background: #eef0f3;
  font-size: 14px;
  color: #71757e;
  margin-bottom: 15px;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#route form .row {
  margin-bottom: 15px;
}

#route form .row:last-child {
  margin-bottom: 0;
  margin-top: 30px;
}

#route form .row-right {
  text-align: right;
}

#route form .row .col {
  float: left;
  width: 279px;
}

#route form .row .col:first-child {
  margin-right: 20px;
}

#route form input[type="text"] {
  margin: 0;
  padding: 0px 8px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  float: left;
  height: 25px;
  width: 200px;
  border: 1px solid #ccc;
  border-radius: 3px;
  -webkit-box-shadow: inset 1px 2px 2px 0px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: inset 1px 2px 2px 0px rgba(0, 0, 0, 0.1);
  box-shadow: inset 1px 2px 2px 0px rgba(0, 0, 0, 0.1);
}

#route form label {
  float: left;
  margin-right: 8px;
  height: 25px;
  line-height: 25px;
  width: 53px;
  text-align: right;
}

#route form input[type="submit"] {
  height: 31px;
  width: 210px;
  font-size: 0;
  background: url("../images/rt_find.png") no-repeat;
  border: none;
  cursor: pointer;
}

#route form .route-simple {
  color: #74767a;
  text-decoration: none;
  font-weight: normal;
  font-size: 12px;
  border-bottom: 1px dashed #74767a;
  margin: 5px 0 0 61px;
  display: inline-block;
}

#route form .route-simple:hover {
  border-bottom: none;
}

#route .route-block {
  margin-top: 30px;
}

#route .route-block .route-steps {
}

#route .route-block .route-steps .route-step {
  border-bottom: 1px dotted #ccc;
  padding: 10px 0;
}

#route .route-block .route-steps .route-step table {
  width: 100%;
  border-collapse: collapse;
  border: none;
  margin: 0;
}

#route .route-block .route-steps .route-step table tr {
}

#route .route-block .route-steps .route-step table tr td {
  text-align: left;
  padding: 5px;
}

#route .route-block .route-steps .route-step .step-icon {
  overflow: hidden;
  position: relative;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  background-image: url(../images/maneuvers.png);
}

#route .route-block .route-steps .route-step .ferry {
  background-position: 0 -614px;
}

#route .route-block .route-steps .route-step .ferry-train {
  background-position: 0 -566px;
}

#route .route-block .route-steps .route-step .merge {
  background-position: 0 -143px;
}

#route .route-block .route-steps .route-step .straight {
  background-position: 0 -534px;
}

#route .route-block .route-steps .route-step .fork-left {
  background-position: 0 -550px;
}

#route .route-block .route-steps .route-step .ramp-left {
  background-position: 0 -598px;
}

#route .route-block .route-steps .route-step .roundabout-left {
  background-position: 0 -197px;
}

#route .route-block .route-steps .route-step .turn-left {
  background-position: 0 -413px;
}

#route .route-block .route-steps .route-step .turn-sharp-left {
  background-position: 0 0;
}

#route .route-block .route-steps .route-step .turn-slight-left {
  background-position: 0 -378px;
}

#route .route-block .route-steps .route-step .uturn-left {
  background-position: 0 -305px;
}

#route .route-block .route-steps .route-step .fork-right {
  background-position: 0 -499px;
}

#route .route-block .route-steps .route-step .ramp-right {
  background-position: 0 -429px;
}

#route .route-block .route-steps .route-step .roundabout-right {
  background-position: 0 -232px;
}

#route .route-block .route-steps .route-step .turn-right {
  background-position: 0 -483px;
}

#route .route-block .route-steps .route-step .turn-sharp-right {
  background-position: 0 -582px;
}

#route .route-block .route-steps .route-step .turn-slight-right {
  background-position: 0 -51px;
}

#route .route-block .route-steps .route-step .uturn-right {
  background-position: 0 -35px;
}

#route .route-block h3 {
  color: #000000;
}

#route .map-block {
  margin-top: 30px;
}

#route .info-block,
#route .fuel-block,
.text-block {
  margin-top: 30px;
  background: #eef0f3;
  font-size: 14px;
  color: #71757e;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#route .info-block table {
  width: 100%;
  margin: 0;
  border: none;
  border-collapse: collapse;
}

#route .relevant-block {
  margin-top: 30px;
}

#route .relevant-block .col {
  float: left;
}

#route .relevant-block .col:first-child {
  margin-right: 50px;
}

#route .fuel-block label {
  width: 200px;
}

#route .fuel-block span {
  float: left;
  margin-left: 8px;
  height: 25px;
  line-height: 25px;
}

#route .fuel-block input[type="text"] {
  width: 100px;
}

#route .fuel-block input[readonly] {
  background: #dadada;
}

#route .fuel-block input[type="submit"] {
  display: none;
}

#route .popular {
  margin-top: 30px;
}

#route .popular .col {
  float: left;
}

#route .popular .col:first-child {
  margin-right: 50px;
}

#route .table-block {
  margin-top: 30px;
}

#route .table-block table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  border: 0;
}

#route .table-block table td {
  text-align: center;
  padding: 5px;
  border: 1px solid #ffffff;
}

#route .table-block table tr:nth-child(2n) {
  background-color: #f5f5f5;
}

#route .table-block table tr td:nth-child(2n) {
  background-color: #f5f5f5;
}

#route .table-block table td.hover,
#route .table-block table tr:hover td {
  background: #f5d7d7 !important;
}

#route .alph-block {
  margin-top: 30px;
}

#cities {
  margin-top: 30px;
}

#cities .alph-block {
  margin-bottom: 30px;
}

#cities .alph-block .alph-title {
  font-size: 18px;
  color: #bdbdbd;
  margin-bottom: 15px;
}

#cities .alph-block .alph-list .alph-region {
  margin-bottom: 10px;
}

#cities .alph-block .alph-list .alph-region-title a {
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px dashed #009;
}

#cities .alph-block .alph-list .alph-region-title a:hover {
  border-bottom: none;
}

#cities .alph-block-city .alph-list .alph-region-title a {
  font-size: 16px;
  text-decoration: underline;
  border: none;
}

#cities .alph-block-city .alph-list .alph-region-title a:hover {
  text-decoration: none;
}

#cities .alph-block .alph-list .alph-region-cities {
  margin: 15px 0;
  background: #eef0f3;
  font-size: 14px;
  color: #71757e;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#cities .alph-block .alph-list .alph-region-cities ul {
  margin: 0;
  padding: 0;
  width: 100%;
  list-style: none;
}

#cities .alph-block .alph-list .alph-region-cities ul li {
  width: 33%;
  display: inline-block;
}

.clear {
  clear: both;
}

.overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  background: rgba(0, 0, 0, 0.6);
}

.overlay .window {
  position: absolute;
  top: 200px;
  left: 50%;
  margin-left: -320px;
  width: 640px;
  /*padding:20px 30px 30px;*/
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0px 24px 65px 0px rgba(0, 0, 0, 0.5);
}

.overlay .window .close {
  position: absolute;
  right: 30px;
  top: 30px;
  display: block;
  width: 18px;
  height: 17px;
  background: url("../images/close.png") no-repeat;
}

.overlay .window .wbody {
}

.questions {
  margin-top: 30px;
}

.question {
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 20px;
}

.question .title {
  font-size: 16px;
  margin-bottom: 10px;
}

.question .text {
  margin-bottom: 10px;
}

.question .files {
  margin-bottom: 10px;
}

.question .files span:after {
  content: ",";
}

.question .files span:nth-last-child(1):after {
  display: none;
}

.question .datename {
  float: left;
}

.question .answer {
  float: right;
}

.question .bottom:after {
  content: "";
  display: block;
  clear: both;
  font-size: 0;
}

a.question_button,
a.question_button:hover {
  width: 100%;
  height: 50px;
  line-height: 50px;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  font-weight: bold;
  background: #b92525;
  display: block;
  border-radius: 5px;
  margin-bottom: 30px;
  text-decoration: none;
  font-size: 16px;
}

a.more_button,
a.more_button:hover {
  width: 100%;
  height: 50px;
  line-height: 50px;
  text-align: center;
  color: #fff !important;
  text-transform: uppercase;
  font-weight: bold;
  background: #767b8a;
  display: block;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px !important;
}

.btn-group a {
  background-color: #dde0e5; /* Green background */
  border: 1px solid #ccc; /* Green border */
  color: black; /* White text */
  text-decoration: none;
  padding: 5px 24px; /* Some padding */
  cursor: pointer; /* Pointer/hand icon */
  float: left; /* Float the buttons side by side */
}

.btn-group a:not(:last-child) {
  border-right: none; /* Prevent double borders */
}

/* Clear floats (clearfix hack) */
.btn-group:after {
  content: "";
  clear: both;
  display: table;
}

/* Add a background color on hover */
.btn-group a:hover,
.btn-group a.active {
  background-color: #fff;
}

.text-danger {
  color: red;
  font-size: 16px;
  width: 300px;
  padding-top: 10px;
}
.grecaptcha-badge {
  visibility: hidden;
}

#result-container {
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  background: #eef0f3;
  border: 1px solid #ccc;
}

.dt-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
}

.dt-button {
  margin-left: 10px;
  border: 1px solid #229528;
  padding: 10px 10px;
  display: inline-block;
  clear: both;
  color: #fff;
  font-weight: bold;
  background-color: #4caf51;
  cursor: pointer;
}

.dt-button:hover {
  background-color: #349039;
}

@media (max-width: 768px) {
  #result-container {
    overflow: scroll;
    width: 100%;
  }
}
.container {
	width:1200px;
	background: #fff;
	border-radius: 8px;
}

.ten-top {

}

.ten-bottom {

}

#text {
	width:810px;
}

.notices {
	width:810px;
}

.notices .list-view .items .item {
	margin-right:18px;
	overflow:hidden;
}

#footer {
	width:1200px;
}

.find_auto {
	width:100%;
}

.form {
	width:610px;
}

.list-news .note {
	width:660px;
}

.notice-mm .items {
	width:610px;
}

.notice-view .note .data dt {
	float:left;
	display:block;
	width:180px;
}

.notice-view .note .data dd {
	display:block;
}

.notice-view .images {
  padding: 0 30px 0 0;
}
/* Современный дизайн для страниц маршрутов route.jemo.ru */
/* Версия 1.2 - Оптимизировано для производительности и UX */

/* ============================================
   Layout и отступы
   ============================================ */

/* Убираем min-width для адаптивности */
body {
  min-width: 100% !important;
  overflow-x: hidden !important;
}

.container {
  width: 100% !important;
  max-width: 1200px !important;
  min-width: auto !important;
  box-sizing: border-box !important;
}

#text {
  padding-right: 30px !important;
  width: auto !important;
  max-width: 100% !important;
}

#right {
  padding-left: 15px !important;
  width: 300px !important;
  max-width: 100% !important;
}

/* Основной контейнер route */
#route {
  margin-top: 0 !important;
}

/* Главный заголовок H1 - СДЕРЖАННЫЙ */
#route h1 {
  font-size: 32px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin: 30px 0 30px 0 !important;
  line-height: 1.3 !important;
  padding-bottom: 16px !important;
  border-bottom: 4px solid #666c7a !important;
}

/* Общий фон для страницы */
#text {
  background: #ffffff !important;
  padding: 20px 30px 30px 0 !important;
}

/* ============================================
   CSS Variables для темизации
   ============================================ */
:root {
  /* Цвета */
  --color-primary: #757b89;
  --color-primary-hover: #666c7a;
  --color-primary-light: rgba(37, 99, 235, 0.1);
  --color-secondary: #64748b;
  --color-background: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #1e293b;
  --color-text-secondary: #64748b;
  --color-border: #e2e8f0;
  --color-error: #dc2626;
  --color-success: #16a34a;

  /* Отступы */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;

  /* Скругления */
  --border-radius: 8px;
  --border-radius-sm: 4px;
  --border-radius-lg: 12px;

  /* Тени */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);

  /* Анимации */
  --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Форма поиска маршрута
   ============================================ */
#route .route-search {
  position: relative !important;
  font-size: 14px !important;
  color: var(--color-text-secondary) !important;
  margin-bottom: var(--spacing-xl) !important;
  padding: var(--spacing-xl) !important;
  border-radius: var(--border-radius-lg) !important;
  box-shadow: var(--shadow-md) !important;
}

#route form .row {
  margin-bottom: var(--spacing-lg);
}

#route form .row:last-child {
  margin-bottom: 0;
  margin-top: 30px;
}

#route form .row-right {
  text-align: right;
}

#route form .row .col {
  float: left;
  width: calc(50% - 10px);
}

#route form .row .col:first-child {
  margin-right: 20px;
}

/* ============================================
   Улучшенные поля ввода
   ============================================ */
#route form input[type="text"] {
  margin: 0 !important;
  padding: 0 16px !important;
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  height: 44px !important; /* Увеличено с 25px для лучшего UX */
  width: 100% !important;
  border: 2px solid var(--color-border) !important;
  border-radius: var(--border-radius-sm) !important;
  font-size: 16px !important; /* Предотвращает zoom на iOS */
  transition: all var(--transition) !important;
  background: var(--color-surface) !important;
  color: var(--color-text) !important;
  box-shadow: inset 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

#route form input[type="text"]:hover {
  border-color: var(--color-secondary);
}

#route form input[type="text"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

#route form input[type="text"]::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.6;
}

/* ============================================
   Современные кнопки
   ============================================ */
#route form input[type="submit"] {
  height: 44px !important;
  width: 100% !important;
  max-width: 210px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: white !important;
  background: var(--color-primary) !important;
  background-image: none !important;
  border: none !important;
  border-radius: var(--border-radius-sm) !important;
  cursor: pointer !important;
  transition: all var(--transition) !important;
  box-shadow: var(--shadow-sm) !important;
  padding: 0 24px !important;
  text-indent: 0 !important;
}

#route form input[type="submit"]:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

#route form input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

#route form input[type="submit"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* Для старых браузеров - показываем текст если background-image не загрузился */
#route form input[type="submit"]:not([value=""]) {
  font-size: 16px;
  text-indent: 0;
}

/* ============================================
   Label стили
   ============================================ */
#route form label {
  display: block;
  float: left;
  margin-right: 8px;
  margin-bottom: var(--spacing-sm);
  height: auto;
  line-height: 1.5;
  width: auto;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

/* ============================================
   Быстрые ссылки
   ============================================ */
#route form .route-simple {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: normal;
  font-size: 12px;
  border-bottom: 1px dashed var(--color-primary);
  margin: 5px 0 0 0;
  display: inline-block;
  transition: all var(--transition);
}

#route form .route-simple:hover {
  border-bottom: none;
  color: var(--color-primary-hover);
}

/* ============================================
   Autocomplete dropdown
   ============================================ */
.ui-autocomplete {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-sm) 0;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
}

.ui-menu-item {
  padding: var(--spacing-sm) var(--spacing-md);
  cursor: pointer;
  transition: background var(--transition);
  list-style: none;
}

.ui-menu-item:hover,
.ui-state-focus {
  background: var(--color-background);
}

.ui-menu-item .ui-menu-item-wrapper {
  padding: 0;
  color: var(--color-text);
}

/* ============================================
   Информационные блоки - СДЕРЖАННЫЙ ДИЗАЙН
   ============================================ */
#route .info-block,
#route .fuel-block,
.text-block {
  margin-top: var(--spacing-xl) !important;
  background: white !important;
  font-size: 16px !important;
  color: #1e293b !important;
  padding: 2rem !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1) !important;
  position: relative !important;
}

#route .info-block table,
#route .fuel-block table {
  color: #1e293b !important;
}

#route .info-block table td,
#route .fuel-block table td {
  color: #1e293b !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
  padding: 8px 0 !important;
}

#route .info-block a,
.text-block a {
  color: #757b89 !important;
  text-decoration: underline !important;
}

#route .info-block a:hover,
.text-block a:hover {
  color: #666c7a !important;
}

/* Сайдбар блок с описанием - компактнее */
#right .text-block {
  font-size: 14px !important;
  line-height: 1.5 !important;
  padding: 1.5rem !important;
}

#route .info-block table {
  width: 100%;
  margin: 0;
  border: none;
  border-collapse: collapse;
}

#route .info-block table td {
  padding: 4px 8px; /* Уменьшили отступы для компактности */
  line-height: 1.5;
}

#right .menu {
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1) !important;
}

/* ============================================
   Блок карты - СОВРЕМЕННЫЙ ДИЗАЙН
   ============================================ */
#route .map-block {
  margin-top: var(--spacing-xl) !important;
  overflow: hidden !important;
  border: 1px solid #ccc !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1) !important;
  background: #fff !important;
}

#route-map {
  width: 100% !important;
  height: 500px !important;
  background: var(--color-background) !important;
  position: relative !important;
}

/* Заголовки перед блоками */
#route h3 {
  color: #757b89 !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  margin: 40px 0 20px 0 !important;
  padding-left: 20px !important;
  border-left: 5px solid #757b89 !important;
}

/* Skeleton loader для карты */
.map-skeleton {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--color-text-secondary);
  font-size: 18px;
  position: relative;
  overflow: hidden;
}

.map-skeleton::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  to {
    left: 100%;
  }
}

/* ============================================
   Блок маршрута - СОВРЕМЕННЫЙ ДИЗАЙН
   ============================================ */
#route .route-block {
  margin-top: var(--spacing-xl) !important;
  background: white !important;
  padding: 2rem !important;
  border-radius: 12px !important;
  border: 3px solid #757b89 !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1) !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Контейнер для таблицы с горизонтальным скроллом */
#route .route-block .route-steps {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  margin: 0 !important;
}

/* Таблица маршрута */
#route .route-block .route-steps #list {
  width: 100% !important;
  min-width: 600px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: none !important;
  margin: 0 !important;
}

/* Строки таблицы маршрута */
#route .route-block .route-steps #list tr {
  background: linear-gradient(to right, #f8fafc 0%, #ffffff 100%) !important;
  border-bottom: 2px solid #e2e8f0 !important;
  transition: all 0.2s ease !important;
}

#route .route-block .route-steps #list tr:hover {
  background: linear-gradient(to right, #eef2ff 0%, #f8fafc 100%) !important;
  box-shadow: 0 2px 8px rgba(117, 123, 137, 0.15) !important;
  transform: translateX(2px) !important;
}

#route .route-block .route-steps #list tr:last-child {
  border-bottom: none !important;
}

/* Общие стили для всех ячеек */
#route .route-block .route-steps #list td {
  padding: 16px 12px !important;
  vertical-align: middle !important;
  border: none !important;
  transition: all 0.2s ease !important;
}

/* 1. Иконка направления (FontAwesome) */
#route .route-block .route-steps #list td:nth-child(1) {
  width: 50px !important;
  text-align: center !important;
  font-size: 24px !important;
  color: #757b89 !important;
  padding: 16px 8px !important;
}

#route .route-block .route-steps #list td:nth-child(1) i.fa {
  display: inline-block !important;
  width: 24px !important;
  height: 24px !important;
}

/* 2. Действие ("Поверните налево" и т.д.) */
#route .route-block .route-steps #list td:nth-child(2) {
  color: #1e293b !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  padding-left: 16px !important;
  min-width: 150px !important;
}

/* 3. Название улицы */
#route .route-block .route-steps #list td:nth-child(3) {
  color: #475569 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  padding-left: 16px !important;
  max-width: 300px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 4. Расстояние */
#route .route-block .route-steps #list td:nth-child(4) {
  color: #757b89 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-align: right !important;
  white-space: nowrap !important;
  padding-right: 16px !important;
  min-width: 80px !important;
}

/* 5. Время в пути */
#route .route-block .route-steps #list td:nth-child(5) {
  color: #64748b !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-align: right !important;
  white-space: nowrap !important;
  padding-right: 16px !important;
  min-width: 80px !important;
}

/* ============================================
   Популярные маршруты - СОВРЕМЕННЫЙ ДИЗАЙН
   ============================================ */
#route .popular {
  margin-top: var(--spacing-xl) !important;
}

#route .popular .col {
  float: left !important;
  width: calc(50% - 20px) !important;
  margin-right: 40px !important;
}

#route .popular .col:last-child {
  margin-right: 0 !important;
}

#route .popular ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#route .popular li {
  margin-bottom: 12px !important;
  padding-left: 0 !important;
}

#route .popular li a {
  display: inline-block !important;
  padding: 10px 16px !important;
  background: linear-gradient(to right, #f8fafc 0%, #ffffff 100%) !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 8px !important;
  color: #1e293b !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#route .popular li a:hover {
  background: linear-gradient(to right, #eef2ff 0%, #f8fafc 100%) !important;
  border-color: #757b89 !important;
  transform: translateX(4px) !important;
  box-shadow: 0 2px 8px rgba(117, 123, 137, 0.15) !important;
}

/* Пагинация - современный дизайн */
#route ul.yiiPager {
  text-align: center !important;
  margin-top: 30px !important;
  padding: 0 !important;
  list-style: none !important;
  display: flex !important;
  justify-content: left !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

#route ul.yiiPager li {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
}

#route ul.yiiPager li a {
  display: inline-block !important;
  min-width: 20px !important;
  height: 20px !important;
  line-height: 17px !important;
  padding: 0 10px !important;
  margin: 0 !important;
  background: white !important;
  background-image: none !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 8px !important;
  color: #1e293b !important;
  text-decoration: none !important;
  text-align: center !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

#route ul.yiiPager li a:hover {
  background: #757b89 !important;
  background-image: none !important;
  color: white !important;
  border-color: #757b89 !important;
  transform: translateY(-2px) !important;
}

#route ul.yiiPager li.selected a {
  background: #757b89 !important;
  background-image: none !important;
  color: white !important;
  border-color: #757b89 !important;
  font-weight: 600 !important;
}

#route ul.yiiPager li.previous a,
#route ul.yiiPager li.next a {
  background-image: none !important;
  padding: 0 20px !important;
}

#route ul.yiiPager li.disabled a {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

#route ul.yiiPager li.disabled a:hover {
  background: white !important;
  color: #1e293b !important;
  border-color: #e2e8f0 !important;
  transform: none !important;
}

/* ============================================
   Релевантные маршруты
   ============================================ */
#route .relevant-block {
  margin-top: var(--spacing-xl);
}

#route .relevant-block .col {
  float: left;
  margin-right: 50px;
}

/* ============================================
   Таблица расстояний - УЛУЧШЕННЫЙ ДИЗАЙН
   ============================================ */
#route .table-block {
  margin-top: var(--spacing-xl) !important;
  background: white !important;
  padding: 2rem !important;
  border: 3px solid #757b89 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1) !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

#route .table-block table {
  width: 100% !important;
  min-width: 600px !important;
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: none !important;
}

#route .table-block table td {
  text-align: center !important;
  padding: 12px 8px !important;
  border: 1px solid #e2e8f0 !important;
  background: white !important;
  transition: all 0.2s ease !important;
}

#route .table-block table td.caption {
  font-weight: 600 !important;
  background: #f8fafc !important;
  color: #1e293b !important;
  border-color: #cbd5e1 !important;
}

#route .table-block table td a {
  color: #757b89 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  transition: all 0.2s ease !important;
  display: inline-block !important;
}

#route .table-block table td a:hover {
  background: #757b89 !important;
  color: white !important;
}

#route .table-block table td.hover,
#route .table-block table tr:hover td {
  background: #eef2ff !important;
}

/* ============================================
   Адаптивность
   ============================================ */

/* Исправление верхнего меню на мобильных */
@media (max-width: 768px) {
  /* Меню - компактное вертикальное */
  #search {
    height: auto !important;
    overflow: visible !important;
  }

  #mainmenu {
    height: auto !important;
    overflow: visible !important;
  }

  #mainmenu ul {
    display: block !important;
    text-align: center !important;
    padding: 4px 6px !important;
    margin: 0 !important;
  }

  #mainmenu li {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
  }

  #mainmenu li a {
    display: block !important;
    width: 100% !important;
    font-size: 13px !important;
    padding: 8px 12px !important;
    height: auto !important;
    line-height: 1.2 !important;
    text-align: center !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-sizing: border-box !important;
  }

  #mainmenu li:last-child a {
    border-bottom: none !important;
  }

  #mainmenu li.selected a {
    background-color: #bf1d1f !important;
    font-weight: normal !important;
  }

  #mainmenu li.selected span,
  #mainmenu li.selected span span {
    background: none !important;
    padding: 0 !important;
  }
}

/* Мобильные и планшеты */
@media (max-width: 768px) {
  /* ВАЖНО: Таблицы для layout становятся блоками (НО НЕ .table-block!) */
  #content > .clear > table:not(.table-block table),
  #content > .clear > table:not(.table-block table) tbody,
  #content > .clear > table:not(.table-block table) tr,
  #content > .clear > table:not(.table-block table) td {
    width: 100% !important;
  }

  /* Основной контент и сайдбар на всю ширину */
  #text,
  #right {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Сайдбар блок с описанием переносим выше */
  #right .text-block {
    order: -10 !important; /* Самый первый в сайдбаре */
    margin-top: 0 !important;
  }

  /* Остальное содержимое сайдбара ниже */
  #right > *:not(.text-block) {
    order: 10 !important;
  }

  /* Контейнер на всю ширину */
  .container {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* ВАЖНО: Таблицы в route-block и table-block остаются таблицами! */
  #route .route-block table,
  #route .route-block .route-steps #list,
  #route .table-block table {
    display: table !important;
    width: 100% !important;
    min-width: 500px !important;
  }

  #route .route-block table tbody,
  #route .table-block table tbody {
    display: table-row-group !important;
  }

  #route .route-block table tr,
  #route .route-block .route-steps #list tr,
  #route .table-block table tr {
    display: table-row !important;
  }

  #route .route-block table td,
  #route .route-block .route-steps #list td,
  #route .table-block table td {
    display: table-cell !important;
    width: auto !important;
  }

  /* Адаптация ячеек таблицы для мобильных */
  #route .route-block .route-steps #list td {
    padding: 12px 8px !important;
    font-size: 13px !important;
  }

  /* Иконка - компактнее */
  #route .route-block .route-steps #list td:nth-child(1) {
    width: 40px !important;
    font-size: 20px !important;
    padding: 12px 6px !important;
  }

  /* Действие */
  #route .route-block .route-steps #list td:nth-child(2) {
    font-size: 14px !important;
    padding-left: 10px !important;
    min-width: 120px !important;
  }

  /* Улица */
  #route .route-block .route-steps #list td:nth-child(3) {
    font-size: 13px !important;
    padding-left: 10px !important;
    max-width: 200px !important;
  }

  /* Расстояние */
  #route .route-block .route-steps #list td:nth-child(4) {
    font-size: 13px !important;
    padding-right: 10px !important;
    min-width: 70px !important;
  }

  /* Время */
  #route .route-block .route-steps #list td:nth-child(5) {
    font-size: 13px !important;
    padding-right: 10px !important;
    min-width: 70px !important;
  }

  /* Компактный блок маршрута */
  #route .route-block {
    padding: 1rem !important;
  }

  /* Route блоки */
  #route .route-search {
    padding: var(--spacing-md);
  }

  #route form .row .col {
    float: none;
    width: 100%;
    margin-bottom: var(--spacing-md);
  }

  #route form .row .col:first-child {
    margin-right: 0;
  }

  #route form input[type="text"],
  #route form input[type="submit"] {
    height: 48px;
    font-size: 16px;
  }

  #route form input[type="submit"] {
    width: 100%;
    max-width: none;
  }

  #route-map {
    height: 300px;
  }

  /* Популярные маршруты на мобильных */
  #route .popular .col {
    float: none !important;
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: var(--spacing-lg) !important;
  }

  #route .relevant-block .col {
    float: none;
    margin-right: 0;
    margin-bottom: var(--spacing-lg);
  }

  /* Алфавитный блок на мобильных */
  #route .alph-block .symb a {
    width: 38px !important;
    height: 38px !important;
    line-height: 38px !important;
    font-size: 16px !important;
  }

  /* Таблица расстояний на мобильных */
  #route .table-block {
    padding: 1rem !important;
  }

  #route .table-block table td {
    padding: 8px 4px !important;
    font-size: 13px !important;
  }

  #route form label {
    float: none;
    margin-bottom: var(--spacing-xs);
  }
}

@media (max-width: 480px) {
  #route .route-search {
    padding: var(--spacing-sm);
  }

  #route-map {
    height: 250px;
  }

  #route .info-block,
  #route .fuel-block,
  .text-block {
    padding: var(--spacing-md);
  }
}

/* ============================================
   Доступность
   ============================================ */
#route form input[type="text"]:focus-visible,
#route form input[type="submit"]:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Высокая контрастность */
@media (prefers-contrast: high) {
  :root {
    --color-border: #000000;
    --color-text-secondary: #000000;
  }
}

/* Уменьшение движения */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   Fuel блок - КОМПАКТНЫЙ ДИЗАЙН
   ============================================ */
#route .fuel-block {
  margin-top: var(--spacing-xl) !important;
  background: white !important;
  padding: 2.5rem !important;
  border: 3px solid #757b89 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1) !important;
}

#route .fuel-block .row {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 1rem !important;
  min-height: 44px !important;
}

#route .fuel-block .row hr {
  width: 100% !important;
  border: none !important;
  border-top: 2px solid #e2e8f0 !important;
  margin: 1rem 0 !important;
}

#route .fuel-block label {
  flex: 0 0 220px !important;
  margin: 0 !important;
  padding-right: 1rem !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  text-align: right !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  line-height: normal !important;
}

#route .fuel-block input[type="text"] {
  flex: 0 0 180px !important;
  width: 180px !important;
  height: 44px !important;
  padding: 0 16px !important;
  margin: 0 !important;
  font-size: 16px !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 8px !important;
  background: white !important;
  transition: all var(--transition) !important;
}

#route .fuel-block input[type="text"]:focus {
  border-color: #757b89 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(117, 123, 137, 0.1) !important;
}

#route .fuel-block input[readonly] {
  background: #f1f5f9 !important;
  color: #1e293b !important;
  font-weight: 600 !important;
  border-color: #cbd5e1 !important;
}

#route .fuel-block span {
  flex: 0 0 auto !important;
  margin-left: 12px !important;
  font-size: 16px !important;
  color: #64748b !important;
  float: none !important;
  height: auto !important;
  line-height: normal !important;
}

#route .fuel-block input[type="submit"] {
  display: none !important;
}

#route .fuel-block .clear {
  display: none !important;
}

/* Адаптив для fuel формы */
@media (max-width: 768px) {
  #route .fuel-block {
    padding: 1.5rem !important;
  }

  #route .fuel-block .row {
    flex-wrap: wrap !important;
  }

  #route .fuel-block label {
    flex: 0 0 100% !important;
    text-align: left !important;
    padding-right: 0 !important;
    margin-bottom: 0.5rem !important;
  }

  #route .fuel-block input[type="text"] {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }

  #route .fuel-block span {
    flex: 0 0 auto !important;
  }
}

/* ============================================
   Алфавитный блок - СОВРЕМЕННЫЙ ДИЗАЙН
   ============================================ */
#route .alph-block {
  margin-top: var(--spacing-xl) !important;
  background: white !important;
  padding: 2rem !important;
  border: 3px solid #757b89 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1) !important;
}

#route .alph-block h2 {
  color: #757b89 !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  margin: 0 0 20px 0 !important;
  padding-bottom: 12px !important;
  border-bottom: 3px solid #e2e8f0 !important;
}

#route .alph-block .symb {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 20px !important;
}

#route .alph-block .symb a {
  display: inline-block !important;
  width: 44px !important;
  height: 44px !important;
  line-height: 44px !important;
  text-align: center !important;
  background: linear-gradient(to bottom, #f8fafc, #ffffff) !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 8px !important;
  color: #1e293b !important;
  text-decoration: none !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  transition: all 0.2s ease !important;
}

#route .alph-block .symb a:hover {
  background: #757b89 !important;
  color: white !important;
  border-color: #757b89 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(117, 123, 137, 0.2) !important;
}

/* Страницы городов */
#cities {
  margin-top: var(--spacing-xl);
}

#cities .alph-block {
  margin-bottom: var(--spacing-xl);
}

#cities .alph-block .alph-title {
  font-size: 18px;
  color: #bdbdbd;
  margin-bottom: 15px;
}

#cities .alph-block .alph-list .alph-region {
  margin-bottom: 10px;
}

#cities .alph-block .alph-list .alph-region-title a {
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px dashed var(--color-primary);
  color: var(--color-primary);
  transition: all var(--transition);
}

#cities .alph-block .alph-list .alph-region-title a:hover {
  border-bottom: none;
  color: var(--color-primary-hover);
}

#cities .alph-block .alph-list .alph-region-cities {
  margin: 15px 0;
  background: var(--color-surface);
  font-size: 14px;
  color: var(--color-text-secondary);
  padding: 15px;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius-lg);
}

#cities .alph-block .alph-list .alph-region-cities ul {
  margin: 0;
  padding: 0;
  width: 100%;
  list-style: none;
}

#cities .alph-block .alph-list .alph-region-cities ul li {
  width: 33%;
  display: inline-block;
}

/* Фиксы для z-index autocomplete */
.uxie-tutu-autocomplete,
.uxie-busfor-autocomplete {
  z-index: 100 !important;
}

/* ============================================
   Резервирование места под рекламу (CLS fix)
   Фиксированная высота под популярные размеры
   ============================================ */

/* Баннер сверху - фиксированная высота 400px */
.bn_2,
div[id*="yandex_rtb_R-A"] {
  height: 400px !important;
  display: block !important;
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
}

/* Яндекс РТБ - фиксированная высота 400px */
div[id*="yandex_rtb"] {
  height: 400px !important;
  contain: layout !important; /* CSS Containment для производительности */
  content-visibility: auto !important; /* Lazy rendering */
  overflow: hidden !important;
}

/* Баннер справа - фиксированная высота 300px */
.bn_3,
.sticky-block {
  display: block !important;
  position: relative !important;
  margin-bottom: 20px !important;
  contain: layout !important;
  overflow: hidden !important;
}

.sticky-block .inner {
  width: 100% !important;
  overflow: hidden !important;
}

/* Skeleton для баннера пока загружается - адаптивный */
.bn_2:empty::before,
div[id*="yandex_rtb"]:empty::before,
.sticky-block:empty::before {
  content: "Загрузка рекламы...";
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 50px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 8px;
  color: #999;
  font-size: 12px;
}

/* Анимация загрузки */
@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Растяжка вверху - адаптивная высота */
#content > .clear > div:first-of-type {
  min-height: 50px !important;
  margin-bottom: 15px !important;
}

/* На мобильных - фиксированная высота 350px */
@media (max-width: 768px) {
  .bn_2,
  div[id*="yandex_rtb"] {
    height: 350px !important;
    max-width: 100% !important;
  }

  .sticky-block,
  .bn_3 {
    max-width: 100% !important;
  }
}

/* Оптимизация рекламных блоков для LCP и CLS */
.bn_2 {
  min-height: 90px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  contain: layout style paint; /* CSS Containment для изоляции рекламы */
  content-visibility: auto; /* Пропускать рендеринг если не в viewport */
}

/* Оптимизация изображений в рекламе */
.bn_2 img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* Яндекс RTB блоки */
div[id*="yandex_rtb"] {
  min-height: 90px;
}

/* ============================================
   МОДЕРНИЗАЦИЯ ФОРМЫ АВТОНАЛОГА
   ============================================ */

/* Контейнер формы - стили как у .route-search */
.form.add-notice {
  position: relative;
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  background: #eef0f3;
  border: 1px solid #ccc;
  max-width: 100%;
  box-sizing: border-box;
  width: 100%;
}

/* Контейнер поля формы */
.form.add-notice .row {
  margin-bottom: var(--spacing-lg);
  position: relative;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

/* Последний ряд без отступа снизу */
.form.add-notice .row:last-of-type {
  margin-bottom: 0;
}

/* Labels */
.form.add-notice label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
  white-space: nowrap;
}

/* Select элементы - скрываем ТОЛЬКО после успешной инициализации selectBox */
/* JavaScript добавит класс .selectbox-initialized после того, как плагин создаст кастомные элементы */
/* Плагин selectBox НЕ работает на мобильных устройствах (проверяет user-agent), поэтому там класс не добавится */
.form.add-notice select.select.selectbox-initialized {
  position: absolute !important;
  clip: rect(0, 0, 0, 0) !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

/* ===========================================
   НАТИВНЫЕ SELECT ДЛЯ КАЛЬКУЛЯТОРОВ
   Красивые стили без JavaScript плагинов
   =========================================== */

/* Базовые стили для нативных select */
.form.add-notice select.select,
.osago-calc select.select,
.avtonalog-calc select.select {
  height: 44px;
  width: 100%;
  max-width: 100%;
  padding: 0 40px 0 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  box-sizing: border-box;
  cursor: pointer;
  transition: all var(--transition);

  /* Убираем стандартную стрелку */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* Кастомная стрелка */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235A606F' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

/* Hover состояние */
.form.add-notice select.select:hover,
.osago-calc select.select:hover,
.avtonalog-calc select.select:hover {
  border-color: var(--color-primary);
}

/* Focus состояние */
.form.add-notice select.select:focus,
.osago-calc select.select:focus,
.avtonalog-calc select.select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Disabled состояние */
.form.add-notice select.select:disabled,
.osago-calc select.select:disabled,
.avtonalog-calc select.select:disabled {
  background-color: var(--color-background);
  color: var(--color-text-secondary);
  cursor: not-allowed;
  opacity: 0.7;
}

/* ===========================================
   LEGACY: SelectBox стили для других форм
   =========================================== */

/* SelectBox dropdown контейнер */
.form.add-notice .selectBox-dropdown {
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  transition: all var(--transition);
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  cursor: pointer;
}

/* SelectBox container */
.form.add-notice .selectBox {
  height: 44px;
  min-height: 44px;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
}

/* SelectBox label (видимая часть) */
.form.add-notice .selectBox-label {
  height: 42px !important;
  line-height: 42px !important;
  padding: 0 16px !important;
  font-size: 16px !important;
  background: transparent !important;
  color: var(--color-text) !important;
  border: none !important;
  box-sizing: border-box !important;
}

/* SelectBox arrow */
.form.add-notice .selectBox-arrow {
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  border-top-color: var(--color-text-secondary) !important;
}

/* SelectBox focus состояние */
.form.add-notice .selectBox-dropdown.selectBox-menuShowing {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* SelectBox dropdown меню */
.form.add-notice .selectBox-dropdown-menu {
  border: 2px solid var(--color-primary) !important;
  border-radius: var(--border-radius-sm) !important;
  box-shadow: var(--shadow-lg) !important;
  background: var(--color-surface) !important;
  max-height: 300px !important;
  margin-top: 4px !important;
}

/* SelectBox options */
.form.add-notice .selectBox-dropdown-menu li a {
  padding: 10px 16px !important;
  font-size: 15px !important;
  color: var(--color-text) !important;
  transition: background var(--transition) !important;
}

.form.add-notice .selectBox-dropdown-menu li.selectBox-hover a,
.form.add-notice .selectBox-dropdown-menu li.selectBox-selected a {
  background: var(--color-background) !important;
  color: var(--color-primary) !important;
}

/* Text input поля */
.form.add-notice input[type="text"],
.form.add-notice input[type="number"] {
  height: 44px;
  padding: 0 16px;
  font-size: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  transition: all var(--transition);
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.form.add-notice input[type="text"]:focus,
.form.add-notice input[type="number"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.form.add-notice input[type="text"]::placeholder,
.form.add-notice input[type="number"]::placeholder {
  color: var(--color-text-secondary);
}

/* Submit кнопка */
.form.add-notice input[type="submit"],
.form.add-notice button[type="submit"] {
  height: 48px;
  padding: 0 32px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background: var(--color-primary);
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  width: auto;
  min-width: 200px;
}

.form.add-notice input[type="submit"]:hover,
.form.add-notice button[type="submit"]:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.form.add-notice input[type="submit"]:active,
.form.add-notice button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.form.add-notice input[type="submit"]:focus,
.form.add-notice button[type="submit"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.form.add-notice input[type="submit"]:disabled,
.form.add-notice button[type="submit"]:disabled {
  background: var(--color-secondary);
  cursor: not-allowed;
  transform: none;
}

/* Кнопки контейнер */
.form.add-notice .row.buttons {
  margin-top: var(--spacing-xl);
  text-align: right;
}

/* Required field маркер */
.form.add-notice .required-field {
  color: #d9534f;
  font-weight: bold;
  margin-left: 3px;
}

/* Optional hint */
.form.add-notice .optional-hint {
  color: var(--color-text-secondary);
  font-size: 13px;
  font-style: italic;
  margin-left: 5px;
  font-weight: normal;
}

/* Error messages */
.form.add-notice .error-message {
  color: var(--color-error);
  font-size: 13px;
  margin-top: 6px;
  display: none;
  animation: slideDown 0.3s ease-out;
}

/* Ajax result блок */
#ajax-result {
  background: #f8f9fa;
  border-left: 4px solid #28a745;
  border-radius: var(--border-radius-sm);
  padding: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  animation: slideDown 0.3s ease-out;
}

#ajax-result strong {
  color: #28a745;
  font-size: 18px;
  font-weight: 600;
}

#ajax-result p {
  margin: 0 0 10px 0;
  font-size: 15px;
  line-height: 1.6;
}

#ajax-result div {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* Подсказка о полях */
.form.add-notice > p {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-background);
  border-radius: var(--border-radius-sm);
  border-left: 3px solid var(--color-primary);
}

/* Анимация */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптивность для планшетов и небольших экранов */
@media (max-width: 1050px) {
  /* Адаптивный контейнер */
  body {
    overflow-x: auto !important;
  }

  .container {
    max-width: 100% !important;
    overflow-x: visible !important;
  }

  /* Делаем layout вертикальным */
  #content > .clear > table {
    table-layout: fixed !important;
  }

  #content > .clear > table > tbody > tr > td {
    display: block !important;
    overflow: hidden !important;
    width: auto !important;
    height: auto !important;
  }

  #text {
    width: auto !important;
    max-width: 100% !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
  }

  /* Сайдбар вниз, адаптивный */
  #right {
    width: auto !important;
    float: none !important;
    text-align: center !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
  }

  /* Футер адаптивный */
  #footer {
    width: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .form.add-notice {
    width: auto !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Убираем фиксированные размеры */
  .form.add-notice .row,
  .form.add-notice .selectBox,
  .form.add-notice .selectBox-dropdown,
  .form.add-notice input[type="text"],
  .form.add-notice input[type="number"] {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  /* Мобильные: увеличиваем высоту select для удобства тапа */
  .form.add-notice select.select,
  .osago-calc select.select,
  .avtonalog-calc select.select {
    height: 48px !important;
    font-size: 16px !important; /* Предотвращает zoom на iOS */
    padding: 0 40px 0 16px !important;
  }

  .form.add-notice {
    padding: var(--spacing-md);
    margin-top: var(--spacing-lg);
    margin-left: 0;
    margin-right: 0;
    box-shadow: var(--shadow-sm);
  }

  .form.add-notice input[type="text"],
  .form.add-notice input[type="number"] {
    height: 48px !important;
    font-size: 16px !important; /* Предотвращает zoom на iOS */
  }

  .form.add-notice input[type="submit"],
  .form.add-notice button[type="submit"] {
    height: 50px;
    width: 100%;
    min-width: 0;
  }

  #route form input[type="submit"] {
    height: 50px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .form.add-notice .row {
    margin-bottom: var(--spacing-md);
  }

  .form.add-notice label {
    font-size: 15px;
  }

  #ajax-result {
    padding: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .form.add-notice {
    padding: var(--spacing-md);
  }

  .form.add-notice label {
    font-size: 14px;
  }

  #ajax-result strong {
    font-size: 16px;
  }

  #ajax-result p {
    font-size: 14px;
  }
}

/* Доступность */
.form.add-notice input:focus-visible,
.form.add-notice select:focus-visible,
.form.add-notice button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Высокая контрастность */
@media (prefers-contrast: high) {
  .form.add-notice input,
  .form.add-notice select,
  .form.add-notice .selectBox-label {
    border-width: 3px;
  }
}
