/**********************************************************************
*
*                стили общие
*
***********************************************************************/
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.content{
    background-color: #fdf8e0;
}
h2 {
    font-size: 2.625em;
    line-height: 2.3rem;
  
}
#title-h2{
    line-height: 0.9em;
    font-size: 5.0rem;
    text-align: center;
}

h3 {
    font-size: 1.575em;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #120f0f;
    background-color: #fdf8e0;
    line-height: 1.1;
    /*запрет на копирование*/
    user-select: none; /* Prevents text selection */
    -webkit-user-select: none; /* For Safari */
    -ms-user-select: none; /* For Internet Explorer/Edge */
}


/**********************************************************************
*
*              Header and Navigation
*
***********************************************************************/
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #120f0f;
    color: #FFF;
}
.logo-wrapper{
    width: 100%;
    display: block;
}
.logo{
    width: 260px;
    float: inline-start;
    margin-right: 30px;
    margin-left: 10px;
}

/******************************
*  logo @media  480px
******************************/
@media (max-width: 480px) {
    .logo {
    width: 230px;
    transition: background-color 0.3s ease;
    }
    .logo-wrapper{
        width: 100%;
        display: block;
        height: 50px;
    }
}

.logo-link {
    display: block; /* Makes the clickable area span the entire image */
    text-decoration: none; /* Removes underline if any text is added in the future */
}

.img-logo {
    width: 100%; /* Makes the image responsive */
    height: auto; /* Maintains aspect ratio */
    display: block; /* Removes extra whitespace around the image */
}

/******************************
*  logo @media  346px
******************************/
@media (max-width: 346px) {
    .logo-wrapper{
        width: 100%;
        display: block;
        height: 50px;
    }
    .logo {
        width: 180px; /* Reduce logo size for smaller screens */
        margin-right: 10px; /* Minimize margins */
        margin-left: 5px; /* Minimize margins */
        float: none; /* Prevent float issues on narrow screens */
        text-align: center; /* Center the logo for better layout */
    }

    .logo-link {
        display: block; /* Keep the clickable area full width */
        padding: 0; /* Remove unnecessary padding */
    }

    .img-logo {
        width: 100%; /* Ensure the image scales with its container */
        height: auto; /* Maintain aspect ratio */
        max-width: 150px; /* Set a maximum width to avoid excessive scaling */
        display: block; /* Ensure proper image layout */
        margin: 0 auto; /* Center the image */
    }
}


/**********************************************************************
*
*                nav menu
*
***********************************************************************/
.nav {
    background-color: #120f0f; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%;  
    z-index: 1000; 
}

.nav-menu {
   display: flex;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* padding: 1rem; */
    height: 60px;
     gap: 1rem; 
    float: left;
}

.nav-menu-account {
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    position: relative;
    display: flex;
    float: right;
    height: 60px;
    margin-right: 15px;
    /*padding: 1rem;*/
}

.nav-menu a, 
.nav-menu-account a {
    color: white;
    padding: 0.5rem; /* Adjusted for uniform scalability */
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-menu-account .cta-primary {
    background-color: #cb0202; /* hsl(329.23deg 47.56% 32.16%) */
}



/******************************
*  nav @media  768px
******************************/
@media (max-width: 768px) {
    .nav-menu {
        flex-wrap: wrap;
        gap: 0.5rem; 
        gap: 20px; 
        font-size: 0.8rem; 
       /* padding: 10px 15px; */
    }
    .nav-menu, .nav-menu-account {
        /*padding: 0.2rem 1rem;*/
        }

    /*.nav-menu-account {
    /*    float: none; /* Remove float for better stacking */
      /*  text-align: center; /* Center align for narrow screens */
       /* margin: 1rem;
    }*/

    .nav-menu-account .cta-primary {
        padding: 0.75rem 1.5rem; 
    }
   
    .nav-menu a {
        font-size: 0.8rem; 
        padding: 5px 8px; 
    }

    .dropdown-content {
        left: 0; 
    }

    .dropdown-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 5px; 
    }

    .dropdown-title {
        font-size: 0.8rem; 
    }

    .dropdown-section a {
        font-size: 0.8rem; 
        padding: 2px 5px; 
    }
}
/******************************
*  nav @media  480px
******************************/
@media (max-width: 480px) {
    .nav-menu {
        align-items: center; 
       /* padding: 0.5rem;*/
        /*width: 100%;*/
    }

    .nav-menu-account {
     /*   margin: 0.5rem; /* Reduce margin for compact layout */
      /*  font-size: 0.8rem;*/
    }
}

.nav-menu-account a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.cta-primary, .email,
.nav-menu-account .cta-primary {
    background-color: #dd0000; /*dd0000  */
    color: white;
    border-radius: 2rem;
    padding: 0.5rem 2.5rem;
    text-align: center;
}

.email{
    background-color: #897d73;
    border-radius: 0.2rem;
    border: none;
    padding: 0.7rem 1.5rem;
}

.cta-primary:hover,
.nav-menu-account .cta-primary:hover {
    background-color: #cb0202;
}

.newsletter .cta-primary{
    text-decoration: none;
}

