/* @import url('https://fonts.googleapis.com/css2?family=M+PLUS+1p&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=LINE+Seed+JP&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Days+One&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Marmelad&display=swap');

:root {
    --bio-cream: #f2ebe6;
    --bio-green: #3f7d58;
    --bio-green-soft: #6aa67a;
    --bio-dark: #1f2a24;
    --bio-white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bio-cream);
    color: var(--bio-dark);
}

.bg-cream {
    background: var(--bio-cream);
    color: var(--bio-dark);
}

.bg-dark {
    background: var(--bio-dark) !important;
    color: var(--bio-cream);
}

.bg-green {
    background: var(--bio-green);
    color: var(--bio-white);
}

.bg-green-light {
    background: var(--bio-green-soft);
    color: var(--bio-white);
}

.text-green {
    color: var(--bio-green);
}

/* 
.m-plus-regular {
    font-family: "M PLUS 1p", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.m-plus-bold {
    font-family: "M PLUS 1p", sans-serif;
    font-weight: 700;
    font-style: bold;
}

.line-seed-regular {
    font-family: "LINE Seed JP", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.days-one-regular {
    font-family: "Days One", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.fira-code-semibold {
    font-family: "Fira Code", monospace;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: bold;
} */

.marmelad-regular {
    font-family: "Marmelad", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.h-1 {
    font-size: 65px;
    line-height: 60px;
}

.h-3 {
    font-size: 33px;
}

p.lead {
    border: 2px solid var(--bio-green-soft) !important;
    border-radius: 20px !important;
    padding: 10px 17px;
}

.card.card-transparent {
    background: transparent;
    border: 2px solid var(--bio-dark);
}

.btn-green {
    background: var(--bio-green);
    color: white;
}

.btn-green:hover {
    background: var(--bio-green-soft);
}

.btn-cream {
    background: var(--bio-cream);
    color: var(--bio-dark);
}

.btn-cream:hover {
    background: var(--bio-white);
    color: var(--bio-dark);
    opacity: 0.7;
}

.btn-xl {
    padding: 18px !important;
}

.telegram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.telegram-btn i {
    font-size: 1.75rem;
    line-height: 1;
}

.telegram-btn span {
    transform: translateY(-2px);
}

/* рваный край */

.paper-top {
    position: relative;
}

.paper-top::before {
    content: "";
    position: absolute;

    top: -1px;
    left: 0;
    margin-top: -25px;

    width: 100%;
    height: 60px;

    background-image: url("krai_bumaga.png");
    background-repeat: repeat-x;
    background-size: auto 100%;
}

.paper-section {
    position: relative;
    background: #f6f4ee;
}

.paper-section::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    margin-bottom: -15px;

    width: 100%;
    height: 60px;

    background-image: url("krai_bumaga.png");
    background-repeat: repeat-x;
    background-size: auto 100%;
}

.paper-card {
    background-image: url("paper-note3.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    min-height: 450px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    position: relative;
}

.paper-card p {
    font-size: 18px;
    width: 270px;
    color: var(--bio-dark);
}

.paper-card-2 {
    background-image: url("paper-note4.png");
}

.paper-card-number {
    position: absolute;
    top: -12px;
    left: -33px;

    width: 140px;
    height: 120px;

    background-image: url("klever.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;
    font-weight: 600;
    color: var(--bio-dark);

    transform-origin: center;
    animation: clover-sway 4s ease-in-out infinite;
    animation-play-state: paused;
}

.paper-card:hover .paper-card-number {
    animation-play-state: running;
}

@keyframes clover-sway {
    0% {
        transform: rotate(-6deg) scale(1);
    }

    50% {
        transform: rotate(6deg) scale(1.03);
    }

    100% {
        transform: rotate(-6deg) scale(1);
    }
}


.marka-card {
    background-image: url("marka.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    min-height: 400px;
    text-align: center;
    transition: all 0.3s ease;

    position: relative;
}

.marka-card:hover {
    transform: scale(1.05);
}

.marka-card p {
    width: 300px;
}

.marka-card-arrow {
    position: absolute;
    top: 25px;
    left: -50px;
}

.marka-card-arrow2 {
    position: absolute;
    top: -10px;
    right: -40px;
}

.icon-list {
    list-style: none;
    padding-left: 0;
}

.icon-list li {
    position: relative;
    padding-left: 28px;
}

.icon-list li::before {
    content: "\f14a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--bio-green);
}

.chup-list li::before {
    content: "\f004";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--bio-green-soft);
}

.leaf-list li::before {
    content: "\f299";
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--bio-green);
}

.risunok-1 {
    height: 190px;
    left: -10px;
    top: -30px;
    pointer-events: none;

    transform-origin: center bottom;
    animation: sway 5s ease-in-out infinite;
}

.risunok-2 {
    width: 130px;
    right: 40px;
    bottom: -30px;
    pointer-events: none;

    animation: spin-slow 18s linear infinite;
    animation-delay: .3s;
}

.risunok-1,
.risunok-2 {
    animation-play-state: paused;
}

.row:hover .col-lg-5 .risunok-1,
.row:hover .col-lg-5 .risunok-2 {
    animation-play-state: running;
}

@keyframes sway {
    0% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(4deg);
    }

    100% {
        transform: rotate(-4deg);
    }
}

