/*
Theme Name: Romb Art Premium
Author: Romb Team
Description: Строгий, информативный лендинг с геометрическими акцентами.
Version: 1.0
*/

:root {
    --bg-dark: #121212;
    --bg-panel: #1e1e1e;
    --accent: #d4af37; /* Благородное золото */
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --font-head: 'Playfair Display', serif; /* Стильный заголовок с засечками */
    --font-body: 'Manrope', sans-serif;    /* Строгий текст без засечек */
}

/* --- Base --- */
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-head);
    color: #fff;
    margin: 0 0 20px 0;
    font-weight: 400;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

/* Декоративная линия под заголовками (половина ромба) */
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 100px 0; border-bottom: 1px solid #2a2a2a; }

/* --- Components --- */
/* Кнопка в виде вытянутого шестиугольника/ромба */
.btn-romb {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-romb::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: var(--accent);
    transform: skewX(-20deg);
    transition: 0.4s;
    z-index: -1;
}

.btn-romb:hover { color: #000; }
.btn-romb:hover::before { left: 0; transform: skewX(0); }

/* Геометрический акцент (ромб) */
.romb-icon {
    width: 20px; height: 20px;
    background: var(--accent);
    transform: rotate(45deg);
    margin-bottom: 20px;
}

/* --- TOP BAR (Верхняя полоска) --- */
.top-bar {
    background-color: #0b0b0b;
    border-bottom: 1px solid #222;
    padding: 8px 0;
    font-size: 0.75rem;
    color: #888;
    position: relative;
    z-index: 1001;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Класс для скрытия верхней панели при скролле */
.top-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    position: absolute; /* Убираем из потока */
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
}
.romb-mini {
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--accent);
    transform: rotate(45deg);
    margin-right: 8px;
    vertical-align: middle;
}
.top-contacts a { margin-right: 20px; color: #ccc; }
.top-contacts a:hover { color: var(--accent); }

/* --- MAIN HEADER --- */
.site-header {
    position: fixed;
    top: 36px; /* Высота top-bar */
    left: 0; width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(18, 18, 18, 0.6); /* Полупрозрачный старт */
    backdrop-filter: blur(5px);
}

/* Состояние при скролле (Scrolled) */
.site-header.scrolled {
    top: 0;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid #333;
    padding: 5px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height 0.4s;
}

.site-header.scrolled .header-inner {
    height: 60px; /* Уменьшаем высоту при скролле */
}

/* ЛОГОТИП */
.logo a { display: flex; align-items: center; gap: 15px; }
.logo-icon {
    width: 35px; height: 35px;
    background: var(--accent);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); /* Ромб */
}
.logo-text { line-height: 1.2; }
.logo-text .brand { display: block; font-family: var(--font-head); font-size: 1.2rem; letter-spacing: 2px; color: #fff; font-weight: 700; }
.logo-text .desc { display: block; font-size: 0.65rem; text-transform: uppercase; color: #888; letter-spacing: 1px; }

/* МЕНЮ ДЕСКТОП */
.desktop-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0; padding: 0;
}
.desktop-nav a {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    color: #e0e0e0;
    position: relative;
    padding: 10px 0;
}
/* Анимация подчеркивания */
.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--accent);
    transition: 0.3s;
}
.desktop-nav a:hover { color: #fff; }
.desktop-nav a:hover::after { width: 100%; }

/* ПРАВАЯ ЧАСТЬ (ТЕЛЕФОН + КНОПКА) */
.header-actions { display: flex; align-items: center; gap: 25px; }
.phone-block { text-align: right; }
.phone-label { display: block; font-size: 0.65rem; color: #888; text-transform: uppercase; letter-spacing: 1px; }
.phone-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-head);
    white-space: nowrap;
}

