@import "reset.css";
@import "card.css";
@import "media-scroll.css";

html, body {
    background-color: #f9fafe;
    font-family: Epilogue, sans-serif;
    height: 100%;
}

/* HEADER */

header {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 52px;
    padding-top: 0px;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.05);
    z-index:5;
}

nav {
    display: flex;
    justify-content: space-between;
    width: 80%;
    flex-direction: row;
    margin: auto;
    text-decoration: none;
    z-index: 9;
}

.navbar {
    align-self: center;
}

.logo {
    align-self: center;
}

.logo img {
    opacity: 1;
    width: 130px;
    height: 20px;
}

header .logo:hover {
    opacity: 0.5;
    transition: opacity 0.1s linear;
    -webkit-transition: opacity 0.1s linear;
    -moz-transition: opacity 0.1s linear;
}

.logo a {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    align-items: center;
    font-size: 12px;
    color: #1b1e21;
}

.separator {
    border-left: 1px solid #1b1e21;
    height: 20px;
}

.description {
    width: 100px;
    margin-left: 7px;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
}

.nav-item a {
    font-size: 14px;
    text-decoration: none;
    color: #1b1e21;
    margin-left: 10px;
}

.nav-item:hover {
    opacity: 0.5;
    transition: opacity 0.1s linear;
    -webkit-transition: opacity 0.1s linear;
    -moz-transition: opacity 0.1s linear;
}

/* HAMBURGER */

.toggler, .hamburger, .menu {
    display: none;
}

/* MAIN SECTION */

.main-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 52px;
    margin-bottom: 40px;
}

.container {
    display: flex;
    width: 80%;
    margin: auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.main-section h1 {
    font-family: Inter, sans-serif;
    font-size: max(36px, min(4vw, 60px));
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    margin-top: 5%;
    margin-bottom: 15px;
}

.main-section p {
    margin-bottom: 20px;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
}

.main-section button {
    color: #ffffff;
    background-color: #ff0030;
    width: 250px;
    height: 36px;
    font-weight: 500;
    font-size: 15px;
    border-radius: 18px;
    border: none;
    box-shadow: 0px 0px 50px 0px rgba(93, 93, 93, 0.27);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.main-section button span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
}

.main-section button span:after {
    content: '\00bb';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.5s;
}

.main-section button:hover span {
    padding-right: 25px;
}

.main-section button:hover span:after {
    opacity: 1;
    right: 0;
}

.main-section button:active {
    background-color: rgba(238, 19, 25, 0.42);
    transform: translateY(3px);
}

.services-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.services-section h2 {
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 25px;
}

.in-media {
    margin-bottom: 70px;
}

.in-media h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}
.about{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    padding: 20px;
}
.about h2  {
    color: rgb(8, 27, 75);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 110%;
    margin: 0px auto;
}

.about p{
    color:rgb(77, 91, 124);
    font-size: 16px;
    font-weight: 500;
    line-height: 150%;
    margin: 20px auto 80px;
    max-width: 640px;
    text-align: center;
}
.row-wrap {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
}

.snippet {
    width: 240px;
}

.snippet h3 {
    font-weight: 700;
    margin-bottom: 10px;
}

.snippet a {
    text-decoration: none;
    color: #1b1e21;
}

.map{
    width: 100%;
    margin-top: 70px;
    margin-bottom: 50px;
}
.map .container{
    align-items: start;
}
.map h2{
    display: flex;
    justify-content: start;
    font-size: 41px;
    font-weight: 700;
    color: #1b1e21;
    margin-bottom: 10px;
}

.requisites{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex: 1;
    margin-bottom: 70px;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
}

.legal{
    width: 400px;
}
.legal h4{
    font-weight: 700;
    font-size: 24px;
}
.legal li{
    padding: 5px;
}
.contacts{
    text-align: left;
    width: 400px;
}

.contacts h4{
    font-weight: 700;
    font-size: 24px;
}
.contacts ul{
    margin-bottom: 20px;
}
.contacts li{
    padding: 5px;
}

footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    padding: 0;
    margin: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    padding: 50px 0 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.footer-logo img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 14px;
    color: #6090f0;
    font-weight: 500;
}

.footer-description {
    color: #b0b0b0;
    line-height: 1.6;
    font-size: 15px;
    max-width: 400px;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #6090f0;
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-section h6 {
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 15px;
    position: relative;
}

.footer-section h6::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #6090f0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #6090f0;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-copyright {
    color: #888888;
    font-size: 13px;
}
    font-weight: 400;
    font-size: 14px;
    margin-top: 8px;
    margin-left: 18px;
}

/* NEW SECTIONS STYLES */

