@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto+Slab:wght@100..900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}
body {
    height: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Roboto Slab", serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.menu1 {
    position: fixed;
    top: 0;
    
    left: 0;
    width: 100%;
    height: 120px; /* высота под ваше меню */
    background: rgb(255, 255, 255);
    z-index: 999; /* меньше, чем у .main_menu */
}
/* Header Navigation */
.main_menu {
    position: fixed;
    top: 0;
    z-index: 1000;
    left: 17%;
    margin-top: 30px;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    
    border-radius: 15px;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 66%;
   
    transition: all 0.3s ease;
}
.main_menu:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.main_menu header {
    color: #000000;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}
.main_menu header:hover {
    transform: scale(1.05);
    color: #7409d8;
}
.categories ul {
    display: flex;
    gap: 30px;
    list-style: none;
}
.categories li {
    color: #000000;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}
.categories li::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #7409d8;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.categories li:hover {
    background: rgba(116, 9, 216, 0.1);
    color: #7409d8;
}
.categories li:hover::after {
    width: 80%;
}
.rent .button h1 {
    font-size: 1.1rem;
    margin: 0;
    padding: 12px 24px;
    background: linear-gradient(135deg, #7409d8, #9d4edd);
    color: #fff;
    border-radius: 8px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(116, 9, 216, 0.3);
    position: relative;
    overflow: hidden;
}
.rent .button h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}
.rent .button h1:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(116, 9, 216, 0.4);
}
.rent .button h1:hover::before {
    left: 100%;
}
/* Main Content */
.main_information {
    display: flex;
    justify-content: center;
    margin-top: 150px;
}
.main_text {
    width: 66%;
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(117, 37, 207, 0.466);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 1s ease-out;
}
.main_text h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.main_text p {
    font-size: 1.4rem;
    color: #333;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}
/* Section Title */
.desc {
    margin-top: 100px;
    display: flex;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #000;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out;
}
/* Why Us Section */
.whyus {
    margin-top: 60px;
    width: 80%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}
.why1, .why2, .why3 {
    background: rgba(233, 233, 233, 0.9);
    border: 3px solid rgb(74, 10, 148);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}
.why1::before, .why2::before, .why3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7409d8, #9d4edd, #c77dff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.why1:hover, .why2:hover, .why3:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(74, 10, 148, 0.2);
    border-color: #7409d8;
}
.why1:hover::before, .why2:hover::before, .why3:hover::before {
    transform: scaleX(1);
}
.why1 h1, .why2 h1, .why3 h1 {
    font-size: 1.8rem;
    color: #000;
    margin-bottom: 20px;
    font-weight: bold;
}
.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #7409d8, #9d4edd);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(116, 9, 216, 0.3);
    transition: all 0.3s ease;
}
.feature-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(116, 9, 216, 0.4);
}
.why1 p, .why2 p, .why3 p {
    font-size: 1.25rem;
    color: #333;
    line-height: 1.6;
    margin-top: 15px;
}
.why3 p mark {
    background: linear-gradient(135deg, #7409d8, #9d4edd);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}
/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Scroll animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.firstorder {
    margin: 80px auto;
    width: 66%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #7f2acf;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 12px 25px rgba(116, 9, 216, 0.2);
    justify-self: center;
}
ul {
  list-style: none;
  padding: 0;
}
.makeorder {
    margin-top: 12%;
    font-size: 1.2rem;
    color: #333;
    line-height: 1.6;
    text-align: center;
}
.example-2 {
  margin: 80px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.example-2 .icon-content {
  margin: 0 10px;
  position: relative;
}
.example-2 .icon-content .tooltip {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  font-size: 20px;
  transition: all 0.3s ease;
}

.example-2 .icon-content:hover .tooltip {
  opacity: 1;
  visibility: visible;
  top: -80px;
}
.example-2 .icon-content a {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  color: #4d4d4d;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}
.example-2 .icon-content a:hover {
  box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
}
.example-2 .icon-content a svg {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
}
.example-2 .icon-content a:hover {
  color: white;
}
.example-2 .icon-content a .filled {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #000;
  transition: all 0.3s ease-in-out;
}
.example-2 .icon-content a:hover .filled {
  height: 100%;
}
footer {
    margin-top: auto;
    
    padding: 20px 0;
    text-align: center;
    align-items: center;
    background-color: #b8b8b856;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 25px rgb(101, 17, 179);
    display: flex;
    gap: 120px;
}
.footer h1 {
    font-size: 1.5rem;
    color: #333;
    line-height: 1.6;
    font-family: "Roboto Slab", serif;
    margin-top: 15px;
    text-align: left;
}

.firstblock {
    
    background: linear-gradient(90deg, #6d08ca, #8a3ec9, #ad61e7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; 
    color: transparent;
    width: 26%;
    font-weight: bold;
    font-size: 350%;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
   

}
.firstblock a {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.lang {
    position: absolute;
    top: 20px;
    z-index: 1000;
    position: fixed;
    display: inline;
    gap: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
}
.lang ul {
    list-style: inside !important;
    padding-left: 10px; /* чтобы кружки были видны */
    font-size: 100%;
}
.lang ul li {
   
    margin-right: 15px;
    cursor: pointer;
}
.lang ul li:hover {
    color: #9320ff;
}   
.secondblock {
    width: 40%;
    font-size: 1.3rem;
    color: #333;
    line-height: 1.6;
    font-family: "Roboto Slab", serif;
   
    
    justify-self: center;
}
.secondblock ul {
    margin-left: 15%;
    gap: 40px;
    display: flex;
    list-style: none;
    padding: 0;
}
.secondblock li {
    font-weight: bold;
    font-family: "Montserrat", sans-serif;  
}
.secondblock li:hover {
    color: #9320ff;
    cursor: pointer;
}
.thirdblock {
    width: 26%;
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    font-family: "Roboto Slab", serif;
    margin-top: 15px;
    
    
}
.thirdblock h2 {
    font-weight: bold;
    font-family: "Montserrat", sans-serif;
}
.projects {
  
    margin-top: 60px;
    text-align: center;
    width: 66%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-left: auto;
    margin-right: auto;
    
}
.projects ul {
    list-style: circle;
    justify-self: center;
    text-align: center;
}

.aboutme {
    margin: 80px auto;
    width: 66%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #7f2acf;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 12px 25px rgba(116, 9, 216, 0.2);
    justify-self: center;
}
.aboutme p {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-top: 15px;
    text-align: left;
}
.example-2 .icon-content a[data-social="linkedin"] .filled,
.example-2 .icon-content a[data-social="linkedin"] ~ .tooltip {
  background-color: #0274b3;
}

.example-2 .icon-content a[data-social="github"] .filled,
.example-2 .icon-content a[data-social="github"] ~ .tooltip {
  background-color: #095e28;
}
.example-2 .icon-content a[data-social="instagram"] .filled,
.example-2 .icon-content a[data-social="instagram"] ~ .tooltip {
  background: linear-gradient(
    45deg,
    #405ce681,
    #5a51db81,
    #b43ab485,
    #c135b380,
    #e1306b80,
    #fd1f1f
  );
}
.example-2 .icon-content a[data-social="youtube"] .filled,
.example-2 .icon-content a[data-social="youtube"] ~ .tooltip {
  background-color: #6c05f3;
}

/* === МЕДИА ЗАПРОСЫ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ === */

/* Для планшетов и средних экранов (768px и меньше) */
@media (max-width: 768px) {
    .main_menu {
        width: 90%;
        left: 5%;
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
        margin-top: 20px;
        height: auto;
    }
    
    .main_menu header {
        font-size: 1.5rem;
    }
    
    .categories ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .categories li {
        font-size: 1rem;
        padding: 6px 10px;
    }
    
    .rent .button h1 {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .main_information {
        margin-top: 200px;
    }
    
    .main_text {
        width: 90%;
        padding: 40px 20px;
    }
    
    .main_text h1 {
        font-size: 2.2rem;
    }
    
    .main_text p {
        font-size: 1.2rem;
    }
    
    .desc {
        font-size: 2rem;
        margin-top: 60px;
        padding: 0 20px;
    }
    
    .whyus {
        width: 95%;
        gap: 30px;
        margin-top: 40px;
    }
    
    .why1, .why2, .why3 {
        padding: 30px 20px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .firstorder {
        width: 90%;
        margin: 60px auto;
        padding: 25px 15px;
    }
    
    .aboutme {
        width: 90%;
        margin: 60px auto;
        padding: 25px 15px;
    }
    
    .aboutme p {
        font-size: 1.1rem;
    }
    
    .projects {
        width: 90%;
        margin-top: 70px;
        padding: 0 20px;
    }

    .makeorder {
        margin-top: 230px;
        padding: 0 20px;
        font-size: 1.1rem;
    }

    .example-2 {
        margin: 60px auto;
        flex-wrap: wrap;
        gap: 20px;
    }

    .example-2 .icon-content {
        margin: 10px;
    }

    .example-2 .icon-content a {
        width: 70px;
        height: 70px;
    }

    .example-2 .icon-content a svg {
        width: 35px;
        height: 35px;
    }

    .example-2 .icon-content .tooltip {
        font-size: 16px;
        white-space: nowrap;
    }

    footer {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
        text-align: center;
    }

    .firstblock {
        width: 100%;
        font-size: 250%;
        padding: 20px 10px;
    }

    .secondblock {
        width: 100%;
    }

    .secondblock ul {
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .thirdblock {
        width: 100%;
        font-size: 0.9rem;
        margin-top: 0;
    }

    .lang {
		top: 15px;
        left: 15px;
		z-index: 1002;
    }

    .lang ul {
        font-size: 90%;
    }

    .lang ul li {
        margin-right: 10px;
    }
	.findadev {
		margin-top: 65px;
	}
}

/* Для мобильных телефонов (480px и меньше) */
@media (max-width: 480px) {
    .main_menu {
        width: 95%;
        left: 2.5%;
        padding: 12px 15px;
        margin-top: 15px;
    }
    
    .main_menu header {
        font-size: 1.3rem;
    }
    
    .categories ul {
        gap: 10px;
    }
    
    .categories li {
        font-size: 0.9rem;
        padding: 5px 8px;
    }
    
    .rent .button h1 {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .main_information {
        margin-top: 180px;
    }
    
    .main_text {
        width: 95%;
        padding: 30px 15px;
    }
    
    .main_text h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .main_text p {
        font-size: 1rem;
    }
    
    .desc {
        font-size: 1.6rem;
        margin-top: 50px;
    }
    
    .whyus {
        width: 100%;
        gap: 20px;
        margin-top: 30px;
        padding: 0 10px;
    }
    
    .why1, .why2, .why3 {
        padding: 25px 15px;
        min-height: auto;
    }
    
    .why1 h1, .why2 h1, .why3 h1 {
        font-size: 1.4rem;
    }
    
    .why1 p, .why2 p, .why3 p {
        font-size: 1rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 15px auto;
    }
    
    .firstorder {
        width: 95%;
        margin: 50px auto;
        padding: 20px 10px;
    }

    .firstorder h1 {
        font-size: 1.3rem;
    }

    .firstorder p {
        font-size: 1rem;
    }
    
    .aboutme {
        width: 95%;
        margin: 50px auto;
        padding: 20px 10px;
    }
    
    .aboutme p {
        font-size: 1rem;
    }
    
    .projects {
        width: 95%;
        margin-top: 30px;
        padding: 0 10px;
    }

    .makeorder {
        margin-top: 180px;
        font-size: 1rem;
    }

    .makeorder h1 {
        font-size: 1.3rem;
    }

    .example-2 {
        margin: 40px auto;
        gap: 15px;
    }

    .example-2 .icon-content a {
        width: 60px;
        height: 60px;
    }

    .example-2 .icon-content a svg {
        width: 30px;
        height: 30px;
    }

    .example-2 .icon-content .tooltip {
        font-size: 14px;
        padding: 4px 8px;
        white-space: nowrap;
        max-width: 200px;
    }

    footer {
        gap: 20px;
        padding: 25px 15px;
    }

    .firstblock {
        font-size: 200%;
        padding: 15px 5px;
    }

    .secondblock ul {
        gap: 15px;
        font-size: 0.9rem;
    }

    .thirdblock {
        font-size: 0.8rem;
    }

    .thirdblock h2 {
        font-size: 1rem;
    }

    .lang {
        top: 10px;
        left: 10px;
    }

    .lang ul {
        font-size: 80%;
    }

    .lang ul li {
        margin-right: 8px;
    }

    /* Специальные стили для очень узких экранов */
    .menu1 {
        height: 160px;
    }
}

/* Для очень маленьких экранов (360px и меньше) */
@media (max-width: 360px) {
    .main_menu {
        width: 98%;
        left: 1%;
        padding: 10px 12px;
    }
    
    .main_menu header {
        font-size: 1.2rem;
    }
    
    .categories li {
        font-size: 0.8rem;
        padding: 4px 6px;
    }
    
    .rent .button h1 {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .main_text h1 {
        font-size: 1.5rem;
    }
    
    .main_text p {
        font-size: 0.9rem;
    }
    
    .desc {
        font-size: 1.4rem;
    }
    
    .why1 h1, .why2 h1, .why3 h1 {
        font-size: 1.2rem;
    }
    
    .why1 p, .why2 p, .why3 p {
        font-size: 0.9rem;
    }

    .example-2 .icon-content a {
        width: 55px;
        height: 55px;
    }

    .example-2 .icon-content a svg {
        width: 25px;
        height: 25px;
    }

    .firstblock {
        font-size: 180%;
    }

    .secondblock ul {
        font-size: 0.8rem;
    }

    .thirdblock {
        font-size: 0.7rem;
    }

    .menu1 {
        height: 180px;
    }

    .main_information {
        margin-top: 200px;
    }

    .makeorder {
        margin-top: 180px;
    }
}

/* Исправления для горизонтальной ориентации мобильных устройств */
@media (max-height: 500px) and (orientation: landscape) {
    .main_menu {
        margin-top: 10px;
        padding: 8px 15px;
    }
    
    .main_information {
        margin-top: 120px;
    }
    
    .makeorder {
        margin-top: 120px;
    }
    
    .desc {
        margin-top: 40px;
    }
    
    .whyus {
        margin-top: 20px;
    }
    
    .menu1 {
        height: 80px;
    }
}