@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: 70px;
}

.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(48px, min(5vw, 76px));
    font-weight: 700;
    line-height: 72px;
    text-align: center;
    margin-top: 10%;
    margin-bottom: 20px;
}

.main-section p {
    margin-bottom: 30px;
    text-align: center;
}

.main-section button {
    color: #ffffff;
    background-color: #ff0030;
    width: 286px;
    height: 40px;
    font-weight: 500;
    font-size: 16px;
    border-radius: 20px;
    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: 70px;
}

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

.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;
}
    margin-top: 8px;
    margin-left: 18px;
}

@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: 3px;
        width: 60%;
        transition: all 0.4s ease;
        border-radius: 2px;
    }

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

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

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

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

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


    /* MAIN MENU WITH THE WHITE BACKGROUND AND THE TEXT :  */
    .menu {
        display: flex;
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        width: 0%;
        height: 100vh;
        position: relative;
        z-index: 9;
        transition: all 0.4s ease;
    }

    /* IF THE TOGGLER IS CHECKED, THEN INCREASE THE WIDTH OF THE MENU TO 100% */
    .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: 80px;
        left: 20px;
        right: 20px;
        visibility: hidden;
        gap: 20px;
    }

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

    .menu > div > ul > li > a {
        color: #ffffff;
        text-decoration: none;
        font-size: 24px;
        font-weight: 500;
        font-family: inherit;
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        position: relative;
    }

    .menu > div > ul > li > a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: #6090f0;
        transition: width 0.3s ease;
    }

    .menu > div > ul > li > a:hover {
        color: #6090f0;
        padding-left: 10px;
    }

    .menu > div > ul > li > a:hover::after {
        width: 100%;
    }

    /* 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;
    }
}
@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;
    }
    
    /* Мобильное меню для маленьких экранов */
    .menu > div > ul {
        top: 70px;
        left: 15px;
        right: 15px;
    }
    
    .menu > div > ul > li > a {
        font-size: 20px;
        padding: 12px 0;
    }
    
    .hamburger {
        height: 30px;
        width: 35px;
        padding: 0.5rem;
    }
    
    .hamburger > div {
        height: 2px;
    }
    
    .hamburger > div::before,
    .hamburger > div::after {
        height: 2px;
    }
}