.why-choose-section {
    margin-bottom: 40px;
}

.why-choose-section h2 {
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
}

.technologies-section {
    margin-bottom: 40px;
    padding: 25px 0;
    background-color: #f5f7fa;
}

.technologies-section h2 {
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 15px;
    text-align: center;
}

.technologies-section > .container > p {
    text-align: center;
    margin-bottom: 25px;
    font-size: 16px;
    color: #666;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}

.tech-category {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tech-category:hover {
    transform: translateY(-5px);
}

.tech-category h4 {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
    color: #1b1e21;
}

.tech-category p {
    color: #666;
    line-height: 1.5;
    font-size: 14px;
}

/* Синие акценты для некоторых технологий */
.tech-category:nth-child(2) h4 {
    color: #6090f0;
}

.tech-category:nth-child(4) h4 {
    color: #6090f0;
}

.tech-category:nth-child(6) h4 {
    color: #6090f0;
}

.cases-section {
    margin-bottom: 40px;
}

.cases-section h2 {
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.case-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-card h3 {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
    color: #1b1e21;
}

.case-card p {
    color: #666;
    line-height: 1.5;
    font-size: 14px;
}

.case-link {
    display: inline-block;
    color: #6090f0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.case-link:hover {
    color: #4a7bd9;
    text-decoration: underline;
}

.cases-section button {
    color: #ffffff;
    background-color: #ff0030;
    min-width: 250px;
    max-width: 350px;
    width: auto;
    height: auto;
    min-height: 36px;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 15px;
    border-radius: 18px;
    border: none;
    box-shadow: 0px 0px 50px 0px rgba(93, 93, 93, 0.27);
    transition: transform 0.3s ease;
    cursor: pointer;
    margin: 0 auto;
    display: block;
    white-space: nowrap;
}

.cases-section button span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
}

.cases-section button span:after {
    content: '\00bb';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.5s;
}

.cases-section button:hover span {
    padding-right: 25px;
}

.cases-section button:hover span:after {
    opacity: 1;
    right: 0;
}

.cases-section button:active {
    background-color: rgba(238, 19, 25, 0.42);
    transform: translateY(3px);
}

.benefits-section {
    margin-bottom: 50px;
    padding: 40px 0;
    background-color: #f5f7fa;
}

.benefits-section h2 {
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    color: #1b1e21;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-item {
    background: white;
    padding: 25px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.benefit-item .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff0030 0%, #ff6b6b 100%);
    border-radius: 50%;
    margin-bottom: 15px;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}

.benefit-item:nth-child(2) .icon {
    background: linear-gradient(135deg, #6090f0 0%, #7ba3f2 100%);
}

.benefit-item:nth-child(3) .icon {
    background: linear-gradient(135deg, #6090f0 0%, #7ba3f2 100%);
}

.benefit-item:hover .icon {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(255, 0, 48, 0.3);
}

.benefit-item .icon svg {
    width: 24px;
    height: 24px;
}

.benefit-item h4 {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 10px;
    color: #1b1e21;
    line-height: 1.3;
}

.benefit-item p {
    color: #666;
    line-height: 1.6;
    font-size: 16px;
    margin: 0;
}

.cta-section {
    margin-bottom: 40px;
    padding: 30px 0;
    background-color: #f5f7fa;
    color: #1b1e21;
    border-radius: 12px;
    margin: 0 20px 40px 20px;
}

.cta-section h2 {
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 15px;
    text-align: center;
}

.cta-section p {
    text-align: center;
    margin-bottom: 25px;
    font-size: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section button {
    color: #ffffff;
    background: linear-gradient(135deg, #6090f0 0%, #7ba3f2 100%);
    min-width: 250px;
    max-width: 350px;
    width: auto;
    height: auto;
    min-height: 36px;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 15px;
    border-radius: 18px;
    border: none;
    box-shadow: 0px 0px 50px 0px rgba(96, 144, 240, 0.3);
    transition: transform 0.3s ease;
    cursor: pointer;
    margin: 0 auto;
    display: block;
    white-space: nowrap;
}

.cta-section button span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
}

.cta-section button span:after {
    content: '\00bb';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.5s;
}

.cta-section button:hover span {
    padding-right: 25px;
}

.cta-section button:hover span:after {
    opacity: 1;
    right: 0;
}

.cta-section button:active {
    background: linear-gradient(135deg, #4a7bd9 0%, #6b8fd9 100%);
    transform: translateY(3px);
}

@media (max-width: 780px) {
    
    nav {
        height: 52px;
    }

    .navbar {
        display: none;
    }

    .toggler {
        /* ALWAYS KEEPING THE TOGGLER OR THE CHECKBOX ON TOP OF EVERYTHING :  */
        display: block;
        z-index: 10;
        height: 46px;
        width: 50px;
        position: absolute;
        top: 0;
        right: 0;
        cursor: pointer;
        opacity: 0;
    }

    .hamburger {
        z-index: 9;
        position: absolute;
        top: 0;
        right: 0;
        height: 33px;
        width: 40px;
        padding: 0.6rem;

        /* FOR DISPLAYING EVERY ELEMENT IN THE CENTER : */

        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* CREATING THE MIDDLE LINE OF THE HAMBURGER : */
    .hamburger > div {
        position: relative;
        top: 0;
        left: 0;
        background: #1f1f1f;
        height: 2px;
        width: 60%;
        transition: all 0.4s ease;
    }

    /* CREATING THE TOP AND BOTTOM LINES :
    TOP AT -10PX ABOVE THE MIDDLE ONE AND BOTTOM ONE IS 10PX BELOW THE MIDDLE: */
    .hamburger > div::before,
    .hamburger > div::after {
        content: '';
        position: absolute;
        top: -10px;
        background: #1f1f1f;
        width: 100%;
        height: 2px;
        transition: all 0.4s ease;
    }

    .hamburger > div::after {
        top: 10px;
    }

    /* IF THE TOGGLER IS IN ITS CHECKED STATE, THEN SETTING THE BACKGROUND OF THE MIDDLE LAYER TO COMPLETE BLACK AND OPAQUE :  */
    .toggler:checked + .hamburger > div {
        background: rgba(0, 0, 0, 0);
    }

    .toggler:checked + .hamburger > div::before {
        top: 0;
        transform: rotate(45deg);
        background: black;
    }

    /* AND ROTATING THE TOP AND BOTTOM LINES :  */
    .toggler:checked + .hamburger > div::after {
        top: 0;
        transform: rotate(135deg);
        background: black;
    }


    /* MAIN MENU WITH THE WHITE BACKGROUND AND THE TEXT :  */
    .menu {
        display: flex;
        background: white;
        width: 0%;
        height: 100vh;
        position: relative;
        z-index: 9;
        /* APPLYING TRANSITION TO THE MENU :  */

        transition: all 0.4s ease;
    }

    /* IF THE TOGGLER IS CHECKED, THEN INCREASE THE WIDTH OF THE MENU TO 30% , CREATING A SMOOTH EFFECT :  */
    .toggler:checked ~ .menu {
        z-index: 8;
        width: 100%;
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
    }


    /* STYLING THE LIST :  */
    .menu > div > ul {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        padding-left: 10px;

        /* HIDDEN INITIALLY  :  */

        visibility: hidden;
    }

    .menu > div > ul > li {
        list-style: none;
        padding: 0.5rem;
    }

    .menu > div > ul > li > a {
        color: black;
        text-decoration: none;
        font-size: 2rem;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    /* WHEN THE TOGGLER IS CHECKED, CHANGE THE VISIBILITY TO VISIBLE :  */
    .toggler:checked ~ .menu > div > ul {
        transition: visibility 0.4s ease;
        transition-delay: 0.1s;
        visibility: visible;
    }

    .toggler:checked ~ .menu > div > ul > li > a:hover {
        opacity: 0.5;
    }

    /* Mobile styles for new sections */
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cases-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 100%;
    }

    .tech-category,
    .case-card,
    .benefit-item {
        padding: 15px;
    }
    
    .benefit-item {
        padding: 20px 15px;
    }
    
    .benefit-item .icon {
        width: 40px;
        height: 40px;
        margin-bottom: 15px;
    }
    
    .benefit-item .icon svg {
        width: 20px;
        height: 20px;
    }
    
    .benefit-item h4 {
        font-size: 18px;
    }
    
    /* Синие акценты для мобильных */
    .tech-category:nth-child(2) h4,
    .tech-category:nth-child(4) h4,
    .tech-category:nth-child(6) h4 {
        color: #6090f0;
    }
    
    .cases-section button {
        min-width: 250px;
        max-width: 100%;
        width: 90%;
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .cta-section {
        margin: 0 10px 40px 10px;
        padding: 25px 15px;
    }
    
    .cta-section button {
        min-width: 250px;
        max-width: 100%;
        width: 90%;
        padding: 10px 20px;
        font-size: 14px;
    }
}
@media (max-width: 780px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px 0 20px 0;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-description {
        max-width: 100%;
    }
}

@media (max-width: 520px) {
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-main {
        padding: 25px 0 15px 0;
        gap: 30px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h6::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-social {
        justify-content: center;
    }
}