@keyframes spin-slow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-720deg);
    }
}

.accordion {
    overflow: hidden;
    border-radius: 10px;
    border-radius: 0 !important;
}

.accordion-body {
    border: none;
    border-radius: 0 !important;
}

.accordion-item {
    border-radius: 0 !important;
    border: none;
    border-top: 2px solid var(--bio-green) !important;
}

.accordion-button {
    border-radius: 0 !important;
    border-top: 2px solid var(--bio-green);
    border-bottom: 2px solid var(--bio-green);
    border: none;
    background: transparent;
    box-shadow: none;
}

.accordion-button:hover {
    color: var(--bio-green);
}

.accordion-button:not(.collapsed) {
    color: var(--bio-green);
    background: transparent;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-button:focus-visible {
    outline: 2px solid var(--bio-green-soft);
    outline-offset: -2px;
}

.accordion-item:last-child {
    border-bottom: 2px solid var(--bio-green);
}

.lessons-section {
    position: relative;
}

.lesson-decor {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
}

.decor-left {
    left: -45px;
    top: 9%;
    opacity: 85%;
    transform: translateY(-50%);
    width: 335px;
}

.decor-right {
    right: -45px;
    top: 9%;
    opacity: 85%;
    transform: translateY(-50%) rotate(-9deg);
    width: 320px;
}

.lessons-section .container-md,
.lessons-section .container {
    position: relative;
    z-index: 2;
}

/* галерея скриншотов */
.swiper {
  width: 100%;
  height: 400px;
}

.swiper-slide img {
  max-height: 500px;
  width: auto;
  object-fit: cover;
}

.gallerySwiper .carousel-img  {
    height: 100%;
    width: auto;
    margin: auto;
    display: block;
    object-fit: contain;

    cursor: zoom-in;
}

#galleryModal .modal-content {
    background: #fff;
    border: none;
}
#galleryModal .modal-body {
    padding: 10px;
}
.modalSwiper {
    height: 100%;
}
.modalSwiper .swiper-wrapper {
    align-items: center;
}
.modalSwiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}
.modalSwiper img {
    max-width: 95vw;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;
}
.modalSwiper .swiper-slide {
    width: auto;
}
.modalSwiper .swiper-button-next,
.modalSwiper .swiper-button-prev {
    color: #000;
}

.swiper {
    --swiper-navigation-color: var(--bio-green);
    --swiper-pagination-color: var(--bio-green);
}

/* видео галерея в фрагменты занятий */

.video-thumb {
    position: relative;
    cursor: pointer;
    aspect-ratio: 16 / 7;
    overflow: hidden;
}

.video-thumb img {
    border-radius: 10px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    font-size: 50px;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-card {
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    /* Для поддержки Safari */
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#videoCarousel .carousel-control-prev-icon,
#videoCarousel .carousel-control-next-icon {
    filter: invert(46%) sepia(63%) saturate(459%) hue-rotate(70deg);

    width: 3rem;
    height: 3rem;
}

#videoCarousel {
    --bs-carousel-indicator-active-bg: var(--bio-green);
}

#videoCarousel .carousel-indicators button {
    background-color: var(--bio-green-soft);
}

@media (max-width: 1100px) {
    .h-1 {
        font-size: 40px;
        line-height: normal;
    }

    .h-3 {
        font-size: 24px;
    }

    .decor-left {
        left: -35px;
        top: 7%;
        width: 222px;
    }

    .decor-right {
        right: -35px;
        top:5%;
        width: 222px;
    }
}

@media (max-width: 768px) {
    p.lead {
        border: 1px solid var(--bio-green-soft) !important;
        border-radius: 15px !important;
        padding: 7px 14px;
        font-size: 18px;
    }

    .btn-xl {
        padding: 12px !important;
    }

    .paper-card {
        min-height: 450px;
    }

    .paper-card p {
        font-size: 16px;
    }

    .paper-card-number {
        left: 0;
    }

    .play-btn {
        font-size: 25px;
        width: 50px;
        height: 50px;
    }

    .marka-card-arrow {
        top: 40px;
        left: 35px;
    }

    .marka-card-arrow2 {
        top: -10px;
        right: 35px;
    }
}

@media (max-width: 576px) {
    .risunok-1 {
        height: 160px;
        left: 3px;
        top: -30px;
    }

    .risunok-2 {
        width: 120px;
        right: 15px;
        bottom: -30px;
    }

    .marka-card-arrow {
        top: 40px;
        left: -30px;
    }

    .marka-card-arrow2 {
        top: -10px;
        right: 35px;
    }

     .decor-left {
        display: none;
    }

    .decor-right {
       display: none;
    }

    .telegram-btn span {
        transform: translateY(-1px);
    }
}