
@font-face {
    font-family: 'texgyreheroscn_regular';
    src: url('/fonts/texgyreheroscn-regular.woff2') format('woff2'),
         url('/fonts/texgyreheroscn-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@keyframes pulse {
  0% {
    background-color: #FF9859;
  }
  50% {
    background-color: #FF6614; 
  }
  100% {
    background-color: #FF9859;
  }
}

body {
	background: #F9F9F9;
	font-family: Arial;
	overflow-y: scroll;
}

html, body {
  height: 100%;
  margin: 0;
  font-size: 100%;
}
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#header {
	display: block;
	margin:0;
    padding:0;
	width: 100%;
	height: 156px;
	position: fixed;
	z-index: 9999;	
}

#header_info {
	display: flex;
	justify-content: flex-end; /* элементы прижимаются вправо */
	align-items: center;       /* выравнивание по вертикали */
	height: 2.1875rem;
	background: #F9F9F9;
	border-bottom: 1px solid #E0E0E0;
}

#header_info .wrapping {
	max-width: 1100px;
	width: 100%;
	margin: 0 auto;            /* центрирует по всей ширине */
	display: flex;
	justify-content: flex-end; /* контент внутри прижат вправо */
	align-items: center;
	padding: 0 1rem;
}

.contact_phone a, .contact_email a {
	display: block;
	float: right;
	margin: 0 0 0 1.25rem;
	padding: 0 0 0 1.25rem;
	font-size: 0.875rem;
	font-family: Verdana;
	text-align: right;
	color: #424242;
	background-repeat: no-repeat;
	text-decoration: none;
}

.contact_phone a {
	background-image: url(/templates/sunwell/images/phone.png);
}

.contact_email a {
	background-image: url(/templates/sunwell/images/email.png);
}
.contact_phone a:hover, .contact_email a:hover {
	text-decoration: underline;
}

.menu-toggle {
	display: none;
	font-size: 2rem;
	cursor: pointer;
	color: #303030;
}

#header_manu {
	display: block;
	width: 100%;
	height: 120px;
	background-image: url(/templates/sunwell/images/header.png);
	background-repeat: repeat-x;
	border-bottom: 5px solid #808080;
}

#header_manu .wrapping2 {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	padding: 0;
	box-sizing: border-box;
}

#logo a {
	display: block;
	width: 120px;
	height: 120px;
	background-image: url(/templates/sunwell/images/logo.png);
	background-repeat: no-repeat;
	background-size: contain;
	transition: transform 0.2s ease;
	transform: scale(1);
}

/* Снимаем float'ы и переписываем меню */
#main_menu {
	display: flex;
	align-items: center;
}

#main_menu ul {
	display: flex;
	gap: 35px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 1.25rem;
	font-family: "texgyreheroscn_regular", "Arial Narrow", Arial, sans-serif;
	text-transform: uppercase;
}

#main_menu ul li {
	padding: 0;
	margin: 0;
}

#main_menu ul li a {
	text-decoration: none;
	color: #303030;
}

#main_menu ul li a:hover {
	color: #606060;
}

#main_menu ul li a.current_page_item {
	color: #ff6600;
}


/* Когда прокрутка активна */
#header_manu.shrink {
	height: 70px;
	background-size: cover;
	border-bottom: 5px solid #808080;
}

#header_manu.shrink #logo a {
	height: 70px;
	background-size: contain;
}

#header_manu.shrink #main_menu {
	height: 30px;
}

#header_manu,
#header_manu #logo a,
#header_manu #main_menu,
#header_manu #main_menu ul li {
	transition: all 0.2s ease;
}

/**/

#not_found {
	display: block;
	max-width: 650px;
	height: auto;
	margin: 0;
	padding: 0;
	float: left;
	background-image: url(/templates/sunwell/images/404.png);
	background-repeat: no-repeat;
}

h1 {
	margin: 0 0 2.5rem;
	padding: 2.5rem 0 0.625rem;
	max-width: 1100px;
	border-bottom: 1px solid #D7D7D7;
	color: #F0701B;
	font-size: 1.75rem;
	font-family: "texgyreheroscn_regular", "Arial Narrow", Arial, sans-serif;
	font-weight: normal;
}

h2 {
	margin: 0;
	padding: 0 0 0.9375rem;
	color: #424242;
	font-size: 1.5rem;
	font-family: "texgyreheroscn_regular", "Arial Narrow", Arial, sans-serif;
	font-weight: normal;
	vertical-align: bottom;
}

