/* CSS kod pishite v etom faile, chotobi pri ustanovke obnovlenii ne bilo problem  */
/* --------------------------------------- */
/* Here you can put custom css rules for your site */

/* Шапка */

.whatsapp a {
    text-decoration: none;
}

.review-link {
    text-decoration: none;
    margin-top: 40px;
    display: block;
    font-size: 12px;
}

.review-link:hover {
    text-decoration: none;
    color: #27509e;
}

.head-txt p {
    color: #27509e;
    line-height: 20px;
    text-align: center;
    font-weight: bold;
    padding-top: 10px;
}

/* Размеры шрифтов для сайта */
.mega-menu {
    font-size: 16px;
}

.top-callback .callback {
    font-size: 14px;
}

/* ///Размеры шрифтов для сайта */

p {
    line-height: 30px;
}

ul {
    font-size: 16px;
}

.my-list-style {
    list-style: none;
}

.my-list-style li:before {
    content: "*";
    color: #009ACE; /* 801 C */
    padding-right: 5px;
}

.email, .phone, .skype {
    font-size: 13px !important;
}

/*HEADER*/

header .logo {
    /*height: 40px;*/
}

header.menu-type-2 .mega-menu table a {
    padding: 14px 0px;
    font-size: 15px;
}

header.menu-type-2 .mega-menu table td .wrap > a, header.menu-type-2 .mega-menu table .dropdown-menu a {
    padding-left: 10px;
    padding-right: 10px;
}

header.menu-type-2 .mega-menu table .dropdown-menu {
    min-width: 300px;
}

header .top-description {
    line-height: 25px;
    text-align: center;
    color: #009ACE; /* 801 C */
}

.detail.services {
    color: #000;
    font-size: 16px;
}

.detail.services ul {
    list-style-type: none;
}

.table.table-bordered caption {
    margin-bottom: 10px;
}

.instructor-feedback {
    font-size: 16px !important;
    line-height: 26px !important;
    font-weight: 400 !important;
}

.menu div ul li a {
    text-decoration: none;
    font-size: 15px;
}

header.menu-type-2 .mega-menu table td .wrap > a, header.menu-type-2 .mega-menu table .dropdown-menu a {
    /*text-transform: uppercase;
    font-weight: bold;*/
}

/* БАНЕРЫ НА ГЛАВНОЙ */

.banner {
    height: 300px;
}

.title-wrap {
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
    padding: 20px;
}

.small-banner .banner {
    padding: 0;
}

.small-banner .banner a {
    border-bottom: none;
}

/* / БАНЕРЫ НА ГЛАВНОЙ */

.cvs_h1 {
    text-align: center;
    margin: 30px 0;
    letter-spacing: normal;
}

/* ПРЕИМУЩЕСТВА */

/* ПРЕИМУЩЕСТВА END */

.discount-block {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 50%, #e63946 100%);
    padding: 24px 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0;
    box-shadow: 0 4px 15px rgba(238, 90, 111, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.discount-block .icon {
    font-size: 28px;
    margin-right: 12px;
    vertical-align: middle;
    animation: pulse 2s infinite;
    display: inline-block;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.discount-block::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.advantages {
    padding-bottom: 40px;
}

.advantages h2 {
    text-align: center;
    padding-bottom: 15px;
}

.advantage {
    font-size: 18px;
    font-weight: bold;
    color: #27509e;
    text-align: center;
    line-height: 28px;
}

.advantage-icon {
    margin: 0 auto;
    padding-bottom: 15px;
}

/* Блок с инструктором */

.promo-block {
    font-size: 1.8rem !important;
    text-align: center;
    color: #fff;
    line-height: 1.6;
    margin: 0;
    padding: 8px 0;
}

.promo-block .icon {
    font-size: 1.2em;
    margin-right: 8px;
    vertical-align: middle;
    opacity: 0.9;
}

.promo-block a {
    color: #ffd93d;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 217, 61, 0.4);
    transition: all 0.3s ease;
    padding-bottom: 2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.promo-block a .icon {
    margin-right: 0;
    font-size: 1em;
}

.promo-block a:hover {
    color: #ffed4e;
    border-bottom-color: #ffed4e;
    text-shadow: 0 0 8px rgba(255, 217, 61, 0.5);
}

.promo-block a:hover .icon {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px) rotate(-5deg); }
    75% { transform: translateX(3px) rotate(5deg); }
}

.btn-primary {
    /*background: #fadd13;*/
    /*border: 1px solid #fadd13;*/
    box-shadow: 0 2px 0 0 #006699;
}

.btn-primary:hover {
    transition: .5s;
    color: #fff !important;
}

.top-slider.flexslider .slides a.btn {
    color: #27509e;
}

.styled-block {
    color: #fff;
    background: linear-gradient(135deg, rgba(37, 80, 158, 0.95) 0%, rgba(30, 64, 130, 0.95) 100%), url(/upload/phuket-bg1.jpg);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    position: relative;
    bottom: 5px;
    border-radius: 12px;
    padding: 32px 24px;
    box-shadow: 0 8px 24px rgba(37, 80, 158, 0.25);
    margin-top: 8px;
}

.styled-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 80, 158, 0.85) 0%, rgba(30, 64, 130, 0.9) 100%);
    border-radius: 12px;
    z-index: 0;
}

