* {
    font-family: Arial, sans-serif;
}

.ref_order a {
    text-decoration: none;
    color: white;
}


body {
    margin: 0;
    background-color: #f4f4f4;
}

.container { 
    text-align: center;
    justify-content: center;
}

header {
    min-height: 100px;
    background-color: rgb(60, 60, 60);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 10px;
    max-width: 1220px;
    margin: 25px auto;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

}

.topinfoleft, .address-right {
    color: white;
    padding: 10px 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1;
    margin: 0 20px;
    text-decoration: none;
}

.address-right a {
    color: white; /* Цвет текста ссылки */
    text-decoration: none; /* Убирает подчёркивание */
}

.photo {
    max-height: 150px; /* Увеличить максимальную высоту */
    max-width: 150px;  /* Увеличить максимальную ширину */
}

header div {
    margin: 0;
    text-align: center;
}

.section {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    max-width: 1200px;
    margin: 25px auto 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-section {
    padding: 50px 20px;
    border-radius: 10px;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    gap: 40px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-image {
    position: relative;
    flex: 1 1 45%;
    max-width: 500px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.experience-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.experience-badge span {
    font-size: 32px;
    font-weight: bold;
}

.about-text {
    flex: 1 1 50%;
    font-size: 20px;
    word-wrap: break-word;
}

.about-text h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #333;
}

.about-text p {
    font-size: 18px;
    color: #555;
    margin-bottom: 15px;
}

.founder {
    display: flex;
    justify-content: left;
    margin-top: 20px;
    flex-direction: column;
}

.founder img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.founder h3 {
    font-size: 1.2rem;
    margin: 0;
    color: #333;
}

.founder p {
    font-size: 1rem;
    color: #777;
    margin: 0;
}

li {
    padding: 5px;
}

ul {
    list-style: none;
    padding: 0; /* Убирает отступы слева */
    margin: 0; /* Убирает отступы сверху и снизу */
}

h1 {
    font-size: clamp(1rem, 5vw, 3rem);
}

.services-section {
    padding: 50px 20px;
    text-align: center;
}

.services-section h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 40px;
    color: #333;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.service-item img {
    width: 100%;
    height: auto;
    min-height: 200px;
    border-radius: 10px;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.service-item h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 20px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 1150px;
    align-items: center;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    gap: 20px;
    border-radius: 10px;
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 14px;
    color: #ccc;
    margin: 0;
}

.footer-links h3, .footer-contact h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 5px;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #00b894;
}

.footer-contact p {
    margin: 5px 0;
}

.footer-contact a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1rem;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 10px;
    font-size: 12px;
    color: #aaa;
}

video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    border-radius: 10px;
}

.content {
    position: relative;
    z-index: 1;
    color: white;
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 20% auto;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(117, 117, 117, 0.3);
    z-index: 0;
}

.photo_item { 
    width: 100%; max-height: 250px; display: block;
}

@media (max-width: 934px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .service-item {
        padding: 15px;
        font-size: 0.9rem;
    }

    .service-item img {
        min-height: 150px;
    }

    header {
        max-width: 85%;
    }

    .photo {
        max-height: 100px; /* Увеличить максимальную высоту */
        max-width: 100px;;  /* Увеличить максимальную ширину */
    }

    .about-container {
        justify-content: center;
    }

    .about-text {
        text-align: center;
    }
    
}

@media (max-width: 768px) {
    .services-section {
        padding: 30px 10px;
    }

    .services-section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        padding: 15px;
    }

    .about-container {
        justify-content: center;
    }

    header {
        font-size: 75%;
    }

    .about-text {
        text-align: center;
    }

    .founder {
        justify-content: center;
    }


}

@media (max-width: 1250px) {

header {
        max-width: 95%;
    }

.section{
    max-width: 90%;
}
}