h3 {
	margin: 0;
	padding: 0 0 0.625rem;
	color: #626262;
	font-size: 1.125rem;
	font-family: "texgyreheroscn_regular", "Arial Narrow", Arial, sans-serif;
	font-weight: normal;
	display: inline-block;
	vertical-align: bottom;
}

.slider-section {
  display: flex;
  flex-wrap: nowrap;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.slider {
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
 width: 600px;
 height: 320px;
}


.slider ul {
  position: relative;
  height: 320px;
}
/* Общие стили списка */
.slider ul,
.slider li {
  padding: 0;
  margin: 0;
  list-style-type: none;
}

/* Каждый слайд */
.slider ul li {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Активный слайд */
.slider ul li.active {
  display: block;
  z-index: 1;
}
/* Текст внутри слайда */
.stamp_area {
  position: absolute;
  left: 0;
  top: 200px;
  background: #090E14;
  padding: 0.9375rem;
  font-size: 1.5rem;
  color: #FFFFFF;
  font-family: Arial, sans-serif;
  min-width: 250px;
  z-index: 999;
  transition: opacity 3s ease-in-out;
}

.stamp_area_2 {
	display: block;
	font-size: 1.125rem;
	margin-top: 5px;
}

/* Показывать текст только на активном слайде */
.slider li.active .stamp_area {
  opacity: 0.8;
}

/* Навигация */
.slider .nav {
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	z-index: 10;
}

.slider .nav span {
  display: inline-block;
  width: 40px;
  height: 5px;
  margin-right: 8px;
  background: #F4F5F7;
  opacity: 0.9;
  cursor: pointer;
  box-shadow: 0 1px 1px #303030;
}

.slider .nav span.on {
  background: #CDD1DA;
  opacity: 0.7;
}

.depatments {
  flex: 0 1 500px; 
  height: 320px;
  background: url(/templates/sunwell/images/bg_app.png) no-repeat center;
  background-size: cover;
  box-sizing: border-box;
}

.depatments a {
	display: block;
	width: 100%;
	height: 200px;
	overflow: hidden;
	text-decoration: none;
	margin: 0;
}

.depatments .header {
	margin: 6px 0 20px;
	display: block;
	height: 32px;
	color: #EAFCFF;
	font-size: 1.375rem;
	font-family: "texgyreheroscn_regular", "Arial Narrow", Arial, sans-serif;
	letter-spacing: 1px;
	text-align: center;
	text-transform: uppercase;
}

.depatments li {
	display: block;
	padding: 0;
	margin: 18px 10px 0;
	font-size: 1.25rem;
	font-family: "texgyreheroscn_regular", "Arial Narrow", Arial, sans-serif;
	letter-spacing: 1px;
	font-weight: normal;
	text-align: center;
	line-height: 11px;
	color: #EAFCFF;
}

.depatments li:hover{
	color: #C8F4FB;
}
.depatments .make_app a {
	max-width: 250px;
}
.make_app a {
	display: block;
	max-width: 250px;
	height: 30px;
	color: #FFFFFF;
	background: #FF6614;
	text-decoration: none;
	margin: 40px auto 0;
	padding: 12px 0 0;
	letter-spacing: 1px;
	text-align: center;
    font-size: 16px;
    font-family: Arial;
	font-weight: bold;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.3s ease;
	animation: pulse 3s infinite;
	border-radius: 5px;
}

.close_app a {
	display: block;
	width: 120px;
	height: 30px;
	color: #FAFAFA;
	background: #49D149;
	text-decoration: none;
	margin: 40px auto 0;
	padding: 12px 0 0;
	letter-spacing: 1px;
	text-align: center;
    font-size: 16px;
    font-family: Arial;
	font-weight: bold;
	text-transform: uppercase;
	cursor: pointer;
	border-radius: 5px;
}

.close_app a:hover {
	background: #53D553;
}

.make_app input {
	display: block;
	width: 250px;
	height: 50px;
	color: #FFFFFF;
	background: #FF6614;
	border: none;
	margin: 40px auto 0;
	padding: 12px 0;
	letter-spacing: 1px;
	text-align: center;
    font-size: 16px;
    font-family: Arial;
	font-weight: bold;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.3s ease;
	animation: pulse 3s infinite;
	border-radius: 5px;
}

.book_app input {
	display: block;
	width: 250px;
	height: 50px;
	color: #FFFFFF;
	background: #FF8A3C;
	border: none;
	margin: 20px auto 0;
	padding: 12px 0;
	letter-spacing: 1px;
	text-align: center;
    font-size: 16px;
    font-family: Arial;
	font-weight: bold;
	text-transform: uppercase;
	cursor: pointer;
	border-radius: 5px;
}
.book_app input:hover {
	background: #FF9151;
}

.make_app a:hover {
	color: #FFFFFF;
	background-color: #FF6F1C;
}

/* book */

.calendar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.calendar-header button {
	cursor: pointer;
}

.calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	margin-bottom: 5px;
}

.day-name {
	font-weight: bold;
	text-align: center;
	font-size: 14px;
}

.day-btn {
	font-family: Arial;
	font-size: 16px;
	padding: 6px;
	text-align: center;
	cursor: pointer;
	background-color: #f0f0f0;
	color: #424242;
	border: none;
	border-radius: 4px;
}

.day-btn:disabled {
	background-color: #e0e0e0;
	color: #999;
	cursor: not-allowed;
}

.day-btn:hover:not(:disabled) {
	background-color: #FF7F2A;
	color: #FFFFFF;
}


#prev-month {
	display: block;
	float: left;
	width: 32px;
	height: 32px;
	padding: 0;
	margin-left: 5px;
	cursor: pointer;
	background-image: url(/templates/sunwell/images/arrow_l.png);
	background-repeat: no-repeat;
	border: none;
}

