body {
    background: transparent;
    position: relative;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

a {
    cursor: default;
}

main{
    max-width: 1200px;
    margin: 0 auto;
}

img {
    pointer-events: none;
}

.portfolio-header {
    text-align: center;
    margin: 140px 30px 50px;
    position: relative;
    z-index: 10;
}

.portfolio-header h1 {
    font-size: 3rem;
    color: #2d3748;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea, #c95252);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700;
}

.portfolio-header p {
    font-size: 1.3rem;
    color: #4a5568;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Стили для панели навигации*/

.panel_navigation{
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #ffc3c3;
    box-shadow: 0px 8px 16px rgba(49, 49, 49, 0.253);
    user-select: none;
    width: 100%;
}

.all_object {
    padding: 22px 20px 5px 20px;
    max-width: 1300px;
    margin: 0 auto;    
}

.for_mobile_info {
    display: none;
    font-size: 22px;
    position: absolute;
    bottom: 12px;
    margin: 10px;
}

.logo_img {
    width: 110px; 
    filter: grayscale(10%) opacity(0.8);
    transition: all 0.3s ease-in-out;
}

.logo:hover .logo_img {
    filter: grayscale(0%) opacity(1);
}

.logo {
    display: inline-block;
    cursor: pointer;
}

.yslugi {
    position: relative;
    bottom: 10px;
    display: inline-block;
    margin-left: 33px;
    margin-right: 25px;
}

.dropbtn2 {
    font-weight: bold;
    font-size: 18px;
    color: #333333a1;
    position: relative;
    bottom: 10px;
    padding: 0 22px;
    border-left: 1px solid #616161;
    text-decoration: none;
    display: inline-block;
}

.links, .contacts {
    display: inline-block;
}

.contacts {
    float: right;
    text-align: right;
}

.messengers img {
    border-radius: 10px;
    width: 28px;
    height: 28px;
    cursor: pointer !important;
}

.messengers {
    position: static;
    display: block;
    text-align: right; 
}

.messengers div {
    display: inline-block;
    cursor: pointer;  
}

.messengers a {
    cursor: pointer;  
}

.mail {
    font-size: 17.5px;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    margin: 0;
    user-select: text;
}

.dropbtn2:hover {
    color: black;
}

.dropbtn2.active {
    color: black;
    font-weight: 700;
}

.dropbtn2.active::after {
    content: '';
    position: absolute;
    left: 25px;
    right: 25px;
    bottom: -2px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #c95252);
    transform: scaleX(1);
    transition: transform 0.3s ease-in-out;
    transform-origin: center;
}

.dropbtn2::after {
    content: '';
    position: absolute;
    left: 25px;
    right: 25px;
    bottom: -2px;
    height: 2px;
    background-color: #333;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
    transform-origin: center;
}

.dropbtn2:hover::after {
    transform: scaleX(1);
}

/* Мобильное выпадающее меню */

.mobile-dropdown {
    display: none;
    position: absolute;
    top: 60px;
    left: 10px;
    width: 270px;
    background: linear-gradient(45deg, rgb(253, 211, 211), rgb(211, 228, 253));
    border-radius: 10px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.432);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.mobile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-dropdown-content {
    padding: 10px 0;
}

.mobile-dropdown-section {
    padding: 0 20px;
}

.mobile-dropdown-title {
    font-weight: bold;
    color: #333;
    margin: 10px 0 5px 0;
    font-size: 16px;
}

.mobile-dropdown-section a {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    margin: 2px 0;
    transition: background-color 0.2s ease;
}

.mobile-dropdown-section a:hover {
    background-color: #f1f1f16e;
}

.mobile-dropdown-section:not(:last-child) {
    border-bottom: 3px solid #e1e1e1;
    margin-bottom: 5px;
    padding-bottom: 5px;
}

@media (max-width: 865px) {
    .mobile-dropdown {
        display: block;
    }
    
    .directions > div {
        animation-delay: calc(var(--index, 0) * 0.1s);
    }
    
    .rabota-item {
        animation-delay: calc(var(--index, 0) * 0.15s);
    }
}

/* Стили для выплывающих списков*/

.dropbtn {
    font-weight: bold;
    font-size: 18px;
    color: #333333a1;
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.dropdown-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background: linear-gradient(45deg, rgb(253, 211, 211), rgb(211, 228, 253));
    border-radius: 10px;
    min-width: 220px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 13px;
}

.dropdown-content a {
    border-radius: 10px;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease;
}

.yslugi:hover .dropbtn{
    color: black;
}

.dropdown-content a:hover {
    background-color: #f1f1f144;
}

.yslugi:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropbtn::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background-color: #333;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
    transform-origin: center;
}

.yslugi:hover .dropbtn::after {
    transform: scaleX(1);
}

/* Стили для интерактивной базовой инфы */

.info_direction {
    background: linear-gradient(135deg, rgba(221, 238, 253, 0.95), rgba(255, 225, 225, 0.95));
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 50px;
    margin: 160px 30px 60px;
    max-width: 1100px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    transform: translateX(0);
    user-select: none;
    min-height: 400px;
}

.info_direction::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        transparent);
}

