/* ==========================================================================
   КАСТОМНЫЕ СТИЛИ Factory Media
   Дата обновления: 6 ноября 2025
   ========================================================================== */

/* ===== БАЗОВЫЕ УТИЛИТЫ ===== */
.image-container {
    max-width: 100%;
    overflow: hidden;
}

.img-fluid {
    max-width: 100%;
    max-height: 100%;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

.custom-image {
    display: block;
    float: none;
    margin: 0;
}

/* ===== КНОПКИ ===== */
.btn-3d {
    box-shadow: 0 4px 9px -4px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
    margin-bottom: 3px;
    background-color: #bbe2e8;
    color: black;
}

.btn-3d:active {
    transform: translateY(2px);
    box-shadow: 0 2px 5px -4px rgba(0, 0, 0, 0.7);
}

.btn-3d-1 {
    box-shadow: 0 4px 9px -4px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
    margin-bottom: 3px;
    background-color: #e5fcff;
    color: black;
    font-size: 18px;
    border-color: #474747;
}

.btn-3d-1:active {
    transform: translateY(2px);
    box-shadow: 0 2px 5px -4px rgba(0, 0, 0, 0.7);
    background-color: #ffffff;
}

.btn-3d-1:hover {
    background-color: #474747;
}

.custom-btn {
    background-color: #B1E4E9;
    border-top: none;
    border-left: none;
    border-bottom: 2px solid black;
    border-right: 2px solid black;
    border-radius: 20px;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2);
}

.cta-button {
    display: inline-block;
    background-color: #1c1c1c;
    color: #fff;
    padding: 12px 24px;
    margin-top: 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #444;
}

.telegram-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #229ED9;
    color: #fff;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 500;
    transition: background 0.25s ease;
    box-shadow: 0 6px 20px rgba(34, 158, 217, 0.2);
}

.telegram-button:hover {
    background-color: #1b8cc7;
}

.telegram-icon {
    width: 20px;
    height: 20px;
}

/* ===== СПИСКИ ===== */
ul.custom-list li {
    list-style-type: square;
    list-style-image: url('../assets/img/check.png');
    list-style-position: inside;
    font-size: 14px;
}

li.custom-text {
    font-size: 14px;
}

ol.custom-counter {
    counter-reset: item;
    margin: 0;
    padding-left: 3rem;
}

ol.custom-counter li {
    list-style: none;
    margin: 3px;
    padding: 0;
    position: relative;
    padding-left: 20px;
}

ol.custom-counter li::before {
    counter-increment: item;
    content: counter(item) ".";
    position: absolute;
    left: 0;
}

/* Нумерованный список с кругами */
ol.ol-circle {
    list-style: none;
    padding: 0;
}

li.li-circle {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.circle-li {
    width: 50px;
    height: 50px;
    background-color: #001f3f;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.description-li {
    margin-top: 5px;
}

/* ===== ТИПОГРАФИКА ===== */
h1.second-h1 {
    font-size: calc(8px + 1vw);
    font-weight: 500;
    max-width: 100%;
    position: relative;
}

.second-p {
    font-size: calc(8px + 1vw);
    max-width: 100%;
}

.icon-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 13px;
}

.views-number {
    font-weight: bold;
}

.eye-icon {
    margin-right: 5px;
}

/* Сброс стилей для родительского контейнера */
.custom-reset h1 {
    font-size: 2rem;
    font-weight: bolder;
}

.custom-reset h2 {
    font-size: 1.7rem;
    font-weight: bold;
}

.custom-reset h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

.custom-reset h4 {
    padding-top: 2px;
    font-size: 1.3rem;
    font-weight: 400;
}

.custom-reset h5 {
    font-size: 1.1rem;
    font-weight: 300;
}

.custom-reset h6 {
    font-size: 1rem;
    font-weight: 200;
}

.custom-reset p {
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.5;
    color: inherit;
}