.btn-header {
    padding: 10px 25px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: 0.3s;
    /* Скос кнопки для стиля */
    transform: skewX(-15deg);
}
.btn-header:hover { background: var(--accent); color: #000; }

/* Бургер (скрыт на десктопе) */
.burger-menu { display: none; cursor: pointer; width: 30px; height: 20px; position: relative; }
.burger-menu span {
    display: block; position: absolute; height: 2px; width: 100%;
    background: #fff; border-radius: 2px; transition: 0.3s;
}
.burger-menu span:nth-child(1) { top: 0; }
.burger-menu span:nth-child(2) { top: 9px; }
.burger-menu span:nth-child(3) { top: 18px; }

/* АДАПТИВНОСТЬ */
@media (max-width: 992px) {
    .desktop-nav, .phone-label, .btn-header, .top-bar { display: none; } /* Скрываем лишнее */
    .site-header { top: 0; background: #121212; } /* Убираем отступ сверху */
    .burger-menu { display: block; }
    .header-actions { gap: 15px; }
    .phone-number { font-size: 0.9rem; }
}

/* МОБИЛЬНОЕ МЕНЮ (Шторка) */
.mobile-menu-overlay {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    transition: 0.4s;
}
.mobile-menu-overlay.active { right: 0; }

.mobile-menu-content {
    position: absolute;
    top: 0; right: 0;
    width: 80%; max-width: 300px;
    height: 100%;
    background: #1a1a1a;
    padding: 40px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}
.close-menu {
    position: absolute; top: 20px; right: 20px;
    background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer;
}
.mobile-logo { font-size: 1.5rem; font-weight: bold; margin-bottom: 40px; color: #fff; font-family: var(--font-head); }
.mobile-links { list-style: none; padding: 0; margin: 0; }
.mobile-links li { margin-bottom: 20px; }
.mobile-links a { font-size: 1.1rem; color: #ccc; text-transform: uppercase; }
.mobile-links a:hover { color: var(--accent); }
.mobile-contacts { margin-top: auto; border-top: 1px solid #333; padding-top: 20px; color: #888; font-size: 0.9rem; }
.mobile-phone { display: block; font-size: 1.2rem; color: #fff; margin-bottom: 10px; }

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(45deg, rgba(0,0,0,0.8), rgba(0,0,0,0.4)), url('images/hero-bg.jpg'); /* Замените на свою картинку */
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-content { max-width: 800px; }
.hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 30px; }
.hero p { font-size: 1.2rem; margin-bottom: 40px; color: var(--text-main); }

/* --- Services (Grid) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.service-card {
    background: var(--bg-panel);
    padding: 40px;
    transition: 0.3s;
    border: 1px solid transparent;
}
.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

/* --- Info/Stats Section --- */
.info-section { background: var(--bg-panel); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.stat-number { font-size: 3rem; font-family: var(--font-head); color: var(--accent); }
.stat-label { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; }

/* --- Portfolio (Masonry feel) --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.portfolio-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #333;
}
.portfolio-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: 0.5s;
}
.portfolio-item:hover img { transform: scale(1.1); opacity: 0.4; }
.portfolio-info {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(45deg); /* Текст внутри ромба при наведении */
    width: 150px; height: 150px;
    background: rgba(212, 175, 55, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.4s;
}
.portfolio-info span { transform: rotate(-45deg); color: #000; font-weight: bold; }
.portfolio-item:hover .portfolio-info { opacity: 1; }

/* --- Footer --- */
/* --- FOOTER --- */
.site-footer {
    background-color: #050505; /* Глубокий черный */
    color: #888;
    padding-top: 80px;
    font-size: 0.9rem;
    position: relative;
}

/* Декоративная линия (Градиент) */
.footer-line {
    position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, #050505 0%, var(--accent) 50%, #050505 100%);
    opacity: 0.5;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr; /* Разная ширина колонок */
    gap: 40px;
    padding-bottom: 60px;
}

/* Лого в футере */
.footer-logo {
    display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.logo-icon-mini {
    width: 20px; height: 20px; background: var(--accent);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.footer-logo .brand { color: #fff; font-family: var(--font-head); font-size: 1.2rem; letter-spacing: 1px; }

.footer-desc { margin-bottom: 20px; line-height: 1.6; }
.footer-legal p { font-size: 0.75rem; color: #555; margin: 0; }

/* Заголовки колонок */
.footer-title {
    color: #fff;
    font-family: var(--font-head);
    font-size: 1.1rem;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

/* Ссылки */
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: #888;
    transition: 0.3s;
    display: inline-block;
}
.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px); /* Сдвиг при наведении */
}

/* Контакты */
.footer-contact-item { margin-bottom: 15px; }
.footer-contact-item span { display: block; font-size: 0.75rem; text-transform: uppercase; color: #555; }
.footer-contact-item a, .footer-contact-item p { color: #ccc; margin: 0; }
.footer-phone { font-size: 1.1rem; color: #fff !important; font-weight: bold; }

/* Соцсети (Ромбы) */
.social-icons { display: flex; gap: 15px; margin-top: 25px; }
.social-romb {
    display: flex; justify-content: center; align-items: center;
    width: 40px; height: 40px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.7rem; font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
    border: 1px solid #333;
    /* Форма ромба */
    transform: rotate(45deg);
}
.social-romb:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}
/* Разворачиваем текст внутри ромба обратно, чтобы читался прямо */
/* Но в данном дизайне лучше оставить буквы простыми или иконки FontAwesome */
/* Если используем текст WA/TG, он будет под углом - это стильно. Если хотите прямо: */
/* .social-romb span { transform: rotate(-45deg); } */

/* Bottom Bar */
.footer-bottom {
    background: #000;
    padding: 20px 0;
    border-top: 1px solid #111;
    font-size: 0.8rem;
    color: #555;
}
.bottom-flex {
    display: flex; justify-content: space-between;
}

/* Кнопка "Наверх" */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 40px; height: 40px;
    background: var(--accent);
    color: #000;
    display: flex; justify-content: center; align-items: center;
    font-weight: bold;
    opacity: 0; visibility: hidden;
    transition: 0.3s;
    z-index: 900;
    transform: rotate(45deg); /* Тоже ромб */
}
.back-to-top:hover { background: #fff; }
.back-to-top.show { opacity: 1; visibility: visible; }

/* Адаптив футера */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* 2 колонки */
    }
}
@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr; /* 1 колонка */
        text-align: center;
    }
    .footer-logo, .social-icons { justify-content: center; }
    .footer-links a:hover { transform: none; }
    .bottom-flex { flex-direction: column; gap: 10px; text-align: center; }
}

/* Mobile */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .stats-grid, .portfolio-grid { grid-template-columns: 1fr; }
    nav { display: none; } /* Тут лучше добавить JS бургер-меню */
}


/* --- Animation Classes --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Улучшение секции Hero */
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(0deg, var(--bg-dark) 0%, rgba(18,18,18,0.7) 50%, rgba(18,18,18,0.4) 100%);
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 2; /* Текст поверх затемнения */
}

/* Стильные детали */
.section-subtitle {
    display: block;
    color: var(--accent);
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Контактная форма - темная тема */
input[type="text"], input[type="email"], textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #444;
    padding: 15px 0;
    color: #fff;
    font-family: var(--font-body);
    transition: 0.3s;
    margin-bottom: 20px;
}
input:focus, textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
}
input[type="submit"] {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 15px 40px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    transition: 0.3s;
}
input[type="submit"]:hover {
    background: #fff;
}

/* Добавьте в style.css */

/* Делаем заголовки чуть более массивными */
h1 {
    font-weight: 700;
    letter-spacing: -1px;
    text-transform: uppercase;
}

/* Карточка товара */
.service-card {
    background: #181818;
    border: 1px solid #2a2a2a;
}
.service-card:hover {
    background: #222;
    border-color: var(--accent);
}

/* Карта в футере (черно-белая стилизация через CSS фильтр) */
#map iframe {
    filter: grayscale(100%) invert(90%); /* Делает карту темной */
    pointer-events: none; /* Чтобы не скроллилась случайно (включить click по желанию) */
}