#next-month {
	display: block;
	float: left;
	width: 32px;
	height: 32px;
	padding: 0;
	margin-left: 5px;
	cursor: pointer;
	background-image: url(/templates/sunwell/images/arrow_r.png);
	background-repeat: no-repeat;
	border: none;
}


#myForm .row{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  max-width:1100px;
  width:100%;
  margin:0 auto 16px;
}

/* Колонка */
#myForm .row .book_visit{
  display:flex;
  flex-direction:column;
  min-width:0;
  margin:0;
}

/* Поля внутри колонки */
#myForm .row .book_visit input,
#myForm .row .book_visit select,
#myForm .row .book_visit textarea{
  float:none;
  display:block;
  width:100%;
  box-sizing:border-box;
  margin:0;
  padding:12px;
  border:1px solid #808080;
  border-radius:4px;
  font:18px/1.2 Arial, sans-serif;
  min-height:44px;
}

/* Утилити-классы (flex: grow shrink basis) */
.col-400 { flex: 1 1 400px; min-width:260px; } /* Name */
.col-380 { flex: 1 1 380px; min-width:300px; } /* Address */
.col-150 { flex: 0 1 150px; min-width:120px; } /* ZIP / Time */
.col-220 { flex: 0 1 220px; min-width:160px; } /* Date */
.col-200 { flex: 0 1 200px; min-width:180px; } /* Phone */
.col-390 { flex: 1 1 390px; min-width:260px; } /* Email */
.col-full{ flex: 1 1 100%; }

/* ----- Дата: обёртка, поле и кнопка ----- */
#myForm .row-2 .calendar-wrapper{
  position:relative;
  display:grid;
  grid-template-columns: 1fr 48px;  /* поле + кнопка */
  column-gap:6px;
  width:100% !important;            /* перебиваем старые inline-ширины */
  min-width:0;
}

#date_input{
  width:100% !important;            /* перебиваем inline width */
  height:48px;                      /* ровно с кнопкой */
  margin:0 !important;
  box-sizing:border-box;
}

/* Кнопка календаря — 48x48 (твой вариант) */
#toggle_calendar{
  width:48px;
  height:48px;
  padding:0;
  margin:0;                         /* gap уже даёт зазор */
  cursor:pointer;
  background-image:url(/templates/sunwell/images/calendar.png);
  background-repeat:no-repeat;
  background-position:center;
  background-color:#FAFAFA;
  border:1px solid #BFBFBF;
  border-radius:4px;
}
#toggle_calendar:hover{ border-color:#808080; }

/* Попап календаря — вниз от начала поля */
#myForm .calendar-popup{
  	position:absolute;
	top: 2px;
	left: 0;
	background: #fff;
	border: 1px solid #ccc;
	padding: 10px;
	z-index: 1000;
	display: none;
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
	width: 240px;
}



/**/

