/* --- Стили для сетки тарифов --- */
.tariffs-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Расстояние между карточками */
}

.tariff-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    padding: 16px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    transform: translateZ(0);
}

.tariff-card:hover {
	border-color: #004d7a;
}

.tariffs-grid-container .tariff-card:nth-of-type(3) {
    border-color: #FF2120;
    border-width: 2px;
}

.tariffs-grid-container .tariff-card:nth-of-type(3) .tariff-speed-block {
    background-color: #FF2120;  
}

.tariffs-grid-container .tariff-card:nth-of-type(3) .tariff-speed-block .tariff-speed-item .text {
    color: white;
}

.tariffs-grid-container .tariff-card:nth-of-type(3) .tariff-speed-block .tariff-speed-item .icon {
    fill: white;
}

.tariffs-grid-container .tariff-card:nth-of-type(3):hover {
    border-color: #004d7a;
}

.tariffs-grid-container .tariff-card:nth-of-type(3) .tariff-speed-block .tariff-speed-note {
   color: white; 
}

.tariffs-grid-container .tariff-card:nth-child(3) .tariff-header-icon:before {
    content: 'Популярный';
    position: absolute;
    z-index: 9999;
    top: 8px;
    right: 8px;
    background-color: #ff2020;
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;

}

.tariff-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* --- Ширина колонок --- */
.tariffs-grid-container.columns-4 .tariff-card { width: calc(25% - 22.5px); }
.tariffs-grid-container.columns-3 .tariff-card { width: calc(33.333% - 20px); }
.tariffs-grid-container.columns-2 .tariff-card { width: calc(50% - 15px); }

/* --- Медиа-запросы для адаптивности --- */
@media (max-width: 1024px) {
    .tariffs-grid-container.columns-4 .tariff-card,
    .tariffs-grid-container.columns-3 .tariff-card {
        width: calc(50% - 15px); /* 2 колонки на планшетах */
    }
}
@media (max-width: 767px) {
    .tariffs-grid-container .tariff-card {
        width: 100%!important; /* 1 колонка на мобильных */
    }
}

/* --- Стилизация внутренностей карточки --- */
.tariff-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;  
}

.tariff-heading { 
    font-size: 22px; 
    font-weight: bold; 
    margin: 0 0 5px 0;
    color: #004d7a;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1;
    margin-bottom: 8px;
    padding-bottom: 0;
}
.tariff-subtitle { 
    font-size: 14px; 
    color: #666; 
    margin: 0; 
}

.tariff-header-icon img { 
    max-width: 70px; 
    height: auto; 
}

.tariff-price-block { 
    margin-bottom: 20px; 
    font-size: 1rem; 
}
.tariff-cost { 
    font-weight: bold;
    color: #004d7a;
    font-weight: 700;
    font-size: 1.875rem;
    line-height: 2.25rem; 
}

