/*
Theme Name: Ritual Alexandrov
Author: Custom
Description: Custom theme for Ritual Alexandrov based on HTML template
Version: 1.0
*/

:root {
    --bg-color: #f8fafc;
    --surface: #ffffff;
    --primary: #1e293b;
    --primary-hover: #334155;
    --accent: #cba660;
    --accent-hover: #b4914f;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 8px;
    --font-main: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); background: var(--bg-color); color: var(--text-main); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { margin-left: 20px; }
.list-none { list-style: none; margin-left: 0; }

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

.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; padding: 12px 24px; border-radius: var(--radius); font-weight: 600; cursor: pointer; border: none; text-align: center; transition: 0.2s; }
.btn:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }

/* HEADER */
.top-bar { background: #f1f5f9; color: var(--text-muted); font-size: 0.85rem; padding: 8px 0; border-bottom: 1px solid var(--border); }
.top-bar-flex { display: flex; justify-content: space-between; align-items: center; }
.top-bar-items { display: flex; gap: 20px; }
.main-header { background: var(--surface); padding: 20px 0; }
.header-flex { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.logo-area .logo-title { font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; text-transform: uppercase;}
.logo-area .logo-desc { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }
.header-contact { display: flex; align-items: center; gap: 30px; }
.phone-block { text-align: right; }
.phone-number { display: block; font-size: 1.5rem; font-weight: 700; color: var(--text-main); line-height: 1.1; }
.phone-label { font-size: 0.8rem; color: var(--accent); font-weight: 600; text-transform: uppercase; }

/* NAVBAR */
.navbar { background: var(--primary); position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.nav-links { display: flex; margin: 0; padding: 0; list-style: none; }
.nav-links > li > a { display: block; padding: 16px 20px; color: #fff; font-weight: 500; font-size: 0.95rem; }
.nav-links > li > a:hover { background: rgba(255,255,255,0.1); color: var(--accent); }
/* ===========================
   Выпадающее меню
=========================== */

.nav-links > li{
    position:relative;
}

.nav-links > li > a{
    white-space:nowrap;
    transition:.25s;
}

.nav-links .sub-menu{
    position:absolute;
    top:100%;
    left:0;
    min-width:320px;
    background:#fff;
    list-style:none;
    margin:0;
    padding:8px 0;
    display:none;
    border-radius:8px;
    box-shadow:0 12px 35px rgba(0,0,0,.15);
    z-index:9999;
}

.nav-links li:hover > .sub-menu{
    display:block;
}

.nav-links .sub-menu li{
    margin:0;
    padding:0;
}

.nav-links .sub-menu a{
    display:block;
    padding:12px 18px;
    color:#1e293b;
    text-decoration:none;
    font-size:15px;
    transition:.2s;
}

.nav-links .sub-menu a:hover{
    background:#f8fafc;
    color:var(--accent);
    padding-left:24px;
}

.nav-links > li.menu-item-has-children > a::after{
    content:" ▼";
    font-size:10px;
    margin-left:4px;
}

.nav-links > li{
    display:flex;
    align-items:center;
}
.burger { display: none; padding: 16px 0; color: #fff; font-weight: 600; cursor: pointer; }

/* Grid */
.section { padding: 80px 0; border-bottom: 1px solid var(--border); }
.section:last-child { border-bottom: none; }
.title { text-align: center; font-size: 2.2rem; margin-bottom: 10px; color: var(--primary); }
.subtitle { text-align: center; font-size: 1.1rem; color: var(--text-muted); margin-bottom: 40px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card { background: var(--surface); padding: 30px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); transition: 0.3s; }
.card:hover { border-color: var(--accent); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08); transform: translateY(-3px); }

/* Hero Frontpage */
.hero-front { background: linear-gradient(135deg, var(--primary) 0%, #0f172a 100%); color: #fff; padding: 100px 0; position: relative; overflow: hidden; }
.hero-front::after { content: ''; position: absolute; right: 0; top: 0; width: 50%; height: 100%; background: url('https://placehold.co/800x600/1e293b/334155?text=Иллюстрация') no-repeat center / cover; opacity: 0.2; }
.hero-front-content { position: relative; z-index: 2; max-width: 600px; }
.hero-front h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.1; }
.hero-front h1 span { color: var(--accent); }
.hero-front p { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.9; }
.hero-badges { display: flex; gap: 20px; margin-bottom: 40px; }
.hero-badge { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.1); padding: 10px 15px; border-radius: var(--radius); }
.hero-badge strong { font-size: 1.2rem; color: var(--accent); }
.hero-badge span { font-size: 0.85rem; line-height: 1.2; }

/* Form Card */
.form-card { background: var(--surface); color: var(--text-main); padding: 30px; border-radius: var(--radius); border-top: 4px solid var(--accent); }
.form-card h3 { font-size: 1.4rem; margin-bottom: 10px; color: var(--primary); }
.form-card input { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid var(--border); border-radius: 4px; font-family: var(--font-main); }
.form-card button { width: 100%; }

/* Services specific */
.service-card { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 25px; cursor: pointer; }
.service-card-icon { width: 48px; height: 48px; background: #f1f5f9; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--primary); margin-bottom: 15px; }
.service-card h4 { font-size: 1.1rem; margin-bottom: 8px; color: var(--primary); }
.service-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 15px; flex-grow: 1; }
.service-card .price { font-weight: 700; color: var(--accent); }

/* Steps */
.step-num { font-size: 3rem; font-weight: 800; color: #e2e8f0; line-height: 1; margin-bottom: 10px; }
.warning-box { background: #fef2f2; border: 1px solid #f87171; border-radius: var(--radius); padding: 20px; margin-top: 40px; display: flex; gap: 20px; align-items: flex-start; }
.warning-box h4 { color: #b91c1c; margin-bottom: 10px; }
.warning-box ul { color: #991b1b; font-size: 0.95rem; }

/* Shop categories */
.shop-cat { background: #f8fafc; border-radius: var(--radius); overflow: hidden; position: relative; display: block; border: 1px solid var(--border); transition: 0.3s; }
.shop-cat:hover { border-color: var(--accent); }
.shop-cat-img { height: 180px; background: #e2e8f0; display: flex; align-items: center; justify-content: center; color: #94a3b8; }
.shop-cat-title { padding: 15px 20px; font-weight: 600; color: var(--primary); background: #fff; display: flex; justify-content: space-between; align-items: center; }

/* FOOTER */
.footer { background: #0f172a; color: #94a3b8; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 1.5rem; font-weight: 800; color: #fff; text-transform: uppercase; margin-bottom: 15px; }
.footer-desc { margin-bottom: 20px; font-size: 0.95rem; }
.footer-heading { color: #fff; font-size: 1.1rem; margin-bottom: 20px; font-weight: 600; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: var(--accent); }
.footer-contacts li { display: flex; gap: 10px; margin-bottom: 15px; align-items: flex-start; }
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-btn { display: inline-flex; justify-content: center; align-items: center; width: 40px; height: 40px; border-radius: 50%; background: #1e293b; color: #fff; }
.social-btn:hover { background: var(--accent); }
.social-btn.wa:hover { background: #25D366; }
.social-btn.tg:hover { background: #0088cc; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 20px; font-size: 0.85rem; display: flex; flex-direction: column; gap: 15px; }
.legal-disclaimer { opacity: 0.6; line-height: 1.5; }

@media (max-width: 900px) { .header-flex { flex-direction: column; text-align: center; } .header-contact { flex-direction: column; gap: 15px; } .phone-block { text-align: center; } .footer-grid { grid-template-columns: 1fr; } .hero-front { padding: 60px 0; } }
@media (max-width: 768px) { .top-bar { display: none; } .nav-links { display: none; flex-direction: column; width: 100%; position: absolute; top: 100%; left: 0; background: var(--primary); border-top: 1px solid #334155; } .nav-links.active { display: flex; } .burger { display: block; } .hero-front h1 { font-size: 2.2rem; } .hero-badges { flex-direction: column; gap: 10px; } }
