/*@import "theme-pink.css";*/
@import "theme-blue.css";
body{
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-variation-settings:
            "wdth" 100;
    color: var(--font-color);
}
.msg_box{
    padding: 15px;
    border-radius: 5px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    width: 600px;
}
.msg_box_text{
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}
.msg_box_description{
    text-align: center;
}
.main-container, .inner-container{
    background: var(--gradient);
}
.lang-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(0,0,0,0.2);
}

/* Кнопка выбора языка */
.lang-btn {
    padding: 6px 12px;
    border-radius: 6px;
}

/* Dropdown стиль */
.dropdown-menu {
    min-width: 120px;
    padding: 5px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dropdown-item {
    font-size: 14px;
    padding: 6px 12px;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}
/* Увеличиваем высоту всей navbar */
.navbar {
    z-index: 100;
    background: var(--light-color);
    padding-top: 1.2rem !important;
    padding-bottom: 1.2rem;
    backdrop-filter: blur(10px);
}
.nav-link{
    font-weight: bold;
    font-size: 1.1rem;
}
.logo{
    width: 170px;
}
.slogan_selected{
    color: var(--main-color);
}
.button_f{
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 25px;
    text-decoration: none;
    color: var(--button-color);
    transition: 0.5s;
    display: block;
}
.button-outline{
    background: var(--light-color);
    color: var(--main-color);
}
.button-full:hover{
    color: var(--button-color);
}
.button-outline:hover{
    color: var(--main-color);
}
.zoom-in:hover{
    transform: scale(1.1);
}
.button-full{
    background: var(--main-color);
    box-shadow: var(--box-shadow);
}
.card-img-top{
    mask-image: radial-gradient(120% 90% at 50% 10%, rgb(0, 0, 0) 60%, rgba(0, 0, 0, 0));
}
.footer-btn{
    border-radius: 50%;
    font-size: 1.5rem;
    padding: 1rem 1rem;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.lang-btn{
    background: none;
    border: none;
}
.buttons-cta{
    display: flex;
}
.card{
    border-radius: 35px;
}
.card-img-top{
    border-top-left-radius: 35px;
    border-top-right-radius: 35px;
}
/* ====== CSS ====== */
.cinemagraph{
    position: relative;
    display: inline-block;
    line-height: 0;
    cursor: pointer;
    outline: none;
}
.cinemagraph:focus-visible { box-shadow: 0 0 0 3px rgba(0,120,255,.35); border-radius: 8px; }

.cinemagraph .cg-still,
.cinemagraph .cg-video{
    display: block;
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.cinemagraph .cg-video{
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .2s ease;
}

.cinemagraph.is-animating .cg-video{ opacity: 1; }
.cinemagraph.is-animating .cg-still{ opacity: 0; transition: opacity .2s ease; }

.cinemagraph .cg-cta{
    position: absolute;
    bottom: .5rem; right: .5rem;
    padding: .25rem .5rem;
    border-radius: .5rem;
    border: none;
    background: rgba(0,0,0,.35);
    color: #fff;
    font: 600 12px/1 system-ui, sans-serif;
    pointer-events: none;
}

.card-img-container {
    height: 200px;
    overflow: hidden;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 35px;
    border-top-right-radius: 35px;
}
.card{
    box-shadow: var(--box-shadow);
    border:none;
}
.card-title{
    font-size: 2rem;
}
/* Карточка должна быть контекстом для абсолютного позиционирования */
.card {
    position: relative;
    overflow: hidden; /* чтобы оверлей не выходил за границы */
    box-shadow: 0 0 15px rgba(0,0,0,.15);
    transition: box-shadow .25s ease, transform .25s ease;
    border: 0;
}
.card:hover { box-shadow: 0 0 24px rgba(0,0,0,.25); transform: translateY(-2px); }

/* Единая зона под изображение */
.card-img-container{
    height: 220px; /* при желании поменяй */
    overflow: hidden;
}
.card-img-container img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Оверлей поверх карточки */
.card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1rem;
    color: #fff;

    /* фон: мягкое свечение из центра + затемнение */
    background:
            radial-gradient(circle at 50% 25%, rgba(13,110,253,.55) 0%, rgba(13,110,253,.25) 40%, rgba(0,0,0,.65) 80%),
            rgba(0,0,0,.45);

    opacity: 0;
    transform: scale(.98);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, backdrop-filter .25s ease;
    backdrop-filter: blur(2px); /* можно убрать, если не нужно */
}

/* когда открыто */
.card.is-open .card-overlay {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* скролл, если текст длинный */
.card-overlay__content {
    overflow: auto;
    /* высота минус «шапка» с заголовком и кнопкой */
    max-height: calc(100% - 2rem);
    padding-right: .25rem; /* небольшой внутренний отступ для скролла */
}

/* Кнопка закрытия в правом верхнем углу */
.card-overlay__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: 0;
    background: rgba(255,255,255,.15);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.card-overlay__close:hover { background: rgba(255,255,255,.25); transform: scale(1.05); }

/* Для красоты заголовка внутри оверлея */
.card-overlay h5 {
    margin: 0 2.25rem .5rem 0; /* отступ справа под кнопку закрытия */
}

/* Контейнер (можно навесить на body или .page-frame) */
.page-frame {
    position: relative;
}

.page-frame::before,
.page-frame::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: clamp(40px, 6vw, 90px);  /* адаптивная ширина "полей" */
    pointer-events: none;   /* не мешает кликам по контенту */
    z-index: 10;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: contain; /* или 'auto 95%' если орнамент вертикальный */
    opacity: .25;            /* легкая прозрачность, чтобы не шумело */
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.15));
}