/******************************
*  nav @media  246px
******************************/
@media (max-width: 246px) {
    .nav {
        width: 100%; /* Makes the nav span the full width of the screen */
    }
    
    .nav-menu {
       display: inline-block;
        align-items: center;
        transition: background-color 0.3s ease, color 0.3s ease;
        float: left;
    }
    
   /* .nav-menu {
        display: flex; /* Use flex layout for better control */
     /*   flex-direction: column; /* Stack menu items vertically */
     /*   justify-content: center; /* Center-align content */
      /*  align-items: center; /* Ensure items are centered */
     /*   gap: 5px; /* Reduce gap between items */
      /*  padding: 5px 0; /* Compact padding */
      /*  position: static; /* Prevent unintended offsets */
    /*}*/

    .nav-menu a {
        font-size: 0.7rem; /* Reduce font size for links */
        padding: 2px 5px; /* Minimized padding */
        text-align: center; /* Center-align text */
    }

    .hamburger {
        display: flex; /* Ensure visibility */
        position: absolute;
        top: 10px; /* Adjust positioning */
        right: 10px; /* Align to the right */
        z-index: 1001; /* Ensure it appears above other elements */
    }

    .account-links {
        position: static; /* Ensure the dropdown menu aligns well */
        width: 100%; /* Match screen width */
    }

    .account-links a {
        font-size: 0.7rem; /* Smaller font for dropdown links */
        padding: 5px; /* Compact padding */
        text-align: left; /* Align text for better readability */
    }

    .cta-primary {
        padding: 5px 10px; /* Compact button padding */
        margin-top: 5px; /* Avoid overlapping */
    }

    .nav-menu, 
    .nav-menu-account {
        padding: 0.1rem 0.5rem; /* Further reduce padding */
        font-size: 0.8rem; /* Reduce font size for better fit */
    }

    .nav-menu-account a {
        font-size: 0.7rem; /* Smaller font size for links */
        padding: 0.3rem 0.7rem; /* Compact padding */
    }

    .cta-primary,
    .nav-menu-account .cta-primary {
        background-color: #dd0000;
        font-size: 0.7rem; /* Reduce font size */
        padding: 0.4rem 1rem; /* Compact padding */
        border-radius: 1.5rem; /* Slightly smaller border radius */
    }

    .cta-primary:hover,
    .nav-menu-account .cta-primary:hover {
        background-color: #cb0202; /* Ensure hover works consistently */
    }

    .email {
        background-color: #897d73;
        font-size: 0.7rem; /* Reduce font size */
        padding: 0.5rem 1rem; /* Compact padding */
        border-radius: 0.15rem; /* Slightly smaller border radius */
    }

    .newsletter .cta-primary {
        font-size: 0.7rem; /* Match smaller sizes for buttons */
        padding: 0.4rem 1rem; /* Compact padding */
    }

    .newsletter .cta-primary:hover {
        text-decoration: underline; /* Add hover effect for small screens */
    }
}


/**********************************************************************
*
*                 Dropdown Menu Styles 
*                 Style for Welcome Message
*
***********************************************************************/

.welcome-message {
    position: relative;
    cursor: pointer;
    display: inline-block;
    font-size: 0.9rem;
    padding: 0.5rem;
}

.dropdown-user {
    position: absolute;
    top: 100%; /* Align dropdown below the welcome message */
    left: 0;
    display: none; /* Hidden by default */
    background-color: #222;
    border-radius: 4px;
    z-index: 1000;
}

.dropdown-user-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-user-menu li {
    padding: 10px 15px;
}

.dropdown-user-menu li a {
    text-decoration: none;
    color: white;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-user-menu li a:hover {
    background-color: #444;
    color: white;
    border-radius: 4px;
}

/* Show Dropdown on Hover */
.welcome-message:hover .dropdown-user {
    display: block;
}


/**********************************************************************
*
*               Hamburger Button
*
***********************************************************************/
.hamburger {
    display: none; /* Hidden by default on larger screens */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    gap: 0.25rem;
}

.hamburger-bar {
    display: block;
    width: 100%;
    height: 0.25rem;
    background-color: white;
    border-radius: 0.125rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Collapsible Menu */
.account-links {
    display: flex;
    gap: 1rem;
}

/******************************
*  account-links @media  768px
*  account-links @media  1024px
******************************/
@media (max-width: 768px), 
       (max-width: 1048px) {
    .nav-menu-account {
        flex-direction: column; /* Stack elements vertically */
        align-items: flex-start;
    }
    .nav-menu a, .nav-menu-account a {
        padding: 0.3rem;
    }

    .hamburger {
        display: flex; /* Show hamburger icon */
    }

    .account-links {
        display: none; /* Initially hidden */
        font-size: 0.8rem;
        flex-direction: column;
        gap: 1rem;
        background-color:#120f0f; /* Match navigation background */
        position: absolute;
        top: 3.5rem; /* Adjust below the hamburger icon */
        right: 0;
        width: 350%; /* Full width for the dropdown */
        padding: 0.5rem;
        border-radius: 0.5rem;
    }

    .account-links a {
        padding: 0.5rem 0.5rem;
        width: 100%;
        color: white;
        font-size: 0.8rem;
    }
    .welcome-message {
        font-size: 0.8rem;
    }
    .account-links .cta-primary {
        text-align: center;
    }
    .nav-menu-account .cta-primary {
        padding: 0.3rem 0.1rem; 
    }
    .hamburger.active + .account-links {
        display: flex; /* Show menu when active */
    }
}

/**********************************************************************
*           General Menu Styles  
*           Style for the dropdown container 
*
***********************************************************************/

/*.nav-menu a:hover {
    background-color: #444;
    border-radius: 4px;
}*/

/* Dropdown Container */
.dropdown {
    display: inline-block;
    font-size: 0.9rem;
    line-height: 32px;
}

.dropdown-content {
    display: none;
    position: absolute;
    /*left: 250px;*/
    background-color: #120f0f; /*#222;*/
    border-radius: 8px;
    /*box-shadow: 0 3px 6px rgb(225 210 173);*/
    padding: 15px;
    color: #FFF;
    z-index: 10;
    /*width: 970px;*/
    /*width: 90%;*/
    line-height: 35px;
}

/* Multi-Column Layout for Dropdown */
.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Fixed 3 columns */
    gap: 10px;
}

.dropdown-grid > div:last-child {
    border-right: none;
}

/* Dropdown Sections */
.dropdown-section {
    padding: 5px 10px; /* Compact padding */
}

.dropdown-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #cb0202; /* Bright title color #FFA500*/
    margin-bottom: 8px;
    text-transform: uppercase;
    display: block;
    border-bottom: 1px solid #555; /* Separator under titles */
    padding-bottom: 4px;
}

.dropdown-section a {
    display: block;
    padding: 4px 8px; /* Reduced padding */
    color: #FFF;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.85rem;
    border-radius: 4px;
}

.dropdown-section a:hover {
    background-color: #444;
}

/* Show Dropdown on Hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Dropdown Arrow Indicator */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 30px;
    width: 0;
    height: 0;
}
#footnote{
    font-size: 1.1rem;
    color: #00dbdd;
    margin-left: 4px; 
}

/**********************************************************************
*
*               logout
*
***********************************************************************/

