@charset "utf-8";
/* === Базовые настройки === */
*, ::before, ::after { box-sizing: border-box; }
html { overflow-x: hidden; overflow-y: scroll; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: 17px; line-height: 1.5; color: #333; }
/* header */
header {background: linear-gradient(to bottom, #fff6b5 0%, #ffffff 100%);padding: 10px 20px;display: flex;flex-wrap: wrap;justify-content: space-between;align-items: flex-start;gap: 20px;}
.logo a {display: block;}
.logo img {display: block;max-width: 100%;height: auto;}
.contacts {color: #C00;font-weight: bold;font-size: 0.9em;line-height: 1.5;text-align: right;}
.contacts a {color: #C30;text-decoration: none;}
.contact-row {display: flex;justify-content: flex-end;align-items: center;gap: 24px;flex-wrap: wrap;padding-top: 12px;}
.contact-row a {display: flex;flex-direction: column;align-items: center;text-decoration: none;color: #C30;transition: opacity 0.2s;}
.contact-row a:hover {opacity: 0.85;color: #F60;}
.contact-row svg {width: 32px;height: 32px;margin-bottom: 6px;flex-shrink: 0;}
.contact-row span {font-size: 13px !important;line-height: 1.2;}
.hphone{font-size:150%;text-decoration:none; line-height:1.5em;}
/* === Ссылки === */
a:link { color: #c00; }
a:visited { color: #963; }
a:hover, a:focus { color: #f30; outline: none; }
a:focus { outline: 2px solid #c00; outline-offset: 2px; }
/* === Заголовки === */
h1, h2, h3, h4, h5 { color: #c30; margin: 20px auto; text-align: center; padding: 20px 0; }
h1 { font-size: 150%; }h2 { font-size: 140%; }h3 { font-size: 130%; }h4 { font-size: 120%; }h5 { font-size: 100%; }
@media (max-width: 767px) { h1 { width: 98%; margin: 1em auto; } }
/* === Навигация === */
.nav-menu { width: 100%; }
#nav, #nav ul { list-style: none; margin: 0; padding: 0; }
#nav { font-family: Arial, Helvetica, sans-serif; width: 100%; background-color: #f90; border-bottom: 3px solid #f60; position: relative; display: block; }
#nav::after { content: ""; display: table; clear: both; }
#nav ul.subs { background-color: #fffef9; box-shadow: 1px 1px 5px rgba(0,0,0,0.2); color: #c00; display: none; left: 0; position: absolute; top: 54px; width: 96%; min-width: 600px; z-index: 1000; }
@media (min-width: 769px) { #nav li:hover ul.subs, #nav li:focus-within ul.subs { display: block; } }
#nav > li { border-bottom: 5px solid transparent; float: left; margin-bottom: -5px; text-align: left; transition: all 0.3s ease-in-out; font-size: 17px; font-weight: 600; position: relative; }
#nav > li > a, #nav > li > label { display: block; line-height: 49px; padding: 0 15px; color: #c00; text-decoration: none; transition: color 0.45s, background-color 0.45s; }
#nav > li:hover > a, #nav > li:hover > label, #nav > li > a:hover, #nav > li > label:hover { background-color: #f55856; color: #fff; }
#nav li.active > a { color: #fff; background: #c03; }
#nav ul.subs > li { display: inline-block; float: none; padding: 6px 10px; vertical-align: top; width: 45%; text-align: left; color: #f60; font-weight: 600; font-size: 15px; }
#nav ul.subs a { display: block; color: #c00; background: #fdedb5; font-size: 14px; line-height: 1.35em; font-weight: 500; text-align: left; margin: 5px 0; padding: 10px 10px; text-decoration: none; border-radius: 5px; }
#nav ul.subs a:hover { color: #f30; background: #fdf4e0; }
#nav ul.subs > li li { float: none; padding-left: 8px; transition: padding 0.15s ease-out;}
#nav ul.subs > li li:hover { padding-left: 24px; }
.submenu-toggle { position: absolute; opacity: 0; z-index: 2; }
.toggle-plus, .toggle-minus { margin-left: 6px; font-weight: bold; }
.toggle-minus { display: none; }
@media (max-width: 768px) {
#nav > li { float: none; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.2); margin-bottom: 0; font-size: 18px; }
#nav ul.subs { position: relative; top: 0; width: 100%; min-width: auto; box-shadow: none; border-top: 1px solid #f90; display: none; }
.submenu-toggle:checked ~ ul.subs { display: block !important; }
#nav ul.subs > li { display: block; width: auto; text-align: left; padding: 10px 15px 15px; font-size: 20px; }
.submenu-toggle:checked + label .toggle-plus { display: none !important; }
.submenu-toggle:checked + label .toggle-minus { display: inline !important; }
}
/* === Основной контент === */
.main { width: 100%; padding: 20px 10px 40px; }
.main p, .main ul, .main ol { padding: 7px; line-height: 1.5; }
.main ol { margin-right: 40px; }
@media (max-width: 767px) { .main { padding: 10px 5px; } }
/* === Вводные блоки === */
.intro { background: linear-gradient(0deg, #fff6b5 27%, #ffffff); border: 1px solid #fc3; border-radius: 12px; color: #a00; padding: 30px 20px; margin: 25px 0; font-size: 17px; line-height: 1.6; }
@media (min-width: 768px) { .intro { padding: 40px 50px; } }
.intro h1 { margin: 0 0 20px; font-size: 160%; }
.intro .emph1 { color: #a00; font-weight: bold; margin: 20px 0 12px; padding: 0; font-size: 17px; }
.intro ul.round { padding-left: 20px; margin: 16px 0; }
/* === Списки === */
.round li { list-style: disc url(Graphics/round-li1.gif) inside; line-height: 1.5; margin: 10px 0; padding-left: 20px; }
/* === Изображения === */
.pic { max-width: 100%; height: auto; display: block; margin: 10px auto; padding: 0; filter: drop-shadow(4px 4px 6px rgba(160,120,90,0.4)); border: 1px solid #c90; border-radius: 12px; }
.pic2 { max-width: 100%; height: auto; display: block; margin: 5px 40px 0 20px; float: right; filter: drop-shadow(4px 4px 6px rgba(160,120,90,0.4)); }
@media (max-width: 768px) { .pic2 { float: none; margin: 10px auto; } }
/* === Инфоблок === */
.infobox { border: 1px solid #fef28d; border-radius: 10px; box-shadow: 3px 6px 14px 4px rgba(240,224,178,1); padding: 10px; margin: 10px 0; }
.infobox p { text-align: left; color: #666; }
.infobox li { border-bottom: 1px solid #ffc; margin-right: 5px; padding: 5px 5px 5px 10px; list-style: url(Graphics/li1-1.gif) inside; line-height: 1.5; }
.infobox .cta { margin-top: 10px; text-align: center; }
/* === Карточки услуг === */
.listing { list-style: none; margin: 25px 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.listing li { display: flex; flex-direction: column; background: #fff; border: 1px solid #ffe066; border-radius: 10px; box-shadow: 0 2px 6px rgba(234,223,190,0.4); overflow: hidden; }
.listing img { width: 140px; height: 140px; max-width: none; object-fit: contain; margin: 20px auto 20px; }
.listing .bigtext { text-align: center; padding: 12px 10px; background: linear-gradient(to bottom, #fff6b5, #ffe073); font: 15px/1.3 Arial, sans-serif; font-weight: 500; color: #a00; text-transform: uppercase; min-height: 64px; display: flex; align-items: center; justify-content: center; border: 1px solid #fc3; border-radius: 6px; }
.listing .announcebody { padding: 0 16px 16px; color: #555; font-size: 15px; flex: 1; }
.listing .announcebody p { margin: 0; line-height: 1.5; }
.listing .cta { padding: 0 16px 18px; text-align: center; }
/* === Кнопки на главной: карточки + инфоблок === */
.listing .alsoButton, .infobox .alsoButton { background: linear-gradient(180deg, #fae844 35%, #ffa12f 100%); color: #a31416; border: none; border-radius: 5px; padding: 8px 20px; font: 16px Arial, sans-serif; text-decoration: none; display: inline-block; cursor: pointer; font-weight: normal; }
.listing .alsoButton:hover, .infobox .alsoButton:hover { background: linear-gradient(0deg, #fae844 35%, #ffa12f 100%); color: #f30; }
.listing .alsoButton:focus, .infobox .alsoButton:focus { outline: 2px solid #c00; outline-offset: 2px; }
/* === Карусель Flickity === */
.carousel { width: 60%; margin: 30px auto; background-color: #ffc; border: 1px solid #fc9; border-radius: 5px; box-shadow: 4px 4px 8px 0px #eadfbe; }
.carousel-cell { width: 97%; height: 200px; background-color: #fff; padding: 5px; border: 1px solid #fc9; border-radius: 8px; margin: 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
@media (max-width: 600px) { .carousel { width: 97%; } .carousel-cell { height: 260px; } }
.advantage-number { font-family: Arial, Helvetica, sans-serif; font-size: 2.8em; font-weight: bold; color: #f90; text-align: center; padding-top: 5px; margin: 0; }
.advantage-number a { color: inherit; text-decoration: none; }
.advantage-text { font-family: Arial, Helvetica, sans-serif; font-size: 16px; color: #c90; text-align: center; padding: 5px 20px; margin: 8px 0; }
/* === Кнопка в карусели (переиспользуемый компонент) === */
.carousel .adv_btn { margin: 10px auto; width: 45%; text-align: center; }
.carousel .adv_btn a { display: block; width: 100%; padding: 10px 0; background: linear-gradient(180deg, #fae844 35%, #ffa12f 100%); color: #a31416; text-decoration: none; font: 16px Arial, sans-serif; font-weight: normal; border-radius: 5px; cursor: pointer; text-align: center; }
.carousel .adv_btn a:hover { background: linear-gradient(0deg, #fae844 35%, #ffa12f 100%); color: #f30; }
.carousel .adv_btn a:focus { outline: 2px solid #c00; outline-offset: 2px; }
/* === Футер === */
.footer { width: 100%; background: linear-gradient(0deg, rgba(254,237,159,0.81) 0%, rgba(255,255,255,0.72) 100%); color: #630; font: 90%/1.5 Arial, Helvetica, sans-serif; border-top: 1px solid #fdffac; border-bottom: 1px solid #fdffac; padding: 10px; display: flex; flex-wrap: wrap; gap: 15px; justify-content: space-between; }
.f1 { flex: 0 1 25%; min-width: 150px; text-align: center; }
.f2 { flex: 1 1 auto; text-align: center; white-space: normal; }
.f2 > div { white-space: normal; }
@media (max-width: 600px) { .footer { flex-direction: column; } .f1, .f2 { width: 100%; text-align: center; } }
/* === Счётчики === */
#counters { width: 100%; height: auto; float: left; }