.info_direction h1 {
    font-size: 2.8rem;
    color: #2d3748;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #667eea, #c95252, #667eea);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 800;
    position: absolute;
    top: 35px;
    left: 50px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.info_direction p {
    position: relative;
    top: 25px;
    font-size: 1.15rem;
    line-height: 1.7;
}

.info_direction img {
    width: 480px;
    height: 320px;
    border-radius: 18px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.25),
        0 5px 15px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    margin-left: 50px;
    transition: all 0.4s ease;
    filter: brightness(1.05) contrast(1.1);
}

.next, .back {
    position: absolute;
    bottom: 40px;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    backdrop-filter: blur(10px);
    color: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.next:hover, .back:hover {
    transform: scale(1.15);
    color: #2d3748;
}

.next:active, .back:active {
    transform: scale(1.05);
}

.next {
    left: 10%;
}

.back {
    left: 5%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 50px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
    transform: translateX(30px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.slide.leaving {
    opacity: 0;
    transform: translateX(-30px);
}

.slide-content {
    flex: 1;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.slide-progress {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 15;
}

.slide h1 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #667eea, #c95252, #667eea);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.slide-description {
    font-size: 1.25rem;
    color: #4a5568;
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
    max-width: 450px;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.progress-dot:hover {
    transform: scale(1.3);
    background: rgba(102, 126, 234, 0.6);
}

.progress-dot.active {
    background: linear-gradient(135deg, #667eea, #c95252);
    transform: scale(1.4);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.slide-description {
    font-size: 1.2rem;
    color: #4a5568;
    margin: 15px 0 0 0;
    line-height: 1.6;
    max-width: 450px;
    transition: all 0.4s ease;
    font-weight: 400;
}

.slide-progress {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 15;
}

.info_direction img {
    transition: opacity 0.3s ease;
    opacity: 1;
}

/* Стили для блока направлений услуг */

.directions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    justify-items: center;
}

.directions > div {
    background: transparent;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    max-width: 300px; 
    height: 290px;
}

.directions > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transition: left 0.6s ease;
}

.directions > div:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.directions > div:hover::before {
    left: 100%;
}

.directions img {
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.directions > div:hover img {
    transform: scale(1.1) rotate(5deg);
}

.directions h2 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 25px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea, #c95252);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.directions p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

/* Стили для блока "О компании" */

.o_nas {
    background: linear-gradient(135deg, rgba(221, 238, 253, 0.95), rgba(255, 225, 225, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px 40px;
    margin: 40px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 10;
}

.o_nas h1 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #667eea, #c95252);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700;
    text-align: center;
}

.o_nas p {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.o_nas ul {
    margin: 20px 0;
    padding-left: 20px;
}

.o_nas li {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 10px;
    position: relative;
}

.o_nas li::before {
    content: "•";
    color: #c95252;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.o_nas strong {
    color: #2d3748;
    font-weight: 600;
}

/* Стили для футера */

.footer {
    background: linear-gradient(135deg, #1a202c, #2d3748);
    color: #fff;
    position: relative;
    z-index: 10;
    width: 100%;
    left: 0;
    right: 0; 
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #c95252);
    border-radius: 2px;
}

.footer-logo img {
    width: 120px;
    height: auto;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.footer-description {
    color: #cbd5e0;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-link img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: #667eea;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 10px;
}

.footer-links a:hover::before {
    width: 100%;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e0;
    text-decoration: none;
}

#contact-item1:hover {
    transform: translateY(-1px);
}

.contact-icon {
    font-size: 1.3rem;
    width: 25px;
    border-radius: 5px;
    text-align: center;
}

.contact-text {
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding: 25px 20px;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: #a0aec0;
    margin: 0;
    font-size: 0.9rem;
}

/* Стили для формы обратной связи */

.feedback-form {
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px 40px;
    margin: 10px 30px;
    position: relative;
    z-index: 10;
}

.form-container {
    max-width: 550px;
    margin: 0 auto;
}

.form-title {
    text-align: center;
    margin-bottom: 40px;
}

.title-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea, #c95252);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.form-title h3 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea, #c95252);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700;
}

.form-title p {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.feedback-form-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.form-left,
.form-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-input,
.form-textarea {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-agreement {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 10px 0;
}

.agreement-item {
    display: flex;
    align-items: flex-start;
}

.agreement-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.agreement-link:hover {
    color: #c95252;
}

.form-submit {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
}

.submit-button {
    background: linear-gradient(135deg, #667eea, #c95252);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.form-message {
    grid-column: 1 / -1;
    margin: 20px 0;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: slideDown 0.3s ease-out;
}

.form-message.success {
    background: linear-gradient(135deg, rgba(212, 237, 218, 0.9), rgba(195, 230, 203, 0.9));
    color: #155724;
    border-color: #c3e6cb;
}

.form-message.error {
    background: linear-gradient(135deg, rgba(248, 215, 218, 0.9), rgba(245, 198, 203, 0.9));
    color: #721c24;
    border-color: #f5c6cb;
}

/* Анимация появления сообщения */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для кнопки загрузки */
.button-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.spinner {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Стили для блока "Наши работы" */

.nashi_raboti {
    margin: 60px 30px;
    position: relative;
    top: 30px;
    z-index: 10;
}

.nashi_raboti-header {
    text-align: center;
    margin-bottom: 50px;
}

.nashi_raboti-header h2 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea, #c95252);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700;
}

.nashi_raboti-header p {
    font-size: 1.2rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.raboti-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-radius: 15px;
    overflow: hidden;
}

.rabota-item {
    position: relative;
    height: 500px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    margin: 6px;
    border-radius: 20px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rabota-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.rabota-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1);
    filter: brightness(0.7);
}

.rabota-item:hover .rabota-image img {
    transform: scale(1.1);
    filter: brightness(0.6);
}

.rabota-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: rgb(255, 255, 255);
    padding: 40px 30px 30px;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 100;
}

.rabota-item:hover .rabota-content {
    transform: translateY(0);
}

.rabota-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.rabota-content p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Дополнительные эффекты для плавности */
.rabota-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.2) 100%);
    opacity: 0.7;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.rabota-item:hover::before {
    opacity: 0.9;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.3) 100%);
}

/* Адаптивность для сообщения формы */
@media (max-width: 865px) {
    .form-message {
        margin: 15px 0;
        padding: 15px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .form-message {
        margin: 10px 0;
        padding: 12px;
        font-size: 0.95rem;
    }
}

/* Адаптивность для блока "Наши работы" */

@media (max-width: 865px) {
    .nashi_raboti {
        margin: 40px 20px;
    }
    
    .nashi_raboti-header h2 {
        font-size: 2rem;
    }
    
    .nashi_raboti-header p {
        font-size: 1.1rem;
    }
    
    .raboti-grid {
        grid-template-columns: 1fr;
    }
    
    .rabota-item {
        height: 500px;
    }
    
    .rabota-content {
        transform: translateY(0);
    }
    
    .rabota-content h3 {
        font-size: 1.2rem;
    }
    
    .rabota-content p {
        font-size: 0.95rem;
    }
}

@media (min-width: 866px) and (max-width: 1024px) {
    .raboti-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .raboti-grid .rabota-item:last-child {
        grid-column: 1 / -1;
    }
}


/* Адаптивность */


/* Адаптивность для info_direction*/
@media (max-width: 1120px) {

    .info_direction h1 {
       font-size: 1.9rem; 
    }
    
    .info_direction img {
        width: 400px;
        height: 270px; 
    }  

    .info_direction p {
        position: relative;
        top: 15px;
    }

}

@media (max-width: 865px) {

    .info_direction {
        flex-direction: column;
        text-align: center;
        padding: 0 20px 40px 20px;
        margin: 100px 20px 40px;
    }

    .info_direction h1 {
        position: static;
        top: 0;
    }

    .info_direction img {
        margin-top: 20px;
        margin-left: 0;
        width: 300px;
        height: 190px;
    }
    
    .next, .back {
        position: absolute;
        top: 7%;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        z-index: 10;
    }

    .next {
        left: auto;
        right: 15px;
    }

    .back {
        left: 15px;
        right: auto;
    }

    .info_direction p {
        position: relative;
        top: -20px;
    }

    .slide-progress {
        margin: 4px;
        bottom: 5px !important;
    }
    
    .progress-dot {
        width: 6px !important;
        height: 6px !important;
    }
    
    .slide-description {
        font-size: 1rem;
        max-width: 100%;
    }
}

/* Адаптивность для экранов меньше 750px */
@media (max-width: 750px) {
    .info_direction {
        padding: 0 15px 30px 15px;
        margin: 80px 15px 30px;
        min-height: 350px;
    }

    .info_direction h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .info_direction img {
        width: 250px;
        height: 160px;
        margin-top: 15px;
    }

    .slide {
        padding: 30px 15px;
        gap: 30px;
    }

    .slide h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .slide-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .next, .back {
        top: 5%;
        width: 25px;
        height: 25px;
        font-size: 1.2rem;
    }

    .next {
        right: 10px;
    }

    .back {
        left: 10px;
    }

    .slide-progress {
        bottom: 10px !important;
    }

    .progress-dot {
        width: 5px !important;
        height: 5px !important;
    }
    
    /* Адаптивность для rabota-item на экранах меньше 750px */
    .rabota-item {
        margin: 4px;
        border-radius: 15px;
    }
    
    .rabota-content {
        padding: 30px 20px 25px;
    }
    
    .rabota-content h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .rabota-content p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .rabota-item::before {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.3) 100%);
    }
    
    .rabota-item:hover::before {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.4) 100%);
    }
}

/* Адаптивность для экранов меньше 480px */
@media (max-width: 480px) {
    .info_direction {
        padding: 0 10px 25px 10px;
        margin: 70px 10px 25px;
        min-height: 300px;
    }

    .info_direction h1 {
        font-size: 1.4rem; /* уменьшен с 1.6rem */
        margin-bottom: 15px;
    }
    
    .info_direction p {
        font-size: 1.0rem; /* добавлен новый стиль */
    }

    .info_direction img {
        width: 200px;
        height: 130px;
        margin-top: 10px;
    }

    .slide {
        padding: 20px 10px;
        gap: 20px;
    }

    .slide h1 {
        font-size: 1.2rem; /* уменьшен с 1.4rem */
        margin-bottom: 15px;
    }

    .slide-description {
        font-size: 0.8rem; /* уменьшен с 0.85rem */
    }

    .next, .back {
        top: 3%;
        width: 20px;
        height: 20px;
        font-size: 1rem;
    }

    .slide-progress {
        gap: 8px;
        bottom: 5px !important;
    }

    .progress-dot {
        width: 4px !important;
        height: 4px !important;
    }
    
    /* Адаптивность для rabota-item на экранах меньше 480px */
    .rabota-item {
        margin: 2px;
        border-radius: 12px;
        height: 450px;
    }
    
    .rabota-content {
        padding: 25px 15px 20px;
    }
    
    .rabota-content h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .rabota-content p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .rabota-item::before {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.4) 100%);
    }
    
    .rabota-item:hover::before {
        background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.5) 100%);
    }
}