.logout-button {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.logout-button i {
    font-size: 18px;
}

/*.logout-button:hover {
    background-color: #c9302c;
}*/


/*******************************
*   and logout
*******************************/


.soon-label {
    background-color: #cb0202; /* Orange background #FFA500 */
    color: white; /* White text */
    font-size: 0.65rem; /* Smaller font size */
    padding: 1px 3px; /* Minimal padding */
    border-radius: 2px; /* Subtle rounded corners */
    margin-left: 5px; /* Space between label and link */
    text-transform: uppercase;
    vertical-align: middle;
    box-sizing: border-box; /* Include padding in size */
    font-style: italic;
}
.new-label {
    background-color: #62a807; /* Orange background #FFA500 */
    color: white; /* White text */
    font-size: 0.65rem; /* Smaller font size */
    padding: 1px 3px; /* Minimal padding */
    border-radius: 2px; /* Subtle rounded corners */
    margin-left: 5px; /* Space between label and link */
    text-transform: uppercase;
    vertical-align: middle;
    box-sizing: border-box; /* Include padding in size */
    font-style: italic;
}
.free-label {
    background-color: #00dbdd; /* Orange background #FFA500 */
    color: white; /* White text */
    font-size: 0.65rem; /* Smaller font size */
    padding: 1px 3px; /* Minimal padding */
    border-radius: 2px; /* Subtle rounded corners */
    margin-left: 5px; /* Space between label and link */
    text-transform: uppercase;
    vertical-align: middle;
    box-sizing: border-box; /* Include padding in size */
    font-style: italic;
}

/**********************************************************************
*
*                Hero Section 
*
***********************************************************************/
.hero {
    background-size: cover;
    overflow: hidden;
    width: 100%;
    background-repeat: no-repeat;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem; 
    background: url(/image/fon3.png) no-repeat center/cover;
    background: url(/image/fon3.webp) no-repeat center/cover;
   /* background: url(/image/fon3.avif) no-repeat center/cover;*/
}

.hero .title-hero {
    margin-top: 10px;
}

#descriptor span{
    background: #120f0f; /*rgb(58, 58, 58)*/
    color: white;
    font-weight: 600;
    font-size: 1.0rem;
    padding: 5px 10px;
}

.hero h1 {
    font-size: 4.0rem; /* Headline size for large screens */
    line-height: 1.0em;/* Improved readability */
    font-weight: 700;
    color: #120f0f; /*rgb(58, 58, 58)*/
    margin-bottom: 1.25rem;
    display: flex;
    float: left;
    width: 100%;
}

.hero p {
    margin: 0.5rem 0 2rem;
    font-weight: 600;
    color: #120f0f; /*rgb(56, 56, 56);*/
}

/*.hero .img-hero {
 /*   flex: 1 1 35%; /* Flexible layout for image */
   /* max-width: 35%; /* Restrict max width */
 /*   height: auto; /* Maintain aspect ratio */
  /*  align-self: flex-start; /* Align the image */
  /*  background-repeat: no-repeat;
}*/

.hero .cta-buttons {
    font-size: 1rem;
    margin-top: 2rem;
    gap: 1rem; /* Add spacing between buttons */
    align-items: flex-start; /* Align buttons with text */
    width: 100%; /* Full width for stacking */
}

.cta-buttons .cta-primary {
    background-color: #dd0000;
    padding: 1rem 1.5rem;
    border-radius: 2.2rem;
    color: #FFF;
    font-size: 1rem;
    text-align: center;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none; 
}

.cta-buttons .cta-primary:hover {
    background-color: #cb0202;
    transform: scale(1.05);
}

.cta-buttons .cta-secondary {
    color: #3a3a3a;
    padding: 0.875rem 1.375rem;
    border-radius: 2.2rem;
    border: 0.125rem solid #dd0000;/*CC4E5C терракота # b2291a*/
    text-decoration: none;
    font-size: 1rem;
    display: inline-block;
    transition: color 0.3s ease, border-color 0.3s ease;
    text-decoration: none; 
}

.cta-buttons .cta-secondary:hover {
    color: #242424;
    border-color: #cb0202;
}
/******************************
*   HERO @media  1024px
******************************/
/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero {
        padding: 1.5rem; /* Reduced padding for smaller screens */
    }

    .hero .title-hero {
       /* flex: 1 1 100%; /* Take full width */
        margin-bottom: 5rem; /* Space below text */
    }

    .hero h1 {
        font-size: 4rem; /* Scaled heading */
    }

    .hero p {
        /*font-size: 1rem; /* Scaled paragraph */
        max-width: 100%;
    }

    .hero .img-hero {
        flex: 1 1 100%; /* Stack image */
        max-width: 100%; /* Full width */
        height: auto; /* Maintain aspect ratio */
        align-self: center; /* Center-align image */
    }
}
/******************************
*   HERO @media  768px
******************************/
@media (max-width: 768px) {
    .hero {
        flex-direction: column; /* Stack elements vertically */
        align-items: center; /* Center-align content */
        padding: 1rem; /* Compact padding */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 0.9rem;
        text-align: left;
    }

    .hero .cta-buttons {
        align-items: center; /* Center buttons */
        gap: 1rem;
        vertical-align: bottom;
    }

    .hero .img-hero {
        height: auto;
       /* max-height: 50vh; /* Restrict height for smaller screens */
    }
}
/******************************
*   HERO @media  480px
******************************/
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.8rem;
    }

    .hero .cta-buttons {
        width: 100%;
    }

    .hero .cta-buttons .cta-primary,
    .hero .cta-buttons .cta-secondary {
        font-size: 0.8rem; /* Reduce button font size */
        padding: 0.75rem 1rem; /* Compact padding */
        border-radius: 1.5rem; /* Adjust button corners */
        margin-right: 15px;
    }

    .hero .img-hero {
        height: auto;
       /* max-height: 40vh; /* Ensure full visibility on narrow screens */
    }
}
/******************************
*  HERO @media  300px
******************************/
@media (max-width: 300px) {
    .hero h1 {
        font-size: 1.5rem; /* Further reduce font size for better fit */
        line-height: 1.2; /* Adjust line height for tighter spacing */
        word-wrap: break-word; /* Ensure proper word wrapping */
        margin-bottom: 0.5rem; /* Reduce spacing below the heading */
    }

    .hero p {
        font-size: 0.7rem; /* Adjust font size for paragraph text */
    }

    .hero .cta-buttons .cta-primary,
    .hero .cta-buttons .cta-secondary {
        font-size: 0.8rem; /* Further reduce button font size */
        padding: 0.5rem 0.75rem; /* Compact padding */
    }

   /* .hero .img-hero {
        max-height: 30vh; /* Restrict height for very small screens 
    }*/
    .hero .title-hero {
         margin-bottom: 2.5rem; /* Space below text */
     }
}


