@import url(//fonts.googleapis.com/css?family=PT+Sans:300,400,700);

/* Сбрасываем отступы и отключаем горизонтальную прокрутку, если она не нужна */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: "PT Sans", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

a:visited {
    color: inherit;
}

i.fa {
    margin-right: 5px;
}

header {
    background-color: #64b44f4d;
}

#about {
    font-size: 1.2rem;
}

/* Пример уменьшения размеров изображения на маленьких экранах */
@media only screen and (max-width: 600px) {
    .features-img {
        width: 300px;
    }
}

@media only screen and (max-width: 450px) {
    .features-img {
        width: 200px;
    }
}

@media screen and (max-width: 768px) {
    [data-aos-delay] {
        transition-delay: 0 !important;
    }
}

#hero img {
    max-width: 100% !important;
    max-height: 100% !important;
}

/* ----------------------
   Modern Navigation Styles
------------------------- */
.modern-nav {
    background-color: #f8f9fa;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    font-family: 'Montserrat', sans-serif;
}

.brand-modern {
    font-size: 1.5rem;
    color: #566a7f !important;
    transition: all 0.3s ease;
}

.brand-modern:hover {
    color: #7c8fa3 !important;
    transform: translateY(-2px);
}

.brand-modern i {
    margin-right: 0.5rem;
    color: #566a7f;
}

.modern-nav-items {
    gap: 1.5rem;
}

.modern-nav .nav-link {
    color: #566a7f;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.modern-nav .nav-link:hover {
    color: #7c8fa3;
    background-color: rgba(86, 106, 127, 0.05);
    transform: translateY(-2px);
}

.modern-nav .nav-link.active {
    color: #566a7f;
    background-color: rgba(86, 106, 127, 0.1);
}

.modern-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #566a7f;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.modern-nav .nav-link:hover::after,
.modern-nav .nav-link.active::after {
    width: 80%;
}

.modern-dropdown {
    background-color: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.modern-dropdown .dropdown-item {
    color: #566a7f;
    padding: 0.7rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modern-dropdown .dropdown-item:hover {
    background-color: rgba(86, 106, 127, 0.05);
    color: #7c8fa3;
    transform: translateX(5px);
}

.modern-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    background-color: transparent;
}

.modern-toggler span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #566a7f;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.modern-toggler:not(.collapsed) span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.modern-toggler:not(.collapsed) span:nth-child(2) {
    opacity: 0;
}

.modern-toggler:not(.collapsed) span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 991px) {
    .modern-nav {
        padding: 1rem 0;
    }

    .navbar-collapse {
        background-color: #ffffff;
        border-radius: 12px;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        margin-top: 1rem;
    }

    .modern-nav-items {
        gap: 0.5rem;
    }

    .modern-dropdown {
        box-shadow: none;
        padding: 0;
        margin-top: 0;
    }
}

/* ------------------------------------------------
   # Modern Hero Section
-------------------------------------------------- */
#hero {
    width: 100%;
    /* Вместо жёсткой высоты используем min-height, чтобы блок мог растягиваться */
    min-height: 100vh;
    background: url("../img/image-background.png") center/cover no-repeat;
    position: relative;
    padding-top: 120px;
    z-index: 0;
}

#hero:before {
    content: "";
    background: linear-gradient(
        135deg,
        rgba(83, 37, 198, 0.9),
        rgba(147, 37, 198, 0.7)
    );
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
}

#hero h1 {
    margin: 0;
    font-size: 64px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

#hero h2 {
    color: rgba(255, 255, 255, 0.9);
    margin: 24px 0 0;
    font-size: 28px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease 0.2s forwards;
}

#hero .btn-get-started {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 16px;
    transition: all 0.4s ease;
    margin-top: 40px;
    color: #fff;
    background: #7C3AED;
    border: none;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

#hero .btn-get-started:hover {
    background: #6D28D9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn-get-started:hover .btn-arrow {
    transform: translateX(4px);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Дополнительные медиа-запросы для более мелких экранов */
@media (max-width: 768px) {
    #hero {
        text-align: center;
        padding-top: 80px;
    }

    #hero h1 {
        font-size: 40px;
    }

    #hero h2 {
        font-size: 24px;
        line-height: 1.4;
    }

    .hero-content {
        padding: 2rem;
    }
}

