* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #1a1a1a;
    color: #fff;
    line-height: 1.6;
}

/* Шапка */
header {
    position: fixed;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 100;
}
nav a {
    margin-left: 30px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}
nav a:hover {
    color: #00ddeb;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px; /* расстояние между картинкой и текстом */
    /*font-size: 24px;*/
    font-weight: 500;
    font-weight: bold;
  }

.logo img {
    height: 60px; /* размер картинки, можно изменить */
  }
/* Главный экран */
.hero {
    height: 100vh;
    background: linear-gradient(45deg, #1a1a1a, #007bff, #00ddeb);
    background-size: 200% 200%;
    animation: gradientBG 10s ease infinite;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero h1 {
    font-size: 60px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.hero-logo {
    height: 400px; /* уменьши/увеличь по желанию */
    margin-bottom: 30px; /* отступ под логотипом */
    max-width: 80%; /* если вдруг картинка широкая */
    object-fit: contain;
}


.hero button {
    margin-top: 20px;
    padding: 15px 40px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #00ddeb;
    color: #fff;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0, 221, 235, 0.5);
}
.hero button:hover {
    background: #00ddeb;
    box-shadow: 0 0 25px rgba(0, 221, 235, 1);
}

/* О компании */
.about {
    padding: 100px 50px;
    text-align: center;
}
.about h2 {
    font-size: 40px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 1s forwards;
}
.about p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 18px;
    color: #ccc;
    opacity: 0;
    animation: fadeIn 1s 0.5s forwards;
}
@keyframes fadeIn {
    to { opacity: 1; }
}

/* Услуги */
.services {
    padding: 100px 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 221, 235, 0.3);
}
.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}
.service-card h3 {
    margin: 15px 0;
    font-size: 24px;
    color: #00ddeb;
}
.service-card p {
    color: #ccc;
}

/* Контакты */
.contact {
    padding: 100px 50px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 50px;
}
.contact-info, .contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form {
    flex: 1 1 600px;
    max-width: 700px;
}

.contact-info {
    flex: 1 1 400px;
    max-width: 400px;
    text-align: center; /* Центрирует весь текст */
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center; /* Центрирует вложенные элементы по горизонтали */
}

.contact-info h2, .contact-form h2 {
    font-size: 28px;
    margin-bottom: 20px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    transition: border-color 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: #00ddeb;
    outline: none;
}
.contact-form button {
    width: 100%;
    padding: 12px;
    background: #00ddeb;
    border: none;
    border-radius: 8px;
    color: #1a1a1a;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.contact-form button:hover {
    background: #007bff;
}

.floating-label {
    position: relative;
    margin-bottom: 1.5rem;
}

.floating-label input,
.floating-label textarea {
    width: 100%;
    padding: 14px 12px 14px;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.floating-label input:focus,
.floating-label textarea:focus {
    border-color: #a9c6c8;
    background: rgba(255, 255, 255, 0.15);
}

.floating-label label {
    position: absolute;
    top: 16px;
    left: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.25s ease;
    user-select: none;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label textarea:focus + label,
.floating-label textarea:not(:placeholder-shown) + label {
    top: -8px;
    left: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #a9c6c8;
    background: rgba(26, 26, 26, 0.9);
    padding: 0 6px;
    border-radius: 4px;
}
/* Errors*/

.error-message {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 4px;
    display: none;
    background: #330000cc;
    padding: 4px 8px;
    border-radius: 5px;
    position: absolute;
    top: 100%;
    left: 0;
    white-space: nowrap;
    z-index: 10;
  }
  .floating-label {
    position: relative; /* чтобы error позиционировался относительно поля */
  }
  .error-message.show {
    display: block;
  }
  
  .input-error {
    border-color: #ff6b6b !important;
    background-color: #33000033;
    outline: none;
  }
  


/* Кнопка */
.contact-form button {
    width: 100%;
    padding: 12px;
    background: #00ddeb;
    border: none;
    border-radius: 8px;
    color: #1a1a1a;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    font-family: 'Poppins', sans-serif;
}

.contact-form button:hover {
    background: #007bff;
}


/* Кнопка */
.contact-form button {
    width: 100%;
    padding: 12px;
    background: #00ddeb;
    border: none;
    border-radius: 8px;
    color: #1a1a1a;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    font-family: 'Poppins', sans-serif;
}

.contact-form button:hover {
    background: #007bff;
}


/* Подвал */
footer {
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    color: #ccc;
}