/**********************************************************************
*
*                авторизация
*
***********************************************************************/
    
    .auth-container {
        width: 320px;
        padding: 20px;
        background: #ffffff;
        box-shadow: 0 3px 6px rgb(225 210 173);
        border-radius: 8px;
        text-align: center;
        margin: auto;
        margin-top: 50px;
    }
    .auth-container h2 {
        margin-bottom: 20px;
        color: #333;
    }
    .auth-container input[type="text"], 
    .auth-container input[type="password"] {
        width: 100%;
        padding: 12px;
        margin: 8px 0;
        border: 1px solid #ddd;
        border-radius: 4px;
        box-sizing: border-box;
    }
    .auth-container button {
        width: 100%;
        padding: 12px;
        background-color: #5cb85c;
        color: #fff;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
    }
    .auth-container button:hover {
        background-color: #4cae4c;
    }
    .error-message {
        color: #d9534f;
        font-size: 14px;
    }

/**********************************************************************
*
*               бегущая строка
*               Container for the scrolling text 
*
***********************************************************************/

.img-line {
    overflow: hidden; /* Maintain the hidden overflow */
    /*background-color: antiquewhite; /* Retain the background color */
    padding: 10px 0; /* Preserve original padding */
    white-space: nowrap; /* Prevent wrapping on larger screens */
    align-items: center; /* Center content alignment */
    position: relative; /* Maintain positioning for layered elements */
    box-sizing: border-box; /* Ensure padding and border are included in dimensions */
}



/* Marquee content container, with duplicated content */
.marquee-content {
    display: flex;
    animation: scroll 40s linear infinite;
}

/* Keyframes for smooth scrolling */
@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Individual content blocks with spacing between items */
/*.marquee-item {
    padding-right: 30px; *//* Adjust spacing between items 
}*/


/**********************************************************************
*
*                Styling for separators
*
***********************************************************************/
.marquee-item span {
    margin: 0 15px;
    font-size: 1.5em;
}

.marquee-item span i {
    font-style: normal;
    transform: none;
    display: inline-block;
    font-size: medium;
}


/**********************************************************************
*
*                .title1-cards-left 
*                .title1-cards-right 
*
***********************************************************************/
.title1-cards-left a, .title1-cards-right a{
    padding: 12px 70px;
    border-radius: 35px;
    font-size: 1rem;
    color: #000000;
    border: 1.5px solid #4f2e1b;
    text-decoration: none;
    width: 90%;
    margin: auto;
    text-align: center;
}

#tezis {
    margin: 30px auto 80px auto;
    font-size: 0.9rem;
    width: 90%;
    column-count: 4; /* Split the content into 2 columns */
    column-gap: 30px; /* Add space between the columns */
    text-align: justify; /* Justify text for better alignment */
}

#tezis p {
    margin-bottom: 10px; /* Add spacing between sentences */
}
#tezis span {
display: inline-block;
}
/**/
.functions-overview h2{
    text-align: center;

}


