/*
Theme Name: Qara
Theme URI: https://qara.uz
Author: Qara Solutions
Description: Тема для сайта Qara: интерактивные 3D-презентации жилых комплексов на Unreal Engine. Одностраничный лендинг с пакетами, процессом, FAQ и формой заявки. Тексты, контакты и цены меняются в «Внешний вид → Настроить».
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qara
*/

:root {
  --bg: #0F0F11;
  --bg-2: #141417;
  --panel: #1A1A1E;
  --line: #2C2C32;
  --text: #F1EFEA;
  --muted: #A7A49C;
  --soft: #C9C6BE;
  --accent: #C9A46A;
  --accent-dark: #8A6A35;
  --light: #EDEAE3;
  --light-panel: #F7F5F0;
  --ink: #141416;
  --ink-muted: #55524C;
  --radius: 24px;
  --wrap: 1240px;
  --display: 'Unbounded', 'Arial', sans-serif;
  --body: 'Manrope', 'Arial', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 1000; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 8px; clip: auto; width: auto; height: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px; font-weight: 700; font-size: 16px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  font-family: var(--body);
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #D8B67F; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-bottom: 18px; display: block; }
.section { padding: 120px 0; }
.section-light { background: var(--light); color: var(--ink); }
.section-light .eyebrow { color: var(--accent-dark); }
.section-head { max-width: 820px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 56px); }
.section-head p { margin-top: 20px; color: var(--muted); font-size: 19px; }
.section-light .section-head p { color: var(--ink-muted); }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(15, 15, 17, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.brand img { height: 46px; width: auto; }
.brand .custom-logo { height: 46px; width: auto; }
.main-nav ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--soft); transition: color .2s; }
.main-nav a:hover { color: var(--accent); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-cta .btn { padding: 12px 22px; font-size: 15px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 12px; width: 46px; height: 46px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; transition: transform .2s; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 140px 0 80px; overflow: hidden;
  background: radial-gradient(circle at 75% 45%, #22222A 0%, var(--bg) 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 84px); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { margin-top: 28px; font-size: 21px; color: var(--soft); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-note { margin-top: 28px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.hero-note::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(201, 164, 106, .15); }

.scene-wrap { position: relative; }
.qara-scene { width: 100%; max-width: 520px; max-height: 70vh; margin: 0 auto; overflow: visible; }
.qara-scene .u polygon { stroke: #3A3A43; stroke-width: .7; transition: fill .2s ease; }
.qara-scene .u .t { fill: #303037; }
.qara-scene .u .l { fill: #1E1E23; }
.qara-scene .u .r { fill: #27272D; }
.qara-scene .u.sold .t { fill: #222227; }
.qara-scene .u.sold .l { fill: #161619; }
.qara-scene .u.sold .r { fill: #1C1C20; }
.qara-scene .u.reserved .l, .qara-scene .u.reserved .r { fill: #2F2A22; }
.qara-scene .u { cursor: pointer; }
.qara-scene .u:hover .t, .qara-scene .u.is-active .t { fill: #E3C48E; }
.qara-scene .u:hover .l, .qara-scene .u.is-active .l { fill: #9C7A44; }
.qara-scene .u:hover .r, .qara-scene .u.is-active .r { fill: #C9A46A; }
.qara-scene .u.hot .t { fill: #E3C48E; }
.qara-scene .u.hot .l { fill: #9C7A44; animation: qpulse 2.4s ease-in-out infinite; }
.qara-scene .u.hot .r { fill: #C9A46A; animation: qpulse 2.4s ease-in-out infinite; }
@keyframes qpulse { 50% { opacity: .55; } }
.apt-card {
  position: relative; width: 280px; margin: -24px 0 0 auto;
  background: rgba(26, 26, 30, .92); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 15px; transition: opacity .2s ease;
}
.apt-card .apt-title { font-family: var(--display); font-size: 18px; margin-bottom: 8px; }
.apt-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; }
.apt-card dt { color: var(--muted); }
.apt-card dd { margin: 0; text-align: right; font-weight: 700; }
.apt-card .status-free { color: #8FD19E; }
.apt-card .status-sold { color: var(--muted); }
.apt-card .status-reserved { color: var(--accent); }
.apt-hint { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* Benefits strip */
.benefits { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.benefit { padding: 44px 32px; border-left: 1px solid var(--line); display: flex; gap: 18px; align-items: flex-start; }
.benefit:first-child { border-left: 0; padding-left: 0; }
.benefit h3 { font-size: 18px; margin-bottom: 8px; }
.benefit p { color: var(--muted); font-size: 16px; }
.icon { width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgba(201, 164, 106, .12); color: var(--accent); display: grid; place-items: center; }
.icon svg { width: 22px; height: 22px; }

/* Platform features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; gap: 18px; transition: border-color .25s ease, transform .25s ease; }
.feature:hover { border-color: rgba(201, 164, 106, .5); transform: translateY(-4px); }
.feature h3 { font-size: 26px; }
.feature p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ticks li { font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); }
.feature-pro { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }

/* Statement */
.statement { background: var(--accent); color: var(--ink); padding: 110px 0; }
.statement h2 { font-size: clamp(30px, 4vw, 54px); max-width: 1050px; }
.statement p { margin-top: 24px; font-size: 20px; max-width: 760px; color: #2A2010; }

/* Packages */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.package { background: var(--light-panel); border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; gap: 20px; border: 1px solid #DED9CE; position: relative; }
.package.is-featured { background: var(--ink); color: var(--text); border-color: var(--ink); }
.package .badge { position: absolute; top: 24px; right: 24px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--accent); color: var(--ink); padding: 6px 12px; border-radius: 999px; }
.package h3 { font-size: 24px; }
.package .price { font-family: var(--display); font-size: 38px; font-weight: 600; color: var(--accent-dark); line-height: 1; }
.package.is-featured .price { color: var(--accent); }
.package .price small { display: block; font-family: var(--body); font-size: 14px; font-weight: 600; color: var(--ink-muted); margin-top: 10px; }
.package.is-featured .price small { color: var(--muted); }
.package ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.package li { display: flex; gap: 12px; font-size: 16px; line-height: 1.45; }
.package li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: rgba(138, 106, 53, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A6A35' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat; }
.package.is-featured li::before { background-color: rgba(201, 164, 106, .18); }
.package .meta { font-size: 14px; color: var(--ink-muted); border-top: 1px solid #DED9CE; padding-top: 18px; }
.package.is-featured .meta { color: var(--muted); border-color: var(--line); }
.package .btn { width: 100%; }
.package:not(.is-featured) .btn-ghost { color: var(--ink); border-color: #CFC9BC; }
.packages-note { margin-top: 28px; color: var(--ink-muted); font-size: 15px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { border-top: 2px solid var(--accent); padding-top: 28px; }
.step .num { font-family: var(--display); font-size: 40px; color: var(--accent); line-height: 1; margin-bottom: 18px; }
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 16px; }
.formats { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); font-size: 15px; }
.formats span.f { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; color: var(--soft); font-weight: 600; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { background: var(--light-panel); border-radius: 20px; padding: 32px; border: 1px solid #DED9CE; }
.service h3 { font-size: 19px; margin: 18px 0 10px; }
.service p { font-size: 15px; color: var(--ink-muted); }
.service .icon { background: rgba(138, 106, 53, .12); color: var(--accent-dark); }

/* Demo / projects */
.demo { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 32px; padding: 56px; overflow: hidden; }
.demo h2 { font-size: clamp(28px, 3.4vw, 44px); }
.demo p { color: var(--muted); margin-top: 18px; }
.demo .btn { margin-top: 32px; }
.demo-visual { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; background: linear-gradient(135deg, #24242B, #121215); display: grid; place-items: center; border: 1px solid var(--line); }
.demo-visual img { width: 34%; opacity: .9; }
.demo-visual .tag { position: absolute; left: 20px; top: 20px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--accent); border: 1px solid rgba(201, 164, 106, .4); padding: 6px 12px; border-radius: 999px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq-list summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 19px; display: flex; justify-content: space-between; gap: 24px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-family: var(--display); color: var(--accent); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin-top: 14px; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact h2 { font-size: clamp(32px, 4vw, 52px); }
.contact-lead { margin-top: 20px; color: var(--ink-muted); font-size: 19px; }
.contact-links { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; }
.contact-links a { text-decoration: none; font-weight: 700; font-size: 20px; display: inline-flex; gap: 12px; align-items: center; }
.contact-links a:hover { color: var(--accent-dark); }
.lead-form { background: var(--light-panel); border: 1px solid #DED9CE; border-radius: var(--radius); padding: 40px; display: grid; gap: 18px; }
.lead-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink-muted); }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #D6D0C3; border-radius: 12px; padding: 14px 16px;
}
.lead-form textarea { min-height: 110px; resize: vertical; }
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form .hp { position: absolute; left: -9999px; }
.lead-form .consent { font-size: 13px; color: var(--ink-muted); font-weight: 400; }
.form-msg { padding: 14px 18px; border-radius: 12px; font-weight: 600; }
.form-msg.ok { background: #E3F1E4; color: #24502B; }
.form-msg.err { background: #F6E2DF; color: #7A2A20; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-grid h4 { font-family: var(--body); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; color: var(--soft); }
.footer-grid a:hover { color: var(--accent); }
.footer-about p { color: var(--muted); margin-top: 18px; max-width: 360px; font-size: 16px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 14px; }

/* Generic pages */
.page-main { padding: 160px 0 100px; }
.entry { max-width: 780px; }
.entry h1 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 32px; }
.entry-content { color: var(--soft); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content a { color: var(--accent); }
.post-list { display: grid; gap: 24px; }
.post-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.post-card h2 { font-size: 24px; }
.post-card h2 a { text-decoration: none; }
.post-card time { color: var(--muted); font-size: 14px; display: block; margin-bottom: 10px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .qara-scene .u.hot .l, .qara-scene .u.hot .r { animation: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid, .demo, .faq, .contact { grid-template-columns: 1fr; }
  .steps, .services { grid-template-columns: repeat(2, 1fr); }
  .packages { grid-template-columns: 1fr; max-width: 560px; }
  .scene-wrap { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 84px 0 auto 0; background: rgba(15, 15, 17, .97); border-bottom: 1px solid var(--line); padding: 24px; display: none; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 18px; }
  .main-nav a { font-size: 18px; }
  .header-cta .btn { display: none; }
  .benefits-grid, .features { grid-template-columns: 1fr; }
  .benefit { border-left: 0; border-top: 1px solid var(--line); padding: 32px 0; }
  .benefit:first-child { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .section { padding: 84px 0; }
  .wrap { padding: 0 16px; }
  .steps, .services, .lead-form .row { grid-template-columns: 1fr; }
  .feature, .package, .lead-form, .demo { padding: 28px; }
  .apt-card { width: 100%; margin-top: 16px; }
  .footer-bottom { flex-direction: column; }
  .admin-bar .site-header { top: 0; }
}