/*Адаптивность для panel_navigation*/

@media (max-width: 1120px) {

    .logo_img {
        width: 79px; 
    }

    .dropbtn2, .logo_type {
        position: relative;
        bottom: 6px;
        font-size: 16px;     
    }

    .dropbtn2 {
        padding: 0 14px;
    }
    
    .dropbtn {
        position: relative;
        bottom: -4px;
        font-size: 16px;        
    }

    .messengers img {
        width: 22px;
        height: 22px;
    }

    .mail {
        font-size: 16px;
    }

    .yslugi {
        margin-left: 20px;
        margin-right: 15px;
    }

}

@media (max-width: 865px) {

    .panel_navigation {
        height: 70px;
    }

    .dropbtn, .links {
        display: none;        
    }   
    
    .for_mobile_info {
        display: block;
    }

    .logo {
        margin-left: 50px;
    }

    .logo_img {
        width: 89px; 
    }    

}

/* Адаптивность для блока направлений услуг*/

@media (max-width: 865px) {
    .directions {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 40px 20px;
        justify-items: center;
    }
    
    .directions > div {
        max-width: none; 
        height: auto; 
        min-height: 250px;
        padding: 30px 20px;
    }
    
    .directions h2 {
        font-size: 1.3rem;
    }

    .directions > div:hover {
        transform: none;
        box-shadow: none;
    }
}