/**********************************************************************
*
*                стили страницы регистрации
*
***********************************************************************/
.function-card {
    display: inline-block;
    width: 48%;
    background: linear-gradient(45deg, #eaeaea, #d6c7b414);
    border-radius: 5px;
    padding: 50px 0 0 0;
    margin: 10px;
    box-sizing: border-box;
}

.function1-card {
    display: inline-block;
    width: 100%; /* Defaults to full width for better stacking */
    padding: 50px 0 0 0;
    margin: 10px;
    box-sizing: border-box;
}

/**********************************************************************
*
*                Title and Image Sections
*
***********************************************************************/

.title1-cards-right {
    background: linear-gradient(136deg, #f5f5dc00, #fbf2d7);
    height: auto;
    width: 50%;
    float: right;
    padding: 40px 40px 0 0 ; /* Preserved padding values */
    box-sizing: border-box;
    display: flex;
    flex-direction: column; /* Stack content vertically */
    justify-content: center; /* Center-align content */
}

.title1-cards-right ul,
.title1-cards-left ul {
    list-style-type: disc; /* Черные кружки */
    padding-left: 20px; /* Отступ для лучшей читаемости */
}

/******************************
*  .img1-cards-left,  
*  .img1-cards-right
******************************/
.title1-cards-left {
    background: linear-gradient(311deg, #f5f5dc00, #fbf2d7);
    height: auto;
    width: 50%;
    float: left;
    padding: 40px 0 0 40px; /* Preserved padding values */
    box-sizing: border-box;
    display: flex;
    flex-direction: column; /* Stack content vertically */
    justify-content: center; /* Center-align content */
}


/**********************************************************************
*
*                стили страницы регистрации
*
***********************************************************************/

/******************************
*  tezis @media  768px
******************************/
@media (max-width: 768px) {
    #tezis {display: none;}
  }

.img1-cards-left {
    margin: 20px 0 0 120px;
    /*margin: 0px 0px 0px 90px;*/
    object-fit: contain;
    width: 30%; /* Preserve original width */
    display: inline-block;
}

.img1-cards-right {
    object-fit: contain;
    width: 30%; /* Preserve original width */
    margin: 20px 0 0 120px; /* Center image and add bottom margin */
    display: inline-block;
}


/******************************
*  cards @media  1024px
******************************/
@media (max-width: 1024px) {
    .title1-cards-left {
        width: 100%; /* Full width on smaller screens */
        float: none; /* Disable floating */
        padding: 20px 20px; /* Adjust padding for smaller screens */
        text-align: center; /* Center-align text */
    }

    .img1-cards-left,
    .img1-cards-right {
        width: 40%; /* Slightly larger images for smaller screens */
    }
}

/******************************
*  cards @media  768px
******************************/
@media screen and (max-width: 768px){
    .img1-cards-left,
    .img1-cards-right {
    display:block;
    float: inline-start;
}
}

  @media (max-width: 768px) {

    .function1-card {
        display: grid;
    }

    .title1-cards-left,
    .title1-cards-right  {
        padding: 10px; /* Compact padding for narrow screens */
        text-align: center; /* Center-align the text */
        float: none; /* Remove float for stacking behavior */
        width: 100%; /* Full width for the text block */
        order: 2; /* Position text block below image block */
        display: flex; /* Flex for alignment */
        flex-direction: column;
        align-items: center;
        box-sizing: border-box;
        font-size: 0.9rem;
    }

    .img1-cards-left,
    .img1-cards-right {
        width: 80%; /* Scale image to fit narrow screens */
        margin: 0 auto 10px auto; /* Center the image and add bottom margin */
        float: none; /* Remove float for stacking */
        display: block; /* Ensure block display */
        order: 1; /* Position image block above text block */
    }

    /* Flex container (if needed) */
    .container {
        display: flex;
        flex-direction: column; /* Stack items vertically */
    }
}


/* Additional Card Sections */
.title-cards-left,
.title-cards-right {
    height: auto;
    width: 70%;
    padding: 40px 10px;
    box-sizing: border-box;
}

.title-cards-left {
    float: left;
}

.title-cards-right {
    float: right;
}

.img-cards-left,
.img-cards-right {
    object-fit: contain;
    width: 30%;
    float: left;
}

.functions-overview .img2-cards-left,
.functions-overview .img2-cards-right {
    float: none; /* Align for smaller screens */
    width: 25%;
    margin: 20px 0 0 120px; /* Center align for smaller screens */
}

/******************************
*  cards @media  1024px
******************************/
@media (max-width: 1024px) {
    .function-card,
    .function1-card {
        width: 100%; /* Full width for better stacking */
    }

    .title1-cards-left,
    .title1-cards-right,
    .title-cards-left,
    .title-cards-right {
        width: 100%; /* Full width for smaller screens */
        float: none;
        padding: 20px 10px; /* Adjusted padding */
    }

    .img1-cards-left,
    .img1-cards-right,
    .img-cards-left,
    .img-cards-right,
    .functions-overview .img2-cards-left,
    .functions-overview .img2-cards-right {
        width: 50%; /* Adjust image size */
        margin: 10px auto; /* Center images */
    }
}

/******************************
*  cards @media  768px
******************************/
@media (max-width: 768px) {
    h2{
        font-size: 1.5em;
        line-height: 1em;
    }
    #title-h2{
        line-height: 1.2em;
        font-weight: 700;
        font-size: 2.5rem;
    }

    /*.function-card,
    .function1-card {
        margin: 15px 5px; /* Adjust margin for smaller screens 
    }*/

    .title1-cards-left,
    .title1-cards-right,
    .title-cards-left,
    .title-cards-right {
        padding: 15px 5px; /* Compact padding */
    }

    .img1-cards-left,
    .img1-cards-right,
    .img-cards-left,
    .img-cards-right,
    .functions-overview .img2-cards-left,
    .functions-overview .img2-cards-right {
        width: 50%; /* Smaller image size */
        margin: -10px auto; /* Center images */
    }
}
/******************************
*  cards @media  480px
******************************/
@media (max-width: 480px) {
    .title1-cards-left,
    .title1-cards-right,
    .title-cards-left,
    .title-cards-right {
        text-align: center; /* Center-align text for narrow screens */
        padding: 10px; /* Compact padding */
    }

    .img1-cards-left,
    .img1-cards-right,
    .img-cards-left,
    .img-cards-right,
    .functions-overview .img2-cards-left,
    .functions-overview .img2-cards-right {
        width: 80%; /* Fit images nicely */
    }
}

/****************/
.audience p, .audience ul, .functions-overview ul {
    margin: 10px 30px;
    text-align: justify;
    /*margin-top: 100px;*/
}
.audience li, .functions-overview li {
    margin-bottom: 7px;
}

#list{
    list-style-type: disc; 
}

/**********************************************************************
*
*               how-it-works
*
***********************************************************************/
.how-it-works h2{
    margin: auto;
    display: block;
    text-align: center;
    margin-bottom: 30px;
}
.audience, .how-it-works, .functions-overview{
    display: block;
    margin: auto;
    width: 90%;
}

.how-it-works {
    padding: 50px 0;
    text-align: center;
}

.how-it-works h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #120f0f;
    letter-spacing: 1px;
}

/**********************************************************************
*
*                Steps Container
*
***********************************************************************/
.steps {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.step {
    position: relative;
    display: inline-block;
    width: 29%;
    height: 250px;
    background-color: #fbf2d7;
    border-radius: 10px;
    padding: 20px;
    margin: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    vertical-align: bottom;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 3px 6px rgb(225 210 173);
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #cb0202;
    text-transform: uppercase;
}

.step p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Arrows between steps */
.step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -40px;
    width: 30px;
    height: 30px;
    /*background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23f26101" viewBox="0 0 24 24"><path d="M8.293 16.707a1 1 0 010-1.414L12.586 11 8.293 6.707a1 1 0 111.414-1.414l5 5a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0z"/></svg>') no-repeat center;*/
    background-size: contain;
    transform: translateY(-50%);
}

/* Hide arrow on the last step */
.step:last-child::after {
    display: none;
}

/******************************
*  STEP  @media  768px
******************************/
@media (max-width: 768px) {
    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        width: 80%;
        margin: 10px 0;
    }

    .step::after {
        display: none;
    }
}

/* Hover effect for arrows (optional) */
.step:hover::after {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23ff8c00" viewBox="0 0 24 24"><path d="M8.293 16.707a1 1 0 010-1.414L12.586 11 8.293 6.707a1 1 0 111.414-1.414l5 5a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0z"/></svg>') no-repeat center;
}


/**********************************************************************
*
*               Benefits Section
*
***********************************************************************/
.benefits {
    padding: 40px 20px;
    background-color: #FFF;
    text-align: center;
}

.benefits h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #00509E;
}

.benefit-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.benefit-item {
    background-color: #F3F3F3;
    padding: 20px;
    width: 200px;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgb(225 210 173);
}

/**********************************************************************
*
*                information-format
*
***********************************************************************/
.information-format{
    margin: 100px 40px;
}

.information-format h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #120f0f; /*#333*/
    letter-spacing: 1px;
}

.information-format h3 {
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-align: center;
}