.styled-block > .row {
    position: relative;
    z-index: 1;
}

.styled-block h3 {
    font-size: 26px;
}

.styled-block .right {
    font-size: 16px;
}

.styled-block .btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    padding: 16px 32px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(238, 90, 111, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.styled-block .btn .icon {
    font-size: 18px;
    margin-right: 0;
}

.styled-block .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.styled-block .btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #e63946 100%);
    box-shadow: 0 6px 20px rgba(238, 90, 111, 0.6);
    transform: translateY(-2px);
}

.styled-block .btn:hover::before {
    left: 100%;
}

.styled-block .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(238, 90, 111, 0.4);
}

.instructor-feedback {
    color: #fff;
    border-radius: 5px;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
}

/*/ Блок с инструктором */

/* Стили для статей теперь находятся в компоненте news.detail/news/style.css */
/* Здесь оставляем только общие стили, не связанные с компонентом */

/* Стили для blockquote в статьях (общие, если нужны вне компонента) */
.detail blockquote,
article blockquote {
    position: relative !important;
    margin: 40px 0 !important;
    padding: 30px 40px 30px 100px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-left: 4px solid #27509e !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    font-style: normal !important;
    color: #2c3e50 !important;
    line-height: 1.8 !important;
    overflow: hidden;
}

.detail blockquote::before,
article blockquote::before {
    content: '"' !important;
    position: absolute !important;
    top: 20px !important;
    left: 30px !important;
    font-family: Georgia, serif !important;
    font-size: 80px !important;
    line-height: 1 !important;
    color: #27509e !important;
    opacity: 0.2 !important;
    font-weight: bold !important;
}

.detail blockquote p,
article blockquote p {
    margin: 0 0 15px 0;
    font-size: 18px;
    line-height: 1.8;
    color: #2c3e50;
    font-weight: 400;
}

.detail blockquote p:last-child,
article blockquote p:last-child {
    margin-bottom: 0;
}

.detail blockquote cite,
article blockquote cite {
    display: block;
    margin-top: 20px;
    font-size: 14px;
    color: #6c757d;
    font-style: normal;
    font-weight: 500;
    padding-top: 15px;
    border-top: 1px solid rgba(39, 80, 158, 0.1);
}

.detail blockquote cite::before,
article blockquote cite::before {
    content: '— ';
    color: #27509e;
    font-weight: 600;
}

/* Вариант для красных цитат */
.detail blockquote[style*="e63946"],
article blockquote[style*="e63946"] {
    border-left-color: #e63946;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
}

.detail blockquote[style*="e63946"]::before,
article blockquote[style*="e63946"]::before {
    color: #e63946;
}

.detail blockquote[style*="e63946"] cite::before,
article blockquote[style*="e63946"] cite::before {
    color: #e63946;
}

/* Адаптивность */
@media (max-width: 767px) {
    .detail blockquote,
    article blockquote {
        padding: 25px 25px 25px 70px;
        margin: 30px 0;
    }
    
    .detail blockquote::before,
    article blockquote::before {
        font-size: 60px;
        left: 20px;
        top: 15px;
    }
    
    .detail blockquote p,
    article blockquote p {
        font-size: 16px;
    }
}