#allcontent {
	max-width: 1100px;
	width: 100%;
	margin: 0 auto;
	padding: 10rem 0 2.5rem;
	box-sizing: border-box;
	flex: 1;
}

#allcontent p {
	margin: 0 0 0.625rem 0;
	padding: 0;
	line-height: 1.5625rem;
	font-size: 1.125rem;
	color: #626262;
}

#allcontent ul, #allcontent ol {
	margin: 0 0 1.5625rem 0;
	padding: 0;
	font-size: 1.125rem;
	line-height: 1.5625rem;
	color: #626262;
}

#allcontent p a {
	color: #2477A7;
	text-decoration: none;
}

#allcontent p a:hover {
	text-decoration: underline;
}

#allcontent table {
	margin: 0 0 2.5rem;
	padding: 0;
	font-size: 1.125rem;
	color: #002654;
}

#allcontent img {
	margin: 0;
	padding: 0;
	box-shadow: 0 1px 2px #626262;
	max-width: 100%;
	height: auto;
	display: block;
}

#blog {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #D7D7D7;
}

#blog .images {
  width: 225px;
  flex-shrink: 0;
}

#blog .text_wrap {
  flex: 1 1 0;
  max-width: 850px;
  display: flex;
  flex-direction: column;
}


#blog .images {
  width: 225px;
  flex-shrink: 0;
}

#blog .images img {
  width: 100%;
  height: auto;
  display: block;
}

#blog .top_row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

#blog .blog_title {
  width: 100%;
  font-size: 1.5rem;
  font-family: "texgyreheroscn_regular", "Arial Narrow", Arial, sans-serif;
  color: #424242;
  flex: 1;
}

#blog .add_date {
  width: 100%;
  margin: 0;
  font-size: 1rem;
  font-family: Arial;
  color: #424242;
  white-space: nowrap;
  text-align: right;
}

#blog .texts p {
font-size: 1.125rem;
  font-family: Arial;
  color: #606060;
  margin: 0.5rem 0 0;
}

.pagination {
	width: 100%;
	display: flex;
	justify-content: center; /* центр center; вправо flex-end;*/
}

.pagination-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 5px; /* промежутки между кнопками */
}

.pagination .selected_item {
	display: block;
	font-family: Arial;
	font-size: 18px;
	font-weight: bold;
	color: #FAFAFA;
	height: 20px;
	padding: 5px 8px;
	margin: 0;
	border: 1px solid #FF7F2A;
	background: #FF7F2A;
	border-radius: 5px;
}

.pagination .space_item {
	display: block;
	font-family: Arial;
	font-size: 18px;
	color: #606060;
	font-weight: bold;
	height: 20px;
	padding: 12px 2px 0;
	margin: 0;
}

.pagination .no_selected_item a {
	display: block;
	font-family: Arial;
	font-size: 18px;
	font-weight: bold;
	color: #FAFAFA;
	height: 20px;
	padding: 5px 8px;
	margin: 0;
	border: 1px solid #9E9E9E;
	background: #9E9E9E;
	border-radius: 5px;
	text-decoration: none;
}

.pagination .no_selected_item a:hover {
	border: 1px solid #808080;
	background: #808080;
}


/*footer*/

#footer_line {
	display: block;
	margin: 0 auto;
	padding: 0;
	width: 100%;
	height: 5px;
	background: #FF7F2A;
}

#footer {
	width: 100%;
	background: #424242;
	color: #C5C5C5;
}

#footer_wrap {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
	flex-wrap: wrap; /* важно для адаптации */
	gap: 5%;
}

#center_footer, #contacts {
	flex: 1 1 30%;
	max-width: 240px;
	padding: 20px 0 0;
	box-sizing: border-box;
}

#about_company {
	flex: 1 1 36%;
	max-width: 540px;
	padding: 20px 0 0;
	box-sizing: border-box;
}

#about_company .name,
#center_footer .name,
#contacts .name {
	color: #EEEEEE;
	font-size: 26px;
	margin-bottom: 15px;
	font-family: "texgyreheroscn_regular", "Arial Narrow", Arial, sans-serif;
}

#about_company .content p {
	display: block;
	margin: 0 0 10px;
	padding: 0;
	color: #C5C5C5;
	font-size: 20px;
	font-family: "texgyreheroscn_regular", "Arial Narrow", Arial, sans-serif;
	font-weight: normal;
}