/**********************************************************************
*
*                Format Cards
*
***********************************************************************/
.formats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.format {
    width: 30%;
    min-width: 250px;
    background-color: #fbf2d7;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgb(225 210 173);
    text-align: center;
    padding: 20px;
    margin: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.format:hover {
    transform: translateY(-10px);
    box-shadow: 0 3px 6px rgb(225 210 173);
}

.img-format {
    object-fit: contain;
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

/******************************
*       Format Titles and Text 
*******************************/
.format h4 {
    font-size: 1.25rem;
    color: #cb0202;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.format p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

.format::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    width: 30px;
    height: 30px;
   /* background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23f26101" viewBox="0 0 24 24"><path d="M8.293 16.707a1 1 0 010-1.414L12.586 11 8.293 6.707a1 1 0 111.414-1.414l5 5a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0z"/></svg>') no-repeat center;*/
    background-size: contain;
    transform: translateY(-50%);
}

.format:last-child::after {
    display: none;
}


/******************************
*  FORMAT @media  768px
******************************/
@media (max-width: 768px) {
    .formats {
        flex-direction: column;
        gap: 10px;
    }

    .format {
        width: 100%;
    }

    .format::after {
        display: none;
    }
}


/**********************************************************************
*
*                           subscription-plans
*
***********************************************************************/

.subscription-plans .title-plan{
    width: 100%;
    display: block;
    text-align: center;
    text-transform: uppercase;
}
.subscription-plans h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
    letter-spacing: 1px;
}

.plans {
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
}

.plan {
   
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensure space for the button at the bottom */
    padding: 20px;
    box-shadow: 0 3px 6px rgb(225 210 173);

    min-width: 250px;
    background: linear-gradient(135deg, #fff 60%, #f2f2f2);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.plan:hover {
    transform: translateY(-10px);
    box-shadow: 0 3px 6px rgb(225 210 173);
}

/******************************
*        Plan Titles 
*******************************/
.plan h3 {
    font-size: 1.2rem;/**1.5*/
    margin-bottom: 10px;
    color: #dd0000;
    text-transform: uppercase;
    font-weight: bold;
}

/******************************
*       Plan Descriptions 
*******************************/
.plan p {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

/******************************
*      Plan Buttons 
*******************************/
.plan-button {
    background-color: #dd0000;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 30px;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
}

.plan-button:hover {
    background-color: #cb0202;
}

/******************************
*      Plan Decorative Arrows 
*******************************/
.plan::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    width: 30px;
    height: 30px;
    /*background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23f26101" viewBox="0 0 24 24"><path d="M8.293 16.707a1 1 0 010-1.414L12.586 11 8.293 6.707a1 1 0 111.414-1.414l5 5a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0z"/></svg>') no-repeat center;*/
    background-size: contain;
    transform: translateY(-50%);
}

.plan:last-child::before {
    display: none;
}

/******************************
*  PLAN @media  768px
******************************/
@media (max-width: 768px) {
    .plans {
        flex-direction: column;
        gap: 20px;
    }

    .plan {
        width: 100%;
    }

    .plan::before {
        display: none;
    }
}

/**********************************************************************
*
*                           Testimonials Section
*
***********************************************************************/
.testimonials {
    padding: 40px 20px;
    text-align: center;
}

.testimonials blockquote {
    font-style: italic;
}

/**/
.newsletter{
    margin: 10px 0 20px 0;
    text-align: center;
}
.newsletter h2, .newsletter p{
    margin-bottom: 50px;
}

/**********************************************************************
*
*                           Footer
*
***********************************************************************/
.footer {
    text-align: center;
    background-color: #120f0f;
    color: #FFF;
    font-size: 0.9rem; /* Relative font size */
    display: flex;
}

.footer-links a {
    color: #FFF;
    text-decoration: none;
    display: inline-block;
    float: right;
}

.social-icons {
    margin: 1.5rem 0rem 0.8rem;;
    display: flex; /* Ensure alignment in smaller layouts */
    justify-content: center; /* Center align icons */
    gap: 1rem; /* Space between icons */
}

.social-icons .social-icon {
    font-size: 20px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0 10px;
}

.social-icons .social-icon:hover {
    color: #dd0000; /* Change this to match brand colors, e.g., #0088cc for Telegram */
}

.social-icons a {
    color: #FFF;
    text-decoration: none;
}

.footer-links {
    float: right;
    position: relative; 
}

#footer-links{
    margin: 4rem 0 0.1rem;/*7.1rem*/
}

.footer-email, 
.footer-links,
.footer-title{
    width: 33%;
    text-align: left;
    display: inline-block;
    float: left;
    font-size: 0.87rem; /* Consistent size for email text */
    margin: 1.5rem 1.5rem 0.1rem;
}

.footer-links,
.footer-copy{
    font-size: 0.7rem;
    line-height: 1.0rem;
}

.footer-logo{
    width: 190px;
}

.footer-title p{ 
    margin: 20px 0 10px;
}

.footer-email input[type="email"]{
    margin-top: 60px;
}

/******************************
*  FOOTER @media  246px
******************************/
@media (max-width: 246px) {
    .footer {
        padding: 0.5rem; /* Compact padding for narrow screens */
        text-align: center; /* Center align footer content */
        font-size: 0.75rem; /* Reduce font size for readability */
        flex-direction: column; /* Stack elements vertically */
        justify-content: center;
        align-items: center;
    }

    .footer-links {
        float: none; /* Remove floating for smaller screens */
        width: 100%; /* Make footer links take full width */
        text-align: center; /* Center align footer links */
        margin-top: 10px; /* Add some margin */
    }

    .footer-links a {
        color: #FFF;
        text-decoration: none;
        display: block; /* Block-level links for easier tapping */
        margin: 0; /* Add spacing between links */
        line-height: 0.2rem;
        float: none; /* Remove float for proper stacking */
        margin-bottom: 0.5rem; /* Space between links */
        font-size: 0.75rem; /* Adjust font size */
    }

    .social-icons {
        margin: 0.5rem 0; /* Adjust margins */
        display: flex; /* Use flex for alignment */
        justify-content: center; /* Center the social icons */
        gap: 0.5rem; /* Reduce space between icons */
    }

    .social-icons .social-icon {
        font-size: 16px; /* Smaller icon size */
        color: #ffffff;
        text-decoration: none;
        transition: color 0.3s ease;
        margin: 0 5px; /* Smaller spacing */
    }

    .social-icons .social-icon:hover {
        color: #dd0000; /* Change icon color on hover */
    }

    .footer-email, .footer-links, .footer-title {
        width: 100%; /* Stack sections vertically */
        text-align: center; /* Center align text */
        font-size: 0.75rem; /* Adjust font size for narrow screens */
        margin: 0.5rem 0; /* Adjust margin for better spacing */
    }

    .footer-logo {
        width: 150px; /* Adjust logo size */
        margin-bottom: 1rem; /* Space below logo */
    }

    .footer-title p {
        margin: 10px 0; /* Adjust margin for paragraph elements */
    }

    .footer-email input[type="email"] {
        width: 90%; /* Ensure input field takes most of the width */
        font-size: 0.75rem; /* Adjust font size */
        padding: 0.5rem; /* Compact padding */
        margin-top: 20px; /* Adjust spacing */
    }

    .footer-copy {
        font-size: 0.6rem; /* Smaller font for copyright */
        line-height: 1rem;
        margin-top: 10px; /* Add some spacing from other sections */
    }
}

/******************************
*  FOOTER @media  480px
******************************/
@media (max-width: 480px) {
    .footer {
        flex-direction: column; /* Stack elements vertically */
        padding: 1rem; /* Compact padding */
        text-align: center; /* Center-align content */
        font-size: 0.8rem; /* Adjust font size for smaller screens */
    }

    .footer-logo {
        width: 150px; /* Adjust logo size for smaller screens */
        margin: 0 auto 1rem; /* Center and add margin below */
    }

    .footer-title,
    .footer-email,
    .footer-links {
        width: 100%; /* Make sections take full width */
        display: block; /* Stack sections vertically */
        text-align: center; /* Center-align text */
        margin: 1rem 0; /* Add consistent spacing between sections */
    }

    .footer-title p {
        margin: 10px 0; /* Compact spacing for paragraphs */
    }

    .footer-email input[type="email"] {
        width: 90%; /* Ensure input fields take most of the screen */
        font-size: 0.8rem; /* Adjust font size for smaller screens */
        padding: 0.5rem; /* Compact padding */
        margin: 1rem auto; /* Add margin for spacing and center */
    }

    .footer-links {
        float: none; /* Remove float for proper stacking */
        margin: 0 auto; /* Center-align */
    }

    .footer-links a {
        display: block; /* Make links stack vertically */
        margin: 0; /* Add spacing between links */
        line-height: 0.2rem;
        float: none; /* Remove float for proper stacking */
        font-size: 0.8rem; /* Adjust font size */
        text-align: center; /* Center-align text */
    }

    .social-icons {
        margin: 1rem 0; /* Adjust spacing for social icons */
        justify-content: center; /* Center-align icons */
        gap: 0.5rem; /* Reduce spacing between icons */
    }

    .social-icons .social-icon {
        font-size: 16px; /* Reduce icon size for smaller screens */
        margin: 0 5px; /* Reduce spacing between icons */
    }

    .footer-copy {
        font-size: 0.7rem; /* Smaller font size for copyright */
        line-height: 1.2rem; /* Adjust line height */
        margin-top: 1rem; /* Add spacing above */
        text-align: center; /* Center-align text */
    }
}

/******************************
*  FOOTER @media  768px
******************************/
@media (max-width: 768px) {
    .footer {
        padding: 1rem; /* Slightly reduced padding */
        text-align: center; /* Center align content */
        flex-direction: column; /* Stack elements vertically */
        justify-content: center; /* Center align flex content */
        font-size: 0.8rem; /* Reduce font size slightly */
    }

    .footer-logo {
        width: 170px; /* Slightly reduce logo size */
        margin: 0 auto 1rem; /* Center and add margin below */
    }

    .footer-title,
    .footer-email,
    .footer-links {
        width: 100%; /* Stack sections vertically */
        text-align: center; /* Center align text */
        margin: 1rem 0; /* Add spacing between sections */
    }

    .footer-title p {
        margin: 15px 0; /* Compact spacing for paragraphs */
    }

    .footer-email input[type="email"] {
        width: 80%; /* Ensure input fields fit well */
        font-size: 0.8rem; /* Adjust font size for readability */
        padding: 0.6rem; /* Compact padding */
        margin: 1rem auto; /* Center align with spacing */
    }

    .footer-links {
        float: none; /* Remove float for proper stacking */
        margin: 0 auto; /* Center align */
    }

    .footer-links a {
        display: block; /* Make links stack vertically */
        margin: 0; /* Add spacing between links */
        line-height: 0.2rem;
        float: none; /* Remove float for proper stacking */
        font-size: 0.8rem; /* Adjust font size */
        text-align: center; /* Center align text */
    }

    .social-icons {
        margin: 1rem 0; /* Adjust spacing for social icons */
        display: flex; /* Keep flex layout */
        justify-content: center; /* Center align icons */
        gap: 0.7rem; /* Slightly reduce spacing between icons */
    }

    .social-icons .social-icon {
        font-size: 18px; /* Slightly reduce icon size */
        margin: 0 7px; /* Reduce spacing between icons */
    }

    .footer-copy {
        font-size: 0.7rem; /* Smaller font size for copyright */
        line-height: 1.2rem; /* Adjust line height */
        margin-top: 1rem; /* Add spacing above */
        text-align: center; /* Center align text */
    }
}

/**********************************************************************
*
*                стили страницы регистрации
*
***********************************************************************/
#registrationForm {
    width: 400px;
    padding: 20px;
    background: #ffffff;
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
    box-shadow: 0 3px 6px rgb(225 210 173);
    border-radius: 8px;
    margin: auto;
    margin-top: 100px;
    margin-bottom: 100px;
}
#registrationForm input[type="text"], 
#registrationForm input[type="password"],
#registrationForm input[type="email"]{
    width: 100%;
}
#registrationForm label{
    font-weight: 400;
}
.form h2, .form p , .form a {
    display: block;
    text-align: center;
    margin: 10px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
#specialization,
input[type="text"],
input[type="password"] {
    width: 90%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    font-size: 1em;
}

input[type="email"]{
    width: 60%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    font-size: 1em;
}

input[type="submit"] {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: #dd0000;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background: #cb0202;
}

.error {
    color: red;
    font-size: 0.9em;
}

.registration-container .error-message {
    width: 100%; /* Ensure it spans the full width of the container */
    padding: 10px; /* Add padding for spacing */
    background-color: #f8d7da; /* Light red background to indicate an error */
    color: #721c24; /* Dark red text for better visibility */
    border: 1px solid #f5c6cb; /* Border matching the background */
    border-radius: 5px; /* Rounded corners for a smooth appearance */
    margin-bottom: 20px; /* Add space below the error message */
    text-align: center; /* Center the text inside the message */
    font-size: 1em; /* Adjust the font size for readability */
    box-shadow: 0 3px 6px rgb(225 210 173); /* Optional: Add a subtle shadow */
}

.terms {
    margin: 15px 0;
    font-size: 0.9em;
    text-align: center;
}
 
/***********************************************************
*
*                         cookie
*                    
************************************************************/
.cookie-banner {
    position: fixed;
    bottom: 0;
    width: 30%;
    background-color: #3a3a3a;
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    box-shadow: 0 3px 6px rgb(225 210 173);
    z-index: 999;
}

.cookie-banner p {
    margin: 0;
    display: inline;
}

.cookie-banner a {
    color: #66ca6a;
    text-decoration: none;/*underline*/
}

.cookie-banner button {
    background-color: #156818;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-top: 10px;
    margin-left: 10px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
}

.cookie-banner button:hover {
    background-color: #156818;
}
/**************end cookie**********************************************************
*
*
*****************<section class="subscription-plans">******************************/
.subscription-plans {
    padding: 40px;
    text-align: center;
}

.plans {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-bottom: 80px;
}

.plan {
    border-radius: 10px;
    padding: 20px;
    background: #fbf2d7;
    position: relative;
}

.plan.most-popular {
    border: 2px solid #cb0202;
    background: #fdf8e0;
}

.plan h3 {
    margin-bottom: 10px;
}

.plan p {
    margin: 5px 0;
}
#plan-strong{
    font-size: 1.5rem;
}