/* ===== ИЗОБРАЖЕНИЯ И МЕДИА ===== */
.image-square-uslugi {
    position: relative;
    width: 100%;
    padding-top: 100%;
    border-radius: 5%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: filter 0.3s ease;
}

.image-square-uslugi img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-square-uslugi:hover {
    filter: brightness(1.2);
}

.image-card-uslugi {
    text-align: center;
    margin-bottom: 20px;
}

.img-femida {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
}

/* ===== СОЦИАЛЬНЫЕ ИКОНКИ ===== */
.social-icon {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon a {
    display: inline-flex;
    width: 30px;
    height: 30px;
    background-color: #000000;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.social-icon img {
    width: 30px;
    height: 30px;
}

/* ===== ОТЗЫВЫ ===== */
.testimonial {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.testimonial-author {
    font-weight: bold;
    font-style: italic;
}

.testimonial-text {
    margin-top: 10px;
}

.review {
    background: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    color: #333;
}

.review-author {
    margin-top: 10px;
    font-weight: bold;
    color: #555;
}

.review-card {
    background: #f7f7f7;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    max-width: 360px;
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ===== ВИДЕО ===== */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: none;
}

.video-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.video-gallery iframe {
    width: 100%;
    max-width: 450px;
    height: 260px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.video-card {
    max-width: 480px;
    flex: 1 1 300px;
    background-color: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-6px);
}

/* ===== СЕРВИСНЫЕ БЛОКИ ===== */
.service-card {
    transition: transform 0.2s;
    margin-bottom: 1.5rem;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-item {
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* ===== ЦЕНЫ ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.pricing-card {
    background: #f9f9f9;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: 0.3s ease;
}

.pricing-card.best {
    background: #e8f7ff;
    border: 2px solid #00aaff;
}

.pricing-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.pricing-price {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 8px;
}

.price-badge {
    font-size: 1rem;
    background-color: #4a90e2 !important;
}

/* ===== ПОРТФОЛИО ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.portfolio-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
}

.portfolio-caption {
    padding: 15px;
    font-size: 16px;
    text-align: center;
    color: #333;
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal-header {
    background-color: #e9fbfe;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.modal-title {
    font-family: 'Arial', sans-serif;
    font-size: 24px;
    color: #333;
    margin: 0;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    opacity: 0.5;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    opacity: 0.8;
}

/* ===== РЕДАКТОР КОДА ===== */
.CodeMirror {
    height: 500px;
}

/* ===== АЛЕРТЫ ===== */
.alert-pink {
    background-color: pink;
    color: black;
}

/* ===== ГЛАВНАЯ СТРАНИЦА - БЛОКИ ===== */
.container-index {
    display: flex;
    justify-content: center;
    align-items: center;
}

.index-block {
    display: flex;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.index-block-sec {
    display: flex;
    width: 100%;
    background-color: #f5f5f5;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.index-sm-block {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    display: block;
}

.index-sm-downblock {
    border-radius: 0 0 15px 15px;
}

.index-right-block {
    width: 50%;
}

.index-right-block img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.ico-index {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    padding: 0;
    margin: 10px;
    background-color: #e5fcff;
    overflow: hidden;
}

.ico-index img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ico-index .center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.textindex1 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 18px;
    text-align: left;
}

.reklama {
    background-color: #e5fcff;
}

.reklama_button {
    background-color: #B1E4E9;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (min-width: 768px) and (max-width: 1024px) {
    .btn-3d-1 {
        font-size: 14px;
        background-color: #B1E4E9;
    }
}

@media (max-width: 600px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 450px) {
    .btn-3d-1 {
        font-size: 12px;
        background-color: #B1E4E9;
    }
}

@media (max-width: 400px) {
    .parent * {
        font-size: inherit !important;
        color: inherit !important;
    }

    .parent {
        font-size: 16px;
        font-weight: normal;
        color: #000;
    }
}

/* ==========================================================================
   КОНЕЦ КАСТОМНЫХ СТИЛЕЙ
   ========================================================================== */