#about_company .content p a {
	color: #C5C5C5;
	text-decoration: none;
}

#about_company .content p a:hover {
	color: #FFFFFF;
}


#center_footer ul {
	list-style-type: disc;
	padding: 0 0 0 15px;
}

#center_footer li a {
	margin: 0;
	padding: 0;
	color: #C5C5C5;
	font-size: 20px;
	font-family: "texgyreheroscn_regular", "Arial Narrow", Arial, sans-serif;
	font-weight: normal;
	text-decoration: none;
}

#center_footer li a:hover {
	color: #FFFFFF;
}

#contacts .content {
	display: block;
	margin: 0 0 5px;
	padding: 0;
	color: #C5C5C5;
	font-size: 20px;
	font-family: "texgyreheroscn_regular", "Arial Narrow", Arial, sans-serif;
	font-weight: normal;
	line-height: 20px;
}

#contacts .content .contname {
	color: #BEBEBE;
}

#contacts .content a {
	color: #C5C5C5;
	text-decoration: none;
}

#contacts .content a:hover {
	color: #FFFFFF;
}

#contacts .content .contact {
	display: block;
	margin: 0 0 10px;
	padding: 0;
}


#toTop {
  display: block;
  margin: 10px 10px 10px auto; /* толчок вправо */
  height: 2rem;
  width: 2rem;
  cursor: pointer;
  background-image: url(/templates/sunwell/images/to_top.png);
  background-repeat: no-repeat;
  background-size: cover; /* или contain, если нужна адаптация */
  border: 1px solid #E5E5E5;
}

#toTop:hover {
	border: 1px solid #FFFFFF;
}

/* book_visit_form */

.calendar-wrapper {
	disabled: block;
	float: left;
	margin: 0;
	padding: 0;
	height: 48px;
}

#date-input {
	display: block;
	float: left;
	font-family: Arial;
	color: #424242;
	border: 1px solid #424242;
	border-radius: 4px;
	font-size: 16px;
	padding: 4px;
	width: 120px;
	height: 22px;
}

#toggle-calendar {
	display: block;
	float: left;
	width: 32px;
	height: 32px;
	padding: 0;
	margin-left: 5px;
	cursor: pointer;
	background-image: url(/templates/sunwell/images/calendar.png);
	background-repeat: no-repeat;
	border: none;
}

.calendar-popup {
	position: relative;
	top: 2px;
	left: 0;
	background: #fff;
	border: 1px solid #ccc;
	padding: 10px;
	z-index: 1000;
	display: none;
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
	width: 240px;
}

.calendar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.calendar-header button {
	cursor: pointer;
}

.calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	margin-bottom: 5px;

}

.day-name {
	font-weight: bold;
	text-align: center;
	font-size: 14px;
	color: #606060;
}

.day-btn {
	font-family: Arial;
	font-size: 16px;
	padding: 6px;
	text-align: center;
	cursor: pointer;
	background-color: #D7FFD7;
	color: #606060;
	border: none;
	border-radius: 4px;
}

.day-btn:disabled {
	background-color: #e0e0e0;
	color: #999;
	cursor: not-allowed;
}

.day-btn:hover:not(:disabled) {
	background-color: #FF9D5B;
	color: #FFFFFF;
}

.error {
	color: #F55353;
}

#prev-month {
	display: block;
	float: left;
	width: 32px;
	height: 32px;
	padding: 0;
	margin-left: 5px;
	cursor: pointer;
	background-image: url(/templates/sunwell/images/arrow_l.png);
	background-repeat: no-repeat;
	border: none;
}

#next-month {
	display: block;
	float: left;
	width: 32px;
	height: 32px;
	padding: 0;
	margin-left: 5px;
	cursor: pointer;
	background-image: url(/templates/sunwell/images/arrow_r.png);
	background-repeat: no-repeat;
	border: none;
}

.book_visit_form select  {
	display: block;
	float: left;
	font-family: Arial;
	color: #424242;
	border: 1px solid #424242;
	border-radius: 4px;
	font-size: 16px;
	margin: 0 0 0 30px;
	padding: 4px;
	height: 30px;
}

