@charset "utf-8";
/* CSS Document */

/* ==========================================================================
   Переменные — цвета и breakpoint-ы вынесены сюда, чтобы не дублировать
   одни и те же значения по всему файлу и было проще поддерживать тему.
   ========================================================================== */
:root {
  --color-primary: #ea232c;
  --color-accent: #4AEC2B;
  --color-text-dark: #333;
  --color-white: #fff;

  /* breakpoint-ы (для справки в комментариях, в @media их всё равно
     нужно прописывать буквально — CSS-переменные там не работают) */
  --bp-desktop: 1200px;
  --bp-tablet: 992px;
  --bp-mobile: 768px;
  --bp-small: 480px;
}

@font-face {
    font-family: SPUR;
	src:url("../fonts/SPUR.ttf");}
@font-face {
	font-family: FUnicode;
	src:url("../fonts/FUnicode.ttf");}


html {scroll-behavior: smooth;}

/* Страховка: любое изображение по умолчанию не вылезает за пределы
   родителя и не мешает адаптивности, если конкретных правил нет. */
img {
    max-width: 100%;
    height: auto;
}

.back{
    box-sizing: border-box;
    right: 0;
    bottom:0;
    position: fixed;
    z-index: 1;
}

.back img{
    width: 80px;
    height: 80px;
    bottom: 0;
}

.header {
	background: linear-gradient(#ffffff, #2653d9, #f82020);
	display:block;
    height: 150px;
	padding:0 ;
	margin:0;
}
.header-text{
	font-family: SPUR, sans-serif;
}

/* Утилита вместо инлайновых margin у логотипа/заголовка в шапке.
   height задан явно, т.к. общее правило img{height:auto} (выше)
   иначе перебивает атрибут height="142" из HTML и логотип
   растягивается до своего натурального (большого) размера. */
.header-logo {
	margin: 0 25px 0 0;
	height: 142px;
	width: auto;
}

.header-title-wrap {
	margin: 0 20px 5px 0;
}

.header-contacts {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: #fff;
  margin: 30px 15% 5px 0px
}

.header-contacts ul {
  list-style: none;
  padding: 0;
}

.header-contacts li {
	padding-top:7px;	
}

.header-contacts a {
	color: #fff;	
}

.header-contacts a:hover {
	color: var(--color-accent);
}

#menu__toggle {opacity: 0;}

#menu__toggle:checked ~ .menu__btn > span {
  transform: rotate(45deg);
}
#menu__toggle:checked ~ .menu__btn > span::before {
  top: 0;
  transform: rotate(0);
}
#menu__toggle:checked ~ .menu__btn > span::after {
  top: 0;
  transform: rotate(90deg);
}
#menu__toggle:checked ~ .menu__box {
  visibility: visible;
  left: 0;
}

.menu__btn {
  display: flex;
  align-items: center;
  position: fixed;
  top: 10px;
  left: 20px;

  width: 26px;
  height: 26px;

  cursor: pointer;
  z-index: 1;
}

.menu__btn > span,
.menu__btn > span::before,
.menu__btn > span::after {
  display: block;
  position: absolute;

  width: 100%;
  height: 2px;

  background-color: #616161;

  transition-duration: .25s;
}
.menu__btn > span::before {
  content: '';
  top: -8px;
}
.menu__btn > span::after {
  content: '';
  top: 8px;
}

.menu__box {
  display: block;
  position: fixed;
  visibility: hidden;
  top: 0;
  left: -100%;
  width: 300px;
  max-width: 100%;
  height: 100%;
  margin: 0;
  padding: 50px 0;
  list-style: none;
  background-color: #ECEFF1;
  box-shadow: 1px 0px 6px rgba(0, 0, 0, .2);
  transition-duration: .25s;
  overflow-y: auto;
}

.menu__item {
  display: block;
  padding: 3px 24px;
  color: #333;
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition-duration: .25s;
}
.menu__item2 {
  display: block;
  padding: 3px 24px;
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  font-weight: 600;
  list-style: none;
}
.menu__item:hover {background-color: #CFD8DC;}

#navgroup{
	background: var(--color-primary);
	z-index: 1;
}