.plan-button {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    /*background: #007bff;*/
    border: none;
    /*border-radius: 5px;*/
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.plan-button:hover {
    background: #cb0202;
}

/*****************************************************
*                  Badge Styles
******************************************************/
.badge {
    position: absolute;
    top: 10px;
    left: -5px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    border-radius: 5px;
}

.badge-free {
    background: #219321;
}

.badge-best-value {
    /*background: linear-gradient(117deg, #007e5e, transparent);*/
    background: firebrick;
}

.badge-popular {
    background: red;
}

.badge-business {
    background: firebrick;
}

.badge-custom {
    background: black;
}

/***************end <section class="subscription-plans">********************************
*
*
*********************список в бесплатном тарифе*****************************************/
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 60%;
    border-radius: 8px;
    text-align: left;
}
.modal-content h3{
    margin-bottom: 10px;
    text-align: center;
}
.modal-content p{
    font-size: 1.0rem;
}
.modal-content ul{
    margin: 20px;
}
.modal-content li{
    line-height: 1.5rem;
    font-size: 1.0rem;
}
.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/*************конец список в бесплатном тарифе*********************/

/***********************************************************
*
*                         help
*                    
************************************************************/
    /* Help section styles */
    .help-section {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 5px 0;
    }
    .help-section .help-link,
    .help-section .statistic-link {
        color: #ffffff;
        padding: 6px 30px;
        border-radius: 20px; /* Rounded button style */
        transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth interactions */
        cursor: pointer;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 400;
        margin-right: 15px;
        cursor: pointer;
    }
    .help-section .help-link{
        background-color: #dd0000; /* Vibrant button-like color */
    }
    
    .help-section .statistic-link{
        background-color: #808000; /* Vibrant button-like color */
    }
    
    .help-section .help-link:hover,
    .help-section .statistic-link:hover {
        color: #120f0f;
    }