.book_visit_form input {
	display: block;
	float: left;
	font-family: Arial;
	color: #424242;
	border: 1px solid #424242;
	border-radius: 4px;
	font-size: 16px;
	margin: 0 0 0 30px;
	padding: 4px;
	height: 30px;
}

	
.input_label{
  display: flex;               /* управляем порядком звёздочки и подписи */
  align-items: baseline;       /* базовые линии вровень */
  gap: 6px;                    /* пробел между текстом/звёздочкой/подписью */
  font-family: "texgyreheroscn_regular", "Arial Narrow", Arial, sans-serif;
  color: #424242;
  font-size: 20px;
  margin: 5px 0;
  padding: 0;
}

/* звёздочка только у обязательных */
.input_label.is-required::after{
  content: "*";
  color: #e60000;
  font-weight: 700;
  order: 1;        /* будет стоять перед hint */
  margin-left: 2px;
}

/* подпись “optional” — спокойнее по стилю и после звёздочки */
.input_label .hint{
  order: 2;
  font: 16px/1.2 Arial, sans-serif;
  color: #606060;
}

#myForm .row-2 > .col-220 { flex-basis: 270px; } /* Date: было 220 */
#myForm .row-2 > .col-390 { flex-basis: 340px; } /* Email: было 390 */

.messages {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 4px;
}

.error-messages {
  background-color: #ffe6e6;
  border: 1px solid #ff4d4d;
  color: #7D0000;
  font-size: 20px;
  font-family: "texgyreheroscn_regular", "Arial Narrow", Arial, sans-serif;
}

.success-message {
  background-color: #e6ffe6;
  border: 1px solid #33cc33;
  color: #267326;
  font-size: 20px;
  font-family: "texgyreheroscn_regular", "Arial Narrow", Arial, sans-serif;
}

.error, .success-message {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
} 

.icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: middle;
}


  .gallery-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 326px);
    gap: 61px;
    justify-content: center;
  }

  .gallery-preview {
    text-align: center;
  }

  .gallery-preview img {
    width: 324px;
    height: 324px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    display: block;
  }

  .caption {
    margin-top: 8px;
    font-size: 16px;
    color: #333;
  }

  .hidden {
    display: none;
  }

  .gallery-container,
	.gallery-container * {
	  box-sizing: border-box;
	}
 
 /* Contacts */

.contact-wrap{
  display:flex;
  flex-wrap:nowrap;          /* держим в ряд до брейкпоинта */
  align-items:flex-start;
  gap:20px;
}

.contact-wrap > .social,
.contact-wrap > .message_form{
  float:none !important;
  width:auto !important;
  box-sizing:border-box;
  /* margin не трогаем тут */
}

 
.contact-wrap > .social{
  flex:0 1 450px;            /* база 440 */
  min-width:280px;
  max-width:500px;
  background:#F9F9F9;
  padding:5px 0;
  margin:20px 0;
}

/* Правая колонка (форма) — прижимаем к правому краю */
.contact-wrap > .message_form{
  flex:0 1 520px;            /* база 440 */
  min-width:280px;
  max-width:520px;
  margin:20px 0 0 auto;  /* ← прижим вправо */
  background:#EEE;
  border:1px solid #DDD;
  border-radius:10px;
  padding:5px 40px 20px;
}

.social a{ overflow-wrap:anywhere; word-break:break-word; }

.social h2 {
	font-size: 22px; 
	margin: 2px 0 3px 40px;
}

.social a {
	color: #424242;
	text-decoration: underline;
}

.social a:hover {
	color: #606060;
	text-decoration: underline;
}

.social-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin: 5px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.social-icon.youtube {
  background-image: url('images/ico_youtube.png');
}

.social-icon.facebook {
  background-image: url('images/ico_facebook.png');
}

.social-icon.pinterest {
  background-image: url('images/ico_pinterest.png');
}

.social-icon.instagram {
  background-image: url('images/ico_instagram.png');
}

.social-icon {
  filter: grayscale(0%);
  transition: filter 0.3s ease;
}

.social-icon:hover {
  filter: grayscale(100%) brightness(1.8);
}


.social-icon_footer {
  display: inline-block;
  width: 32px;
  height: 32px;
  margin: 5px 10px 5px 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.social-icon_footer.youtube {
  background-image: url('images/ico_youtube_inv.png');
}

.social-icon_footer.facebook {
  background-image: url('images/ico_facebook_inv.png');
}

.social-icon_footer.pinterest {
  background-image: url('images/ico_pinterest_inv.png');
}

.social-icon_footer.instagram {
  background-image: url('images/ico_instagram_inv.png');
}

.social-icon_footer {
  filter: grayscale(0%);
  transition: filter 0.3s ease;
}

.social-icon_footer:hover {
  filter: grayscale(100%) brightness(1.8);
}

#sendForm{ 
	max-width: 100%; 
	width: 100%; 
	margin: 0; 
	display: grid; 
	gap: 12px; 
}

