/*@import "bootstrap/bootstrap.css";*/
@import "bootstrap/bootstrap.min.css";

/* Основное начертание */
@font-face {
    font-family: 'Montserrat';
    src: url('../assets/fonts/Montserrat-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../assets/fonts/Montserrat-Italic-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: italic;
}

section {
    /* Значение должно быть = Высота вашего меню + желаемый отступ */
    scroll-margin-top: 10rem;
}

@media (max-width: 768px) {
    footer {
        scroll-margin-bottom: 200vh;
    }
}
body {
    overflow-x: hidden; /* Скрываем вышедший контент */
    /*font-size: clamp(1rem, 1.5vw, 1.5rem);*/
    /* База 1rem + немного роста от ширины экрана */
    font-size: clamp(1rem, 0.2rem + 1vw, 1.5rem);
}

html {
    scroll-behavior: smooth;
    background: rgb(0, 129, 124);

}
:root {
    --link-hover-color: #c3ddda;
    --table-color-start: #2eaba9; /* Темно-коричневый для стола */
    --table-color-end: #1fcdca; /* Светло-коричневый для градиента стола */
    --wall-color-center: #8efada; /* Светлый центр стены */
    --wall-color-edge: #2eaba9; /* Темные края стены */
    --table-color-start-right: #00b9b2; /* или другой цвет */
    --table-color-end-right: #00b9b2; /* или другой цвет */
    --wall-color-center-right: #00b9b2; /* или другой цвет */
    --wall-color-edge-right: #00f3e7; /* или другой цвет */

    --table-height: 25%;
    --baseboard-height: 2%;
}

/* Стили для тела документа */
body {
    font-family: 'Montserrat', sans-serif;
    /*font-size: 18px;*/
}

.bg-teal {
    background: rgb(0, 129, 124);
}

.navbar-dark .nav-link {
    color: white;
}

.navbar-dark .nav-link:hover {
    color: var(--link-hover-color);
    /*color: #E0F7F5;*/
}

.navbar-dark .navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Легкая подсветка */
    transition: background-color 0.3s ease; /* Плавный переход */
}

.navbar-dark .navbar-toggler:focus {
    outline: none; /* Убираем дефолтный outline */
    box-shadow: none; /* Убираем тень при фокусе */
}

/*.navbar > .container{*/
/*    justify-content: flex-start; !important;*/
/*}*/

.btn-outline-light {
    /*border-color: rgba(255, 255, 255, 0.5); !* Легкий бордер *!*/
    border-radius: 5px;
    border: 2px solid white;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--link-hover-color);
    border-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.amfy-logo {
    max-height: 62px;
    min-height: 30px;
}

/* Стили для секции hero с градиентами */

#hero {
    position: relative;
    /*min-height: 100vh;*/
    overflow: hidden;
    background: linear-gradient(to top, var(--table-color-start) 0%, var(--table-color-end) var(--table-height), transparent var(--table-height)),
    radial-gradient(circle at 30% 20%, var(--wall-color-center) 0%, var(--wall-color-edge) 70%);
    background-size: 50% 100%; /* Левая половина */
    background-position: left;
    background-repeat: no-repeat;
}

.phone-img {
    width: clamp(10rem, 40vh, 17rem);
    /*filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.2));*/
}
/* Тень стола */
#hero::before {
    content: '';
    position: absolute;
    bottom: var(--table-height);
    left: 0;
    width: 100%;
    /*height: 0.5%;*/
    height: var(--baseboard-height); /* толщина плинтуса / границы */
    background: linear-gradient(to bottom,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(0, 0, 0, 0.15) 35%,
    rgba(0, 0, 0, 0.25) 60%,
    rgba(0, 0, 0, 0.05) 100%);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
    /*z-index: 3;*/
    z-index: 2;
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to top, var(--table-color-start-right) 0%, var(--table-color-end-right) var(--table-height), transparent var(--table-height)),
    linear-gradient(to top, var(--wall-color-center-right) 0%, var(--wall-color-edge-right) 60%);
    /*z-index: 1;*/
}

.hero-wall-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: calc(100% - var(--table-height) - var(--baseboard-height));

    /* ИЗМЕНЕНИЯ ЗДЕСЬ: */
    background-image: url("data:image/svg+xml;utf8,\
            <svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'>\
              <filter id='noiseFilter'>\
                <feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/>\
              </filter>\
              <rect width='100%' height='100%' filter='url(%23noiseFilter)'/>\
            </svg>");
    background-repeat: repeat; /* Замостить текстурой */
    background-size: auto; /* Не растягивать, использовать размер из SVG (200px) */

    background-blend-mode: overlay;
    opacity: 0.45;
    pointer-events: none;
    z-index: 1;
}

.ticked-list {
    list-style: none;
    padding-left: 0;
}

.ticked-list li::before {
    content: "✓";
    margin-right: 0.5rem;

}

.top-4-minus {
    top: -2rem;
}

.floating-card {
    background: rgba(255, 255, 255, 0.25);

    backdrop-filter: blur(3px) brightness(1.3) drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.1));
    -webkit-backdrop-filter: blur(3px); /* для Safari */

    /*box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);*/
    border: 1px solid rgba(255, 255, 255, 0.4);

    display: grid;
    grid-template-rows:auto auto 1fr auto;
    height: 100%;

    /*padding: 20px;*/
}