/* Ещё более узкие экраны */
@media (max-width: 576px) {
    #hero h1 {
        font-size: 32px;
    }

    #hero h2 {
        font-size: 20px;
    }

    .hero-content {
        padding: 1.5rem;
    }
}

/* Если экран по высоте слишком маленький, даём запас, чтобы не обрезало контент */
@media (max-height: 500px) {
    #hero {
        min-height: 130vh;
    }
}

.post-preview > a {
    color: #212529;
}

.post-preview > a:focus,
.post-preview > a:hover {
    text-decoration: none;
    color: #0085a1;
}

.post-preview > a > .post-title {
    font-size: 1.875rem;
    margin-top: 1.875rem;
    margin-bottom: 0.625rem;
}

.post-preview > a > .post-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 0.625rem;
}

.post-preview > .post-meta {
    font-size: 1.125rem;
    font-style: italic;
    margin-top: 0;
    color: #6c757d;
}

.post-preview > .post-meta > a {
    text-decoration: none;
}

@media (min-width: 992px) {
    .post-preview > a > .post-title {
        font-size: 2.25rem;
    }
}

#contact {
    background-color: #f8f9fa;
    font-family: 'Montserrat', sans-serif;
}

.contact-form {
    transition: all 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
}

.form-label {
    font-size: 24px;
    color: #495057;
    font-weight: 500;
}

.form-control {
    font-size: 18px;
    padding: 12px;
    border-radius: 12px;
    border-color: #dee2e6;
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, 0.25);
    border-color: #6c757d;
}

.input-group-text {
    border-radius: 12px 0 0 12px;
    border-color: #dee2e6;
}

.submit-btn {
    background-color: #6c757d;
    border: none;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #495057;
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .form-label {
        font-size: 20px;
    }
    
    .form-control {
        font-size: 16px;
    }
    
    .contact-form {
        padding: 1.5rem !important;
    }
}

#{{randomString}} {
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
}

.contact-decor {
    position: absolute;
    top: -75px;
    right: -75px;
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

.contact-wrapper {
    min-height: 600px;
}

.contact-info {
    padding: 40px;
}

.info-block {
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 15px;
    background: rgba(139, 133, 137, 0.05);
    transition: transform 0.3s ease;
}

.info-block:hover {
    transform: translateY(-5px);
}

.icon-wrapper {
    margin-bottom: 20px;
}

.contact-text {
    font-size: 24px;
    color: #4a4a4a;
    margin: 0;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 20px;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

.py-6 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .contact-wrapper {
        min-height: auto;
    }
    
    .contact-info {
        padding: 20px;
    }
    
    .map-container {
        margin-top: 30px;
    }
    
    .contact-text {
        font-size: 20px;
    }
    
    .info-block {
        margin-bottom: 20px;
    }
}

/* ------------------------------------------------
   # Modern Footer Styles
-------------------------------------------------- */
.footer {
    background-color: #2d3436;
    padding: 80px 0 30px;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    line-height: 1.6;
}

.footer-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.footer-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.footer svg {
    margin-right: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.footer h4 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #dfe6e9;
    border-radius: 2px;
}

.footer .info-content p {
    margin: 0;
    font-size: 24px;
}

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

.footer .footer-links ul li {
    padding: 12px 0;
}

.footer .footer-links ul a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 24px;
    position: relative;
    padding-left: 20px;
}

.footer .footer-links ul a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer .footer-links ul a:hover {
    color: #fff;
    padding-left: 25px;
}

.footer .footer-links ul a:hover::before {
    opacity: 1;
    transform: translateX(5px);
}

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

.footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    color: #fff;
}

.footer .copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 20px;
}

.footer .copyright strong {
    color: #fff;
}

@media (max-width: 768px) {
    .footer {
        font-size: 20px;
        padding: 50px 0 20px;
    }

    .footer h4 {
        font-size: 24px;
    }

    .footer .info-content p,
    .footer .footer-links ul a {
        font-size: 20px;
    }

    .footer-item {
        padding: 20px;
    }

    .footer .social-links a {
        width: 40px;
        height: 40px;
    }
}