/* Кнопки верхнего меню — раньше ширину подгоняли хаком со скрытыми "/".
   Проблема была в том, что "Услуги" обёрнута в дополнительный
   div.btn-group (для выпадающего списка) и из-за этого не участвовала
   в общем распределении свободного места наравне с остальными
   кнопками — они растягивались, а "Услуги" оставалась по размеру
   текста. Теперь все 5 пунктов (4 кнопки + обёртка "Услуги")
   явно сделаны равными flex-элементами.
   Важно: display:flex ставим только на обёртку .btn-group (чтобы
   растянуть кнопку внутри неё), а не на сами кнопки .btn — иначе
   их собственный текст перестаёт центрироваться через text-align. */
#navgroup {
	display: flex;
}

#navgroup > .btn,
#navgroup > .btn-group {
	flex: 1 1 0;
	text-align: center;
}

#navgroup > .btn-group {
	display: flex;
	align-items: stretch;
}

#navgroup > .btn-group > .btn {
	flex: 1 1 auto;
	width: 100%;
	text-align: center;
}

#cart{z-index: 0;}

.btn-danger{background: var(--color-primary);}

.topnav {background-color:aliceblue;}
.card{background-color:gainsboro;}
.fl:first-letter{
	font-family: 'FUnicode';
	color: rgb(255, 0, 0);    
	font-size: 40px;
	line-height: 30px;    
	vertical-align: top;
	display: inline-block;
	margin: 0 3px 3px 0;
}
.headctv{
	background:url("../images/CTV/2.jpeg") no-repeat;
    background-size: 100%;
}

.text-justify{
	text-indent: 1.5em;
    font-family: Arial, sans-serif;
    color: #333;
}

.cardround {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  margin: 0 auto;
}

.cardround-item {
  text-align: center;
  width: calc(25% - 20px);
  margin: 0 auto;
}

.cardround-item img {
  width: 250px;
  height: 250px;
  max-width: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #3c94f2;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.caption {
  margin-top: 10px;
  font-family: SPUR, sans-serif;
  font-size: 20px;
  color: #333;
  line-height: 1.4;
}

/* ---- Карусель ----
   Раньше ширина/высота были жёстко заданы в px (1200x480), из-за чего
   на экранах уже 1200px, но шире 768px (например, обычные ноутбуки/
   планшеты) появлялся горизонтальный скролл. Теперь контейнер тянется
   по ширине родителя, а высота держится через aspect-ratio. */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 1200 / 480;
    margin: 10px auto;
    overflow: hidden;
}

.carousel-slide {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.carousel-slide a {
    display: block;
    flex: 0 0 100%;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Стили для индикаторов */
.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.indicator {
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    border: none;
}

.indicator.active {
    background: white;
}


.h1sks {
  text-align: center;
  margin-bottom: 35px;
  font-size: 30px;
  color: #2c3e50;
}

.sksplit-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
  background-color: white;
}

.sksplit-item {
  position: relative;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  margin-bottom: 40px;
}


.sksplit-item:hover {
  transform: translateY(-5px);
}

/* Раньше центрирование иконки держалось на "left: 40%" — подобранном
   на глаз значении, которое ломается при других пропорциях блока.
   Теперь центрируем через flex у родителя + left:50%/translateX(-50%). */
.icon-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -40px);
}

.icon-container img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.it-obsl {
    margin-bottom: 15px;
    padding: 10px;
}

/* Стили для изображений — раньше были жёсткие 1180x350px */
.it-obsl img {
    width: 100%;
    max-width: 1180px;
    height: auto;
    aspect-ratio: 1180 / 350;
    object-fit: cover;
    display: block;
    margin: 0 auto;
	transition: transform 0.3s;
}

.it-obsl img:hover {
    transform: scale(1.02);
}

/* Стили для заголовков */
.it-obsl h2 {
    margin: 20px 0 10px;
    font-size: 24px;
    color: #333;
}

/* Стили для параграфов */
.it-obsl p {
    margin: 5px 0;
    line-height: 1.7;
}