/* Элемент поля */
#sendForm .send_r{
  margin: 0;              /* раньше было 0 50px — не нужно для столбика */
  display: grid;
  gap: 6px;
}

/* Лейбл + звёздочка + подсказка */
#sendForm .input_label{
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: "texgyreheroscn_regular", "Arial Narrow", Arial, sans-serif;
  color: #424242;
  font-size: 20px;
  margin: 5px 0;
  padding: 0;
}
#sendForm .input_label.is-required::after{
  content: "*";
  color: #e60000;
  font-weight: 700;
  margin-left: 2px;
}
#sendForm .input_label .hint{
  font: 16px/1.2 Arial, sans-serif;
  color: #606060;
}

/* Инпуты/текстовые поля: на всю ширину, без float */
#sendForm .send_r input,
#sendForm .send_r textarea{
  width: 100%;
  box-sizing: border-box;
  float: none;
  margin: 0;
  padding: 12px;
  border: 1px solid #808080;
  border-radius: 4px;
  font: 18px/1.35 Arial, sans-serif;
  color: #424242;
  min-height: 44px;
}
#sendForm .send_r textarea{ min-height: 120px; }

#sendForm .send_r input,
#sendForm .send_r textarea{
  width: 100% !important;
  float: none !important;
  box-sizing: border-box;
  margin: 0;
}


/*  design */

.wrapper_design{ overflow-x: clip; }

.wrapper_design .texture-scroll-container{
  display: flex;
  flex-wrap: nowrap !important;   /* миниатюры в одну линию */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #ccc;
  padding: 10px 10px 15px;
  background: #E0E0E0;
  gap: 1rem;
  box-sizing: border-box;
  inline-size: min(800px, 100%);  /* = width, но надёжнее в лэйаутах */
  max-inline-size: 100%;
  margin-inline: auto;            /* центрируем */
}

.wrapper_design .texture-option{
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
}

.controls, .scale-control {
	display: flex;
	gap: 20px;
	margin: 10px 0 0;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start; /* ⬅️ Было center */
}
	
.controls label {
	font-family: Arial;
	color: #424242;
	font-size: 16px;
	margin: 0;
}

.controls select {
	font-family: Arial;
	color: #424242;
	font-size: 16px;
	padding: 6px 2px;
}

.braid-color-container {
  display: flex;
  align-items: flex-start; /* <-- ВАЖНО: выравнивание по верхнему краю */
  gap: 1px; /* Расстояние между label и кнопками */
  
}

.braid-color-wrapper {
  display: flex;
  align-items: center;
}

.texture-option {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    cursor: pointer;
}

.texture-option img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 1px solid #FFFFFF;
}

.texture-option.selected {
	box-shadow: 5px 5px 5px #424242;
}

.canvas-wrapper {
margin-top:20px;
  position: relative;
  display: inline-block;
  max-width: 800px;
}

.canvas-area {
overflow: hidden; /* ограничиваем видимую область */
  position: relative;
  width: 800px; /* или 100%, если нужно адаптивно */
}

#svgCanvas {
  width: 100%;
  height: auto;
  display: block;
  transform-origin: top center;
}

.zoom-controls {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zoom-controls button {
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.6); /* тёмный фон */
  color: #fff;                         /* белый текст */
  border: none;
  padding: 0;
  border-radius: 3px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  transition: background-color 0.2s;
}

.zoom-controls button:hover {
  background-color: rgba(0, 0, 0, 0.85);
}

.braid-color-wrapper {
	display: flex;
	align-items: center;
	gap: 5px;
}

.braid-color-scroll {
	display: flex;
	overflow: hidden;
	scroll-behavior: smooth;
	max-width: 150px; /* можешь подстроить под ширину */
	padding: 5px;
	border: 1px solid #CCCCCC;
	background: #E0E0E0;
}

.braid-color-swatch {
	width: 24px;
	height: 24px;
	margin-right: 10px;
	cursor: pointer;
	flex-shrink: 0;
	border: 1px solid #808080;
	border-radius: 4px;
}