/******************************
*  Media Query: Maximum width 920px
******************************/
    @media (max-width: 920px) {
        .help-section {
            padding: 8px 0; /* Reduce padding for smaller screens */
            justify-content: right; /* Center the help section center*/
        }

        .help-section .help-link {
            font-size: 0.9rem; /* Reduce font size slightly */
            padding: 8px 25px; /* Adjust padding for better fit */
            margin-right: 15px; /* Reduce right margin */
        }
    }

/******************************
*  Media Query: Maximum width 768px
******************************/
    @media (max-width: 768px) {
        .help-section {
            padding: 6px 0; /* Further reduce padding */
            justify-content: right; /* Keep the section centered */
        }

        .help-section .help-link {
            font-size: 0.85rem; /* Reduce font size further */
            padding: 6px 20px; /* Adjust padding */
            margin-right: 10px; /* Reduce margin for compact layout */
        }
    }

/******************************
*  Media Query: Maximum width 480px
******************************/
    @media (max-width: 480px) {
        .help-section {
            padding: 5px 0; /* Minimal padding for very small screens */
            justify-content: right; /* Center the help section */
        }

        .help-section .help-link {
            font-size: 0.75rem; /* Smallest font size */
            padding: 5px 15px; /* Minimal padding */
            margin-right: 5px; /* Minimize margin */
        }
    }

/******************************
*  Help modal styles
******************************/
    .help-modal {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: white;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        max-width: 600px;
        width: 90%;
        max-height: 90vh; /* Ensures the modal doesn't exceed 90% of the viewport height */
        padding: 30px;
        overflow-y: auto; /* Adds a vertical scrollbar if the content overflows */
        z-index: 1000;
        box-sizing: border-box;
    }

    .help-modal h2 {
        margin-top: 0;
        font-size: 1.5rem;
        text-align: center;
    }

    .help-modal p,
    .help-modal li {
        margin-bottom: 15px;
        line-height: 1.5;
        text-align: justify;
        font-size: 0.9rem;
    }

    .help-modal ul{
        padding: 0 0 0 20px;
    }

    .help-modal .close-btn {
        background-color: #dd0000;
        color: white;
        border: none;
        border-radius: 5px;
        padding: 10px 15px;
        font-size: 1rem;
        cursor: pointer;
    }

    .help-modal .close-btn:hover {
        background-color: #120f0f;
    }

    /* Overlay styles */
    .help-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    /*******************************************/