/* Стили для списков */
.it-obsl ul {
    margin-left: 10px;
    list-style-type: disc;
    padding-left: 10px;
}
.it-obsl li {
    margin-bottom: 5px;
}


.footer {
  background-color: #606A6C;
  color: #fff;
  padding: 30px 0;
  font-family: Arial, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 0 20px;
  gap: 20px;
}

.useful-links, .contacts {
  max-width: 300px;
}

.useful-links h3, .contacts h3 {
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: 2px solid #55c3e9;
  padding-bottom: 5px;
}

.useful-links ul {
  list-style: none;
  padding: 0;
}

.useful-links li {
  margin-bottom: 10px;
}

.contacts ul li {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 10px;
}


.contacts li {
  padding-top: 10px;
 }

.aqua {
 color: aqua;
}

.fa {
  padding-right:5px;
}

.footer-divider {
  margin: 5px 15%; 
  border-top: 3px solid #fff; 
  width: 70%;
}

.copyright {
  text-align: center;
  margin-top: 10px;
  color: #fff;
  font-size: 18px;
}


.footer a {
	color: aqua;	
}

.footer a:hover {
	color: var(--color-accent);
}

/* Используется в разделах index */
.services-header {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
}

.underline {
    display: flex;
    width: 100px;
    border-bottom: 2px solid #ff9500;
    margin: 5px 45%;
}

.service-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.icon-cont {
    width: 120px;
    height: 120px;
    margin-right: 20px;
    flex-shrink: 0;
}

.icon-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
}

.service-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.service-description {
    line-height: 1.6;
}

/* Раньше сетка резко прыгала с 3 колонок сразу на 1 (только на 768px).
   Промежуточный шаг на 2 колонки для планшетов добавлен ниже,
   в блоке @media (max-width: 992px). */
.services_list.services__box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 60px 30px;
	padding: 30px 0px;
}

.one_service h3 {
	text-align: center
}


.one_service a:hover {
	color: var(--color-accent);
}

.services_list .img_wrp {
    height: 250px;
	width: 100%;
	max-width: 370px;
    margin: 0 auto 20px;
    overflow: hidden;
}

.services_list .one_service .title {
    margin: 0 0 11px;
    font: 500 22px / 26px 'Rubik', sans-serif;
}

.img_wrp {
   	overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.img_wrp img {
    width: 100%;
    height: 100%;
	max-height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.img_wrp:hover img {
    transform: scale(1.2);
    cursor: pointer;
}

.img_wrp:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}


/* Убираем все стили для ссылок в этом блоке */
#about a {
    text-decoration: none;
    color: inherit;
    cursor: default;
}

#about a:visited {
    color: inherit;
}

#about a:hover {
    text-decoration: none;
    color: inherit;
}

#about a:active {
    text-decoration: none;
    color: inherit;
}

.about-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
	align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

.about-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.about-item i {
    font-size: 20px;
    color: #007bff;
}

.about-item a {
    color: #333;
}

.about-item a:hover {
	text-decoration: underline;
    color: #007bff;
}

/* Форма обратной связи */
.feeed_content{
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 40px;
  border-radius: 5px;
  box-shadow: 4px 4px 8px 0 rgba(34, 60, 80, 0.2);
  flex-wrap: wrap;
}