.braid-color-swatch.selected {
	border: 1px solid #808080;
	box-shadow: 2px 2px 2px #000000;
}

.braid-arrow.left {
	display: block;
	float: left;
	width: 32px;
	height: 32px;
	padding: 0;
	cursor: pointer;
	background-image: url(/templates/sunwell/images/arrow_l.png);
	background-repeat: no-repeat;
	border: none;
}

.braid-arrow.right {
	display: block;
	float: left;
	width: 32px;
	height: 32px;
	padding: 0;
	cursor: pointer;
	background-image: url(/templates/sunwell/images/arrow_r.png);
	background-repeat: no-repeat;
	border: none;
}

svg {
	width: 100%;
	height: auto;
}


.wrapper_design .tabs{
  align-self: center;
  display: inline-flex;
  gap: 8px;
  width: 800px; 
  max-width: 100%;
  margin: 20px 0 10px;
  border-bottom: 1px solid #aaa;
  justify-content: flex-start;
}
.wrapper_design .tab{
  flex: 0 0 auto;
  padding: 6px 12px;
  font: 1rem Arial, sans-serif;
  font-weight: bold;
  background:#ECEBEA;
  border:1px solid #aaa;
  border-bottom:none;
  color:#808080;
  white-space:nowrap;
  border-radius:4px 4px 0 0;
}
.wrapper_design .tab.active{ background:#606060; color:#fff; border-color:#aaa; }

.wrapper_design .tab:hover { color:#424242; }

.wrapper_design .tab.active:hover { background:#808080; color:#fff;}

.wrapper_design .tab-content{ display:block; }

.wrapper_design .tab-content.hidden{ display:none; }

/* Полоса тканей: такая же «площадка» как у табов */
.wrapper_design .texture-scroll-container{
  width: 800px;            /* та же ширина, что и у .tabs */
  max-width: 100%;
  margin: 10px auto 0;     /* центрируем */
  flex-wrap: nowrap;       /* миниатюры в одну линию */
  overflow-x: auto;        /* скролл внутри полосы */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

/* миниатюры не дают полосе растягивать страницу */
.wrapper_design .texture-option{
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
}

.wrapper_design .tab-content{
  display: block;
  width: 100%;
  min-width: 0;            /* не тянуть родителя по контенту */
}

/* new design */


:root { --design-max: 800px; }

/* Каркас по центру, «гибкий» (адаптируется до 100%) */
.wrapper_design { align-items: stretch; overflow-x: clip; } /* не тянем страницу по X */
.design-frame {
  width: min(var(--design-max), 100%);  /* = до 800px, но не шире экрана */
  margin: 0 auto;                       /* центрируем */
  box-sizing: border-box;
}

/* ===== Tabs — без фиксированной ширины, живут внутри каркаса ===== */
.design-frame .tabs{
  display: inline-flex;
  gap: 8px;
  margin: 20px 0 10px;
  border-bottom: 1px solid #aaa;
}
.design-frame .tab{
  flex: 0 0 auto;               /* ширина по содержимому, не растягивать */
  padding: 6px 12px;
  font: 700 15px/1.2 Arial, sans-serif;
  background: #ECEBEA;
  border: 1px solid #aaa;
  border-bottom: none;
  color: #808080;
  white-space: nowrap;
  border-radius: 4px 4px 0 0;
}
.design-frame .tab.active{ background:#606060; color:#fff; border-color:#aaa; }

/* ===== Полоса тканей — окно-скролл на всю ширину каркаса ===== */
.design-frame .texture-scroll-container{
  display: flex;
  flex-wrap: nowrap !important; /* миниатюры в одну линию */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #ccc;
  padding: 10px 10px 15px;
  background: #E0E0E0;
  gap: 1rem;
  box-sizing: border-box;

  width: 100%;                  /* теперь равна ширине каркаса */
  max-width: 100%;
  margin: 10px 0 0;             /* центр уже обеспечен каркасом */
}
.design-frame .texture-option{
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
}

/* ===== Controls/Scale — также живут внутри каркаса ===== */
.design-frame .controls,
.design-frame .scale-control{
  display: flex;
  gap: 20px;
  margin: 10px 0 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

/* ===== Canvas — растягивается в пределах каркаса, пропорционален ===== */
.design-frame .canvas-wrapper,
.design-frame .canvas-area{ width: 100%; max-width: 100%; }
#svgCanvas{ width: 100%; height: auto; display: block; }

