/* Базовые стили и переменные */
:root {
    --gray-1: #333;
    --gray-4: #BDBDBD;
    --white: #FFFFFF;
    --accent: #C30000;
    --light-gray: #f8f8f8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--gray-1);
    line-height: 1.6;
}

/* Шапка сайта */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0;
    width: 1440px;
    max-width: 100%;
}

.header-container {
    width: 90%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 1px;
    color: var(--gray-1);
    text-decoration: none;
}

.header-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin-left: 344px;
}

.header-menu-item {
    position: relative;
}

.header-menu-item a {
    color: var(--gray-1);
    font-size: 12px;
    font-weight: 400;
    line-height: 12px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 5px 0;
    display: inline-block;
    transition: color 0.3s ease;
}

.header-menu-item a::before,
.header-menu-item a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 0.971px;
    background: var(--gray-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.header-menu-item a::before {
    top: 0;
    left: 0;
    transform-origin: left;
}

.header-menu-item a::after {
    bottom: 0;
    left: 0;
    transform-origin: right;
}

.header-menu-item a:hover {
    color: #000;
}

.header-menu-item a:hover::before,
.header-menu-item a:hover::after {
    transform: scaleX(1);
}

/* Секция обратной связи */
.contact-section {
    width: 1440px;
    max-width: 100%;
    margin: 100px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    gap: 80px;
    align-items: baseline;
}

.contact-info {
    flex: 1;
    max-width: 400px;
}

.contact-info h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-details p {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--light-gray);
    border-radius: 50%;
    color: var(--gray-1);
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.whatsapp:hover {
    background: #25D366;
    color: white;
}

.telegram:hover {
    background: #0088cc;
    color: white;
}

.vkontakte:hover {
    background: #4C75A3;
    color: white;
}

.contact-subtitle {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--gray-1);
}

.contact-form-wrapper {
    flex: 1;
    max-width: 350px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group label {
    color: #8D8D8D;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: 0.56px;
}

.form-group label span {
    color: var(--accent);
}

.form-group input,
.form-group textarea {
    border: none;
    border-bottom: 1px solid #BDBDBD;
    padding: 12px 0;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    background: transparent;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--gray-1);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 14px;
}

.submit-btn {
    background: var(--gray-1);
    color: white;
    border: none;
    padding: 20px 0;
    font-size: 12px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 20px;
    width: 222px;
    height: 71px;
}

.submit-btn:hover {
    background: #555;
}

/* reCAPTCHA стили */
.g-recaptcha {
    margin: 20px 0;
    transform: scale(0.95);
    transform-origin: left;
}

/* Футер */
footer {
    width: 1440px;
    max-width: 100%;
    height: auto;
    flex-shrink: 0;
    margin: 0 auto;
    background-color: var(--white);
    display: flex;
    align-items: center;
    padding: 50px 136.45px;
    border-top: 1px solid #eee;
    margin-top: auto;
    flex-wrap: wrap;
}

.footer-logo {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 1px;
    color: var(--gray-1);
    margin-right: 50px;
}

.footer-content {
    display: flex;
    gap: 99px;
    margin-left: auto;
    flex-wrap: wrap;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column-title {
    color: var(--gray-4);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links a {
    color: var(--gray-4);
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0.42px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gray-1);
}

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

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--light-gray);
    border-radius: 50%;
    color: var(--gray-1);
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.footer-whatsapp:hover {
    background: #25D366;
    color: white;
}

.footer-telegram:hover {
    background: #0088cc;
    color: white;
}

.footer-vkontakte:hover {
    background: #4C75A3;
    color: white;
}

/* Индикатор загрузки */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #f0f0f0;
    z-index: 1000;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: #c30000;
    transition: width 0.4s ease;
}

/* Скелетоны для ленивой загрузки */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    width: 100%;
    height: 100%;
    display: none;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Адаптивность */
@media (max-width: 1480px) {
    header, footer {
        padding-left: 5%;
    }
    
    .footer-content {
        padding-right: 5%;
    }
}

@media (max-width: 1200px) {
    .header-menu {
        gap: 20px;
    }
    
    .contact-section {
        flex-direction: column;
        gap: 40px;
    }
    
    .contact-info,
    .contact-form-wrapper {
        max-width: 100%;
    }
    
    footer {
        flex-direction: column;
        height: auto;
        padding: 40px 20px;
        gap: 40px;
    }
    
    .footer-content {
        margin-left: 0;
        padding-right: 0;
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 900px) {
    .header-menu {
        gap: 20px;
        margin-left: 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .header-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .submit-btn {
        width: 180px;
        height: 60px;
    }
}