.group-of-cards .floating-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-item {
    padding-inline: 1rem;
    /*overflow: visible !important;*/
}



.download-logo {
    height: 57px;
}

.mw-fit-content {
    max-width: fit-content;
}

hr {
    /*color: white;*/

    color: rgba(255, 255, 255, 1);
    /*border: white 1px solid;*/
}

.sub-price-list-for-owners {
    /*border-top: rgba(255, 255, 255, 1) 1px solid;*/
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto 1fr;
    gap: 1.25rem;
    row-gap: 0.25rem;
}

br {
    margin-bottom: 0.5rem;
}

.subscription-card {
    border-top: rgba(255, 255, 255, 1) 1px solid;
    display: grid;
    grid-template-rows: auto auto 1fr;
    height: 100%;
}

.carousel-inner .subscription-card {
    border-top: none;

}

.subscription-card h1 {
    letter-spacing: -0.04em;
    font-size: 4rem;
    font-weight: 400;
    line-height: 100%;

}

.group-of-cards {
    width: 90%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.cards-under-footer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    user-select: none;
    /*gap: 2rem;*/
}

#cards-section {
    position: relative;
}

#cards-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(to bottom, transparent, rgb(0, 129, 124));
    pointer-events: none;
}

/*.footer {*/
/*    display: grid;*/
/*    grid-template-columns: repeat(5, 1fr);*/
/*    gap: 1rem;*/

/*    box-shadow: rgba(0, 129, 124, 0.85) 0 -1.5rem 15px 1rem,*/
/*    rgba(0, 129, 124, 0.85) 0 -1.5rem 15px;*/
/*}*/


/* Общие стили для футера */
.footer {
    /* Убираем отсюда grid, так как теперь он только внутри десктопной части */
    box-shadow: rgba(0, 129, 124, 0.85) 0 -1.5rem 15px 1.2rem,
    rgba(0, 129, 124, 0.85) 0 -1.5rem 15px;
}

/* Сетка только для десктопа */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 1rem;
}

/* На планшетах (от 768px до 991px) делаем меньше колонок, чтобы не сжималось */
/*@media (min-width: 768px) and (max-width: 1200px) {*/
/*    .footer-grid {*/
/*        grid-template-columns: repeat(5, 1fr); !* Или 4, в зависимости от контента *!*/
/*        row-gap: 2rem;*/
/*    }*/
/*}*/

/* Стилизация аккордеона (убираем синий фон при клике) */
/*.accordion-button:not(.collapsed) {*/
/*    color: #00817C; !* Ваш фирменный цвет *!*/
/*    background-color: transparent;*/
/*    box-shadow: none;*/
/*}*/
/*.accordion-button:focus {*/
/*    box-shadow: none; !* Убираем обводку фокуса *!*/
/*    border-color: rgba(0,0,0,.125);*/
/*}*/

/* Ссылки в футере */
.footer a {
    transition: color 0.2s;
}

.footer a:hover {
    color: #00817C !important; /* Цвет при наведении */
}


/*.glass-element {*/
/*    width: 100%;*/
/*    !*background: rgba(255, 255, 255, 0.3);*!*/
/*    background: rgba(0, 129, 124, .4);*/

/*    height: 2rem;*/
/*    position: relative;*/
/*    z-index: 2;*/
/*    !*filter: blur(1rem);*!*/
/*    backdrop-filter: blur(3px) brightness(1)*/
/*}*/

@media (max-width: 768px) {
    .group-of-cards {
        grid-template-columns: 1fr;
    }
}

/* =====================
   Guide / Walkthrough Modal
   ===================== */

.guide-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.guide-overlay.guide-open {
    display: flex;
}

.guide-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.guide-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    width: 100%;
    padding: 3rem 4rem 3.5rem;
    box-sizing: border-box;
}

.guide-slides-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    width: 100%;
}

.guide-slide {
    display: none;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.guide-slide.active {
    display: flex;
}

.guide-slide img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 1.25rem;
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.6);
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.guide-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.guide-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.guide-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, opacity 0.15s;
    padding: 0;
}

.guide-prev { left: 1rem; }
.guide-next { right: 1rem; }

.guide-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.guide-nav:disabled {
    opacity: 0.25;
    cursor: default;
}

.guide-counter {
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .guide-nav {
        display: none;
    }

    .guide-inner {
        padding: 3rem 1rem 2.5rem;
    }
}

@media (min-width: 992px) {
    .download-logo {
        /*@media (max-width: 576px){ max-height: 40px};*/
        height: 63px;
    }

    .mw-lg-fit-content {
        max-width: fit-content;
    }
}

@media (max-width: 991px) {
    .download-logo {
        /*@media (max-width: 576px){ max-height: 40px};*/
        height: 57px;
    }
}

@media (min-width: 768px) {

    .mw-md-fit-content {
        max-width: fit-content;
    }
}

/* Coming Soon snackbar */
#coming-soon-snackbar {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1a1a1a;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 9999;
}

#coming-soon-snackbar.snackbar-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