.tariff-speed-block { 
    background: #f7f7f7; 
    border-radius: 8px; 
    padding: 15px; 
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.tariff-speed-item { 
    display: flex; 
    align-items: center; 
    font-weight: bold; 
}
.tariff-speed-item .icon { 
    margin-right: 10px;
    display: flex;
    align-items: center;
}
.tariff-speed-note { 
    font-size: 13px; 
    color: #777; 
    margin-bottom: 5px; 
}

.tariff-features-list { 
    list-style: none; 
    padding: 0; 
    margin: 0 0 25px 0; 
    flex-grow: 1; /* Расталкивает кнопку вниз */ 
}
.tariff-features-list li { 
    display: flex; 
    align-items: center;
    margin-bottom: 5px;  
    font-size: 14px; 
}
.tariff-features-list .icon { 
    margin-right: 10px; 
    color: #28a745; 
} /* Зеленая галочка */

.tariff-footer { 
    text-align: center; 
}
.tariff-button {
    display: inline-block;
    background-color: #004D79;
    color: #fff!important;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 15px;
    line-height: 1;
    font-weight: 500;
    width: 100%;
    transition: background-color 0.2s;
}
.tariff-button:hover { 
    background-color: #003d61; 
}

.tariff-price-note {
    display: block;
    font-size: 13px;
    color: #28a745; /* Зеленый, для привлечения внимания */
    font-weight: bold;
    margin-top: 5px;
}

.tariff-speed-item .icon {
	fill: #303030;
}

.tariff-speed-item .text {
    font-size: 18px;
    font-weight: 600;
	color: #303030;
}

.tariff-features-list .icon {
    display: flex;
    align-items: center;
    fill: #10B981;
}

.tariff-speed-item svg {
    stroke: #303030;
}

.tariffs-grid-container .tariff-card:nth-of-type(3) .tariff-speed-block .tariff-speed-item svg {
    stroke: white;
}

.tariff-sidebar-detail .detail-price {
    font-size: 30px;
    font-weight: 600;
    color: #303030;
}

.tariff-features-list-detail .tariff-features-list {
    margin-bottom: 0;
}

.tariff-features-list-detail .tariff-features-list li {
	margin-bottom: 8px;
}

.tab-tarifs-inside .e-n-tabs-heading {
	justify-content: start!important;
    height: max-content;
}

.tab-tarifs-inside .e-n-tabs-heading button:nth-child(2) {
    margin: 0px!important;
}

.tab-tarifs-inside .e-n-tabs-heading {
	background-color: transparent!important;
}

.tab-tarifs-inside button.e-n-tab-title[aria-selected="false"] {
	text-decoration: underline;
}

.tab-tarifs-inside button.e-n-tab-title[aria-selected="true"] {
	text-decoration: none;
}

/*Код спойлеров на странице "Интернет для квартир" и "Интернет для домов" начало*/
.spoiler-toggle-button {
    display: inline;
    margin-top: 15px;
    padding: 8px 16px;
    /*border: 1px solid #007bff;*/
    color: #004d7a;
    /*background-color: transparent;*/
    /*border-radius: 5px;*/
    cursor: pointer;
    text-decoration: underline!important;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.spoiler-toggle-button:hover {
    /*background-color: #007bff;*/
    color: #303030;
}

/* Стили для скрытого контента, чтобы был отступ */
.spoiler-hidden-content {
    padding-top: 15px;
    border-top: 1px dashed #ccc;
    margin-top: 15px;
}

.spoiler-button-wrapper {
    display: flex;
    justify-content: center;
}
/*Код спойлеров на странице "Интернет для квартир" и "Интернет для домов" конец*/






/*стили для попапов дескрипшенов каналов кабельного ТВ начало*/
/* Делаем карточки кликабельными */
.channel-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* --- Стили для попапа --- */
#channel-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
}
#channel-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background: #fff;
    border-radius: 10px;
    z-index: 1001;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
#channel-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}
.popup-header { display: flex; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 20px; margin-bottom: 20px; }
.popup-header img { width: 100px; height: auto; margin-right: 20px; }
.popup-header h2 { margin: 0 0 5px 0; }
.popup-description p { margin: 0 0 1em 0; }
.popup-description p:last-child { margin-bottom: 0; }
/*стили для попапов дескрипшенов каналов кабельного ТВ конец*/

/*спойлер на странице кабельного ТВ начало*/
.wp-spoiler-jq-hidden {
  display: none;
}

.wp-spoiler-jq-toggle {
  display: inline-block;
  margin-top: 10px;
  color: #0073aa;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
}

.wp-spoiler-jq-toggle:hover {
  text-decoration: none;
}
/*спойлер на странице кабельного ТВ конец*/

#load-more-channels-btn {
    border: none!important;
}

.tariff-speed-item-domofon {
    display: flex;
    flex-wrap: wrap;
}

.tariff-speed-item-domofon .domofon-item-1,
.tariff-speed-item-domofon .domofon-item-2 {
	width: 50%;
}

.domofon-item {
    padding: 10px;
}

.main-men-hover li.menu-item .sub-menu li a {
    position: relative;
	display: inline-block;
	text-decoration: none;
	color: #414141;
	padding: 0px 0;
	transition: color 0.3s ease;
}

.main-men-hover li.menu-item .sub-menu li a::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 0;
	height: 1px;
	background-color: currentColor; /* линия того же цвета, что и текст */
	transition: all 0.3s ease;
	transform: translateX(-50%);
}

.main-men-hover li.menu-item .sub-menu li a:hover::after {
    width: 100%;
}

.pum-content a.link-popup img {
	border: 1px solid #efefef;
	border-radius: 5px;
    box-shadow: 0px 0px 9px -1px #d3d3d3;
    -webkit-box-shadow: 0px 0px 9px -1px #d3d3d3;
    -moz-box-shadow: 0px 0px 9px -1px #d3d3d3;
    transition: all 0.3s ease-in-out;
}

.pum-content a.link-popup img {
    box-shadow: 0px 0px 9px -1px rgba(186,186,186,1);
    -webkit-box-shadow: 0px 0px 9px -1px rgba(186,186,186,1);
    -moz-box-shadow: 0px 0px 9px -1px rgba(186,186,186,1);
}

@media (min-width: 1024px) and (max-width: 1170px) {
    .pum-container.pum-responsive.pum-responsive-medium {
        width: 70%;
    }
}