@media (min-width: 865px) and (max-width: 1024px) {
    .directions {
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
    }
    
    .directions > div {
        max-width: 320px; 
    }

}

@media (min-width: 1400px) {
    .directions {
        justify-content: center;
    }
}

/* Адаптивность для блока "О компании" */

@media (max-width: 865px) {
    .o_nas {
        padding: 30px 20px;
        margin: 30px 20px;
    }
    
    .o_nas h1 {
        font-size: 2rem;
    }
    
    .o_nas p,
    .o_nas li {
        font-size: 1rem;
    }
}

/* Адаптивность для формы */
@media (max-width: 865px) {
    .feedback-form {
        padding: 30px 20px;
        margin: 30px 20px;
    }
    
    .form-title h3 {
        font-size: 1.5rem;
    }
    
    .form-title p {
        font-size: 1rem;
    }
    
    .feedback-form-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .title-icon {
        width: 60px;
        height: 60px;
    }
    
    .title-icon svg {
        width: 30px;
        height: 30px;
    }

    .contacts{
        position: relative;
        bottom: 7px;
    }
}

@media (max-width: 480px) {
    .form-agreement {
        gap: 12px;
    }
    
    .checkbox-label {
        font-size: 0.9rem;
    }
    
    .submit-button {
        width: 100%;
        padding: 15px 20px;
    }
}

@media (max-width: 768px) {

    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    
    .footer-content {
        padding: 30px 15px 20px;
    }
}