.left-side {
  width: 25%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.left-side::before {
  content: "";
  position: absolute;
  height: 70%;
  width: 2px;
  background: #afafb6;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
}

.right-side {
  width: 75%;
  margin-left: 75px;
}

.details {
  margin-bottom: 15px;
  text-align: center;
}

.details i {
  font-size: 25px;
  color: #3e2093;
  margin-bottom: 10px;
}

.topic {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 7px;
}

.text-one,
.text-two {
  font-size: 14px;
  color: #afafb6;
}

.topic-text {
  font-size: 23px;
  font-weight: 600;
  color: #3e2093;
  margin-bottom: 10px;
}

.right-side p {
  margin-bottom: 20px;
}

.input-box {
  height: 50px;
  width: 100%;
  margin-bottom: 30px;
}

.input-box input,
.input-box textarea {
  height: 100%;
  width: 100%;
  border: none;
  border-radius: 5px;
  background: #f0f1f8;
  padding: 0 20px;
  margin-bottom: 2px;
  box-sizing: border-box;
}

.input-box label {
  font-size: 14px;
  color: #afafb6;
  padding-left: 5px;
}

.input-box textarea {
  resize: none;
  padding: 20px;
  font-family: "Roboto", sans-serif;
}

.message-box {
  min-height: 110px;
}

.feed_button {
  display: inline-block;
}

.feed_button input[type="submit"] {
  color: #fff;
  font-size: 18px;
  background: #3e2093;
  outline: none;
  border: none;
  padding: 10px 20px;
  border-radius: 7px;
  transition: 0.2s;
}

.feed_button input[type="submit"]:hover {
  background: rgb(0, 0, 207);
}

.invalid {
    border-color: #dc3545 !important;
    box-shadow: none !important;
}

.invalid + .error-message {
    display: block;
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

.error-message {
    display: none;
	color: red;
    position: absolute;
    bottom: -20px;
    left: 0;
}


.loading {
    display: none;
    text-align: center;
    margin-top: 20px;
    color: #333;
    font-size: 18px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.2;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.2;
    }
}

/* ==========================================================================
   Утилиты, заменяющие инлайновые style="" в HTML — так их можно
   переопределять в media-запросах без !important.
   ========================================================================== */
.visually-hidden-spacer {
	visibility: hidden;
}

.section-block {
	margin-top: 30px;
}

.section-heading-lg {
	font-size: 36px;
	text-align: center;
	margin-bottom: 20px;
}

.section-heading-md {
	font-size: 28px;
	text-align: center;
	margin-bottom: 20px;
}

.section-divider {
	border: none;
	border-top: 1px solid #ddd;
	margin: 20px 0;
}

.text-center-sm {
	text-align: center;
	margin-bottom: 5px;
}

.text-center-sm--16 {
	font-size: 16px;
	text-align: center;
	margin-bottom: 5px;
}

.heading-fl-center {
	text-align: center;
	margin-top: 30px;
}

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

/* Промежуточный шаг для планшетов: 3 колонки -> 2, до того как на 768px
   станет 1 колонка. Раньше этого шага не было, и на 768–992px карточки
   были слишком узкими и тесными. */
@media (max-width: 992px) {
    .services_list.services__box {
        grid-template-columns: repeat(2, 1fr);
    }

    .sksplit-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-text {
        font-size: 2rem;
    }

    .bd-highlight {
        margin: 0;
        padding: 0 10px;
        width: 100%;
        overflow: hidden;
        text-align: center;
    }

    .cardround-item {
        width: calc(50% - 20px);
    }

    .menu__box {
        width: 100%;
    }

    .header-contacts {
        flex-direction: column;
        align-items: flex-start;
        margin: 10px;
    }

    .header-contacts ul {
        padding-left: 0;
    }

    .header-contacts li {
        padding: 5px 0;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .useful-links,
    .contacts {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .feeed_content {
        flex-direction: column;
    }

    .left-side {
        width: 100%;
        margin-bottom: 20px;
    }

    .right-side {
        width: 100%;
        margin-left: 0;
    }

    .services_list.services__box {
        grid-template-columns: 1fr;
    }

    .sksplit-container {
        grid-template-columns: 1fr;
    }

    .services-header {
        font-size: 20px;
    }

    .service-title {
        font-size: 18px;
    }

    .service-description {
        font-size: 14px;
    }

    #navgroup {
        flex-wrap: wrap;
        justify-content: center;
    }

    #navgroup .btn-group,
    #navgroup .btn {
        margin: 5px;
    }

    .display-1 {
        font-size: 2.5rem;
    }

    #btnGroupDrop1 {
        white-space: nowrap;
    }

    /* Скрываем заголовок и верхнее меню-кнопки на мобильных —
       вместо них работает гамбургер-меню */
    div.bd-highlight {
        display: none !important;
    }

    div#navgroup {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .cardround-item {
        width: 100%;
    }
}