/* Стили для компонента news.detail перенесены в /components/bitrix/news.detail/news/style.css */
/* Здесь оставляем только общие стили, не связанные с компонентом */background: linear-gradient(135deg, #ffd93d 0%, #ffed4e 100%);
    color: #27509e;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(255, 217, 61, 0.4);
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

.article-cta-block .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.article-cta-block .cta-button:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #fff9a5 100%);
    box-shadow: 0 8px 30px rgba(255, 217, 61, 0.6);
    transform: translateY(-3px);
    color: #1e4082;
}

.article-cta-block .cta-button:hover::before {
    left: 100%;
}

.article-cta-block .cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 217, 61, 0.5);
}

.article-cta-block .cta-button .icon {
    font-size: 20px;
    margin-right: 0;
}

/* Стили для информационных блоков с жестами в статьях */
.gesture-info-block {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid #27509e;
    transition: all 0.3s ease;
}

.gesture-info-block:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gesture-info-block h3 {
    margin-top: 0;
    color: #27509e;
    font-size: 20px;
    font-weight: 600;
}

.gesture-info-block p {
    margin-bottom: 0;
    line-height: 1.7;
    color: #2c3e50;
}

.gesture-info-block.gesture-emergency {
    background: #fff5f5;
    border-left-color: #e63946;
}

.gesture-info-block.gesture-emergency h3 {
    color: #e63946;
}

/* Стили для компонента news.detail (FAQ, CTA, информационные блоки) */
/* перенесены в /components/bitrix/news.detail/news/style.css */
/* Все стили для статей теперь находятся в компоненте для универсального применения */

/* Страница Видео-отзывы */
.review {
    padding-top: 5px;
}

/*/ Страница Видео-отзывы */

/* Блок отзывы на главной */

.reviews-block {
    padding-top: 30px;
}

#CDSWIDSSP {
    width: auto !important;
}

/* Блок отзывы на главной END */

/* Страница Цены */

.cancel_reserv {
    background: #fadd13;
    padding: 15px;
}

/* Конец Страница Цены */

/* FOOTER */

footer {
    color: #fff !important;
    padding-bottom: 50px;
}

footer, footer a, footer i {
    color: #27509e !important;
    font-weight: bold;
    /*background-color: #FADD11;*/
}

footer a:hover {
    transition: .5s;
    color: #26295a !important;
}

/* FOOTER END */


/* МЕДИА СТИЛИ */

@media (max-width: 991px) {
    header .logo img {
        /*max-height: 110px;*/
        /*width: 160px;*/
    }

    #pagetitle {
        font-size: 30px;
        padding-top: 20px;
    }
}

/* Кастомные SVG иконки для дайвинга */
.diving-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    fill: currentColor;
}

.diving-icon-lg {
    width: 1.5em;
    height: 1.5em;
}

.diving-icon-xl {
    width: 2em;
    height: 2em;
}

/* Анимация для иконок */
.diving-icon-animated {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 767px) {
    .top-row .info-text .email, .top-row .info-text .phone, .top-row .info-text .skype {
        margin-left: 9px;
    }
}

table {
    width: 100%; /* Задает ширину таблицы */
    table-layout: fixed; /* Фиксированная ширина ячеек */
}

td {
    word-wrap: break-word; /* Перенос текста по словам */
    white-space: normal; /* Позволяет тексту переноситься на новую строку */
    word-break: break-word; /* Если слово слишком длинное, то оно будет разбиваться */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.gallery-item {
    display: block;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3; /* задаёт соотношение сторон */
    background: #f0f0f0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .gallery-item {
        width: calc(50% - 10px);
    }
}

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

/* Покажем иконки социйльных сетей в моб версии */
@media (max-width: 767px) {
    .social-icons {
        display: block;
    }
}

@media (max-width: 991px) {
    .social-icons {
        display: block;
    }
}

.top-contacts-container {
    display: flex;
    flex-direction: row;
}

@media (max-width: 991px) {
    .top-contacts-container {
        display: flex;
        flex-direction: column;
    }
}

/* Адаптивные стили для промо-блока */
@media (max-width: 767px) {
    .discount-block {
        font-size: 18px;
        padding: 20px 16px;
        border-radius: 10px;
    }
    
    .promo-block {
        font-size: 1.4rem !important;
        padding: 6px 0;
    }
    
    .styled-block {
        padding: 24px 16px;
        border-radius: 10px;
    }
    
    .styled-block .btn {
        padding: 14px 24px;
        font-size: 14px;
        width: 100%;
        margin-top: 12px;
    }
    
    .styled-block .col-md-4 {
        text-align: center !important;
    }
}