@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&family=Exo+2:wght@400;600;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', sans-serif;
    color: #333;
    background: #f6ebd8;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    padding-top: 80px; /* высота хэдера */
    background: #f6ebd8;
}

html, body {
    height: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Хэдер — тёмный, компактный */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 80px;
    background: #0f0c29;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
}

.logo a {
    color: #fff;
    text-decoration: none;
}

.logo span {
    color: #c8102e;
}

.nav {
    display: flex;
    gap: 35px;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav a:hover {
    color: #c8102e;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switch a {
    color: #fff;
    text-decoration: none;
    padding: 6px 10px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.lang-switch a.active,
.lang-switch a:hover {
    background: #c8102e;
    color: white;
    border-radius: 6px;
}

/* Тонкая красная линия под хэдером */
/* Тонкая красная линия под хэдером */
/* Красная линия — теперь с правильным позиционированием */
.header-separator {
    height: 4px;
    width: 100%;
    background: linear-gradient(to right, 
        transparent 0%, 
        #c8102e 25%, 
        #c8102e 75%, 
        transparent 100%);
    position: relative;
    top: 0;
    left: 0;
    z-index: 999; /* чуть ниже хэдера, но выше контента */
    box-shadow: 0 2px 10px rgba(200, 16, 46, 0.4);
    margin: 0;
}

/* Бургер-меню */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Мобильное меню */
.nav-mobile {
    position: fixed;
    top: 0; left: -100%;
    width: 80%;
    max-width: 280px;
    height: 100vh;
    background: #0f0c29;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 110px 25px 40px;
    transition: left 0.4s ease;
    z-index: 999;
    gap: 25px;
    box-shadow: 8px 0 25px rgba(0,0,0,0.4);
}

.nav-mobile.active {
    left: 0;
}

.nav-mobile a {
    font-size: 1.6rem;
    color: #fff;
    text-decoration: none;
}

.nav-mobile a:hover {
    color: #c8102e;
}

.lang-switch-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 35px;
    font-size: 1.3rem;
}

.lang-switch-mobile a {
    color: #fff;
    padding: 8px;
}

.lang-switch-mobile a.active {
    background: #c8102e;
    color: white;
    border-radius: 6px;
}

/* Чтобы линия не "пряталась" под контентом */
/* Увеличиваем отступ у main-content, чтобы контент не налезал */
.main-content {
    padding-top: 100px; /* высота хэдера 80px + запас */
    background: #f6ebd8;
}

/* На мобильке чуть меньше отступ */
@media (max-width: 768px) {
    .main-content {
        padding-top: 90px;
    }
    .header-separator {
        height: 3px;
    }
}

.about {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.about h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.2rem;
    margin-bottom: 30px;
    color: #c8102e;
}

.about p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 35px;
    color: #444;
}

/* Кнопка "Позвонить" */
.btn-call {
    display: inline-block;
    padding: 16px 50px;
    font-size: 1.3rem;
    background: #c8102e;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-call:hover {
    background: #a00d25;
    transform: translateY(-3px);
}

/* Услуги (если оставляем) */
.services {
    padding: 80px 0;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.service-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.6rem;
    margin: 20px 20px 10px;
    color: #333;
}

.service-card p {
    font-size: 1.1rem;
    padding: 0 20px 25px;
    color: #555;
}

/* Портфолио и другие блоки */
.portfolio, .blog-list, .contacts {
    padding: 80px 0;
}

/* Футер */
.footer {
    margin-top: auto;
    background: #e0d0c0;
    padding: 40px 0;
    text-align: center;
    color: #555;
    font-size: 0.95rem;
}

/* Контакты и форма заявки — адаптировано под светлый стиль */
.contacts {
    padding: 120px 0 100px;
    text-align: center;
    background: #f6ebd8;
}

.contacts .centered {
    max-width: 700px;
    margin: 0 auto;
}

.contacts h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: #c8102e;
    margin-bottom: 30px;
}

.contact-info {
    margin: 40px 0 60px;
    font-size: 1.3rem;
    line-height: 1.8;
    color: #444;
}

.contact-info a {
    color: #c8102e;
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Форма заявки */
.form-3d {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 30px;
    text-align: left;
}

.form-3d label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.form-3d input,
.form-3d textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #d0d0d0;
    border-radius: 12px;
    background: white;
    color: #333;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-3d input:focus,
.form-3d textarea:focus {
    outline: none;
    border-color: #c8102e;
    box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.15);
}

.form-3d textarea {
    min-height: 140px;
    resize: vertical;
}

.form-3d button[type="submit"] {
    display: inline-block;
    padding: 16px 50px;
    font-size: 1.3rem;
    font-weight: 600;
    background: #c8102e;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.form-3d button[type="submit"]:hover {
    background: #a00d25;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(200, 16, 46, 0.3);
}

#form-status {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Сообщение об успехе/ошибке */
#form-status.success {
    color: #2e7d32;
}

#form-status.error {
    color: #c8102e;
}

.hidden { display: none; }

/* Responsive */
@media (max-width: 768px) {
    .header { height: 70px; }
    .logo { font-size: 1.6rem; }
    .nav, .lang-switch { display: none; }
    .burger { display: flex; }
    .about h1 { font-size: 2.5rem; }
    .about p { font-size: 1.1rem; }
    .main-content { padding: 90px 20px 100px; }
}

@media (max-width: 480px) {
    .about h1 { font-size: 2rem; }
}