.page-frame::before {
    left: 0;
    background-image: url('data:image/svg+xml;utf8,\
  <svg xmlns="http://www.w3.org/2000/svg" viewBox=\'0 0 200 800\' fill=\'none\'>\
    <path d=\'M60 20Q10 90 80 160T60 300Q20 360 90 420T70 560Q40 640 120 720\' \
          stroke=\'%238A6FB1\' stroke-width=\'6\' stroke-linecap=\'round\'/>\
    <path d=\'M40 120q30 30 0 60m20 140q40 30 0 60m10 140q30 30 0 60\' \
          stroke=\'%23C8B6E2\' stroke-width=\'3\' stroke-linecap=\'round\'/>\
  </svg>');
}

.page-frame::after {
    right: 0;
    background-image: url('data:image/svg+xml;utf8,\
  <svg xmlns="http://www.w3.org/2000/svg" viewBox=\'0 0 200 800\' fill=\'none\'>\
    <path d=\'M140 20Q190 90 120 160T140 300Q180 360 110 420T130 560Q160 640 80 720\' \
          stroke=\'%238A6FB1\' stroke-width=\'6\' stroke-linecap=\'round\'/>\
    <path d=\'M160 120q-30 30 0 60m-20 140q-40 30 0 60m-10 140q-30 30 0 60\' \
          stroke=\'%23C8B6E2\' stroke-width=\'3\' stroke-linecap=\'round\'/>\
  </svg>');
}

@media (max-width: 576px) {
    .page-frame::before,
    .page-frame::after {
        display: none;
    }
}
.content-section{
    padding: 2rem;
    background: #fff;
    border-radius: 35px;
    box-shadow: var(--block-shadow);
}
.contact_link{
    text-decoration: none;
    color: #555;
}

@media (prefers-reduced-motion: reduce){
    .cinemagraph .cg-video{ transition: none; }
    .cinemagraph .cg-still{ transition: none; }
}

@media screen and (max-width: 450px){
    .msg_box{
        width: 350px;
    }
    .buttons-cta{
        display: block;
    }
    .cta-btn-row{
        margin-bottom: 1rem;
    }
    .cta-btn{
        text-align: center;
    }
    .button_f{
        font-size: 1rem;
    }
    .service-row{
        width: 360px;
    }
}