/* ===== ПК-Мастер Воронеж ===== */
:root {
  --bg: #0d1117;
  --bg-alt: #11161f;
  --card: #161d29;
  --border: #232c3b;
  --text: #e6edf3;
  --text-dim: #9aa7b8;
  --accent: #3b9eff;
  --accent-2: #2ea043;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0, 0, 0, .35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 720px; }

/* ===== Шапка ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 17, 23, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 12px; padding-bottom: 12px;
}
.logo { font-weight: 700; font-size: 1.15rem; color: var(--text); }
.logo span { color: var(--text-dim); font-weight: 400; font-size: .85rem; margin-left: 4px; }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--text-dim); font-size: .95rem; }
.nav a:hover { color: var(--text); }
.header__phone { font-weight: 700; font-size: 1.05rem; white-space: nowrap; }

/* ===== Hero ===== */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(ellipse 700px 400px at 80% 0%, rgba(59, 158, 255, .14), transparent),
    radial-gradient(ellipse 500px 300px at 10% 100%, rgba(46, 160, 67, .10), transparent);
}
.hero__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.hero__badge {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: rgba(46, 160, 67, .15); color: #7ee787;
  font-size: .85rem; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(1.7rem, 4.5vw, 2.7rem); line-height: 1.2; margin-bottom: 18px; }
.hero h1 .accent { color: var(--accent); }
.hero__sub { color: var(--text-dim); font-size: 1.08rem; margin-bottom: 28px; max-width: 540px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.hero__note { color: var(--text-dim); font-size: .92rem; }
.hero__card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
}
.hero__card-item { display: flex; gap: 12px; align-items: center; font-size: 1.02rem; }
.hero__card-item span { font-size: 1.3rem; }

/* ===== Кнопки ===== */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 10px;
  font-size: 1rem; font-weight: 600; border: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease; text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 4px 16px rgba(59, 158, 255, .35); }
.btn--primary:hover { background: #57adff; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--full { width: 100%; }

/* ===== Секции ===== */
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section--about { background: var(--bg-alt); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 12px; }
.section__sub { color: var(--text-dim); margin-bottom: 32px; max-width: 640px; }
.about__text { color: var(--text-dim); max-width: 760px; margin-bottom: 40px; font-size: 1.05rem; }
.about__text strong { color: var(--text); }

/* Преимущества */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.feature {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  transition: border-color .15s ease, transform .15s ease;
}
.feature:hover { border-color: var(--accent); transform: translateY(-3px); }
.feature__icon { font-size: 1.8rem; margin-bottom: 10px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--text-dim); font-size: .94rem; }

/* Прайс */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.price-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  transition: border-color .15s ease, transform .15s ease;
}
.price-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.price-card--highlight { border-color: var(--accent-2); }
.price-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.price-card__price { font-size: 2rem; font-weight: 800; color: var(--accent); margin-bottom: 10px; }
.price-card__price span { font-size: .95rem; font-weight: 400; color: var(--text-dim); }
.price-card--highlight .price-card__price { color: #7ee787; }
.price-card p { color: var(--text-dim); font-size: .94rem; }
.price-card--wide { grid-column: 1 / -1; }

/* Этапы */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; }
.step__num {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: .92rem; }

/* FAQ */
.faq details {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; margin-bottom: 10px; overflow: hidden;
}
.faq summary {
  padding: 16px 20px; cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::after { content: "＋"; color: var(--accent); font-size: 1.2rem; }
.faq details[open] summary::after { content: "－"; }
.faq details p { padding: 0 20px 16px; color: var(--text-dim); }

/* Форма заявки */
.section--cta {
  background:
    radial-gradient(ellipse 600px 300px at 50% 100%, rgba(59, 158, 255, .12), transparent),
    var(--bg-alt);
}
.lead-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.lead-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form input, .lead-form textarea {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 13px 16px; color: var(--text); font-size: 1rem; font-family: inherit;
  transition: border-color .15s ease;
}
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--accent); }
.lead-form__status { min-height: 1.4em; font-size: .95rem; }
.lead-form__status.ok { color: #7ee787; }
.lead-form__status.err { color: #ff7b72; }
.contact-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.contact-link {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 20px; font-weight: 600; color: var(--text);
}
.contact-link:hover { border-color: var(--accent); text-decoration: none; }

/* Подвал */
.footer { border-top: 1px solid var(--border); padding: 32px 0; background: var(--bg-alt); }
.footer__inner { text-align: center; color: var(--text-dim); display: flex; flex-direction: column; gap: 6px; font-size: .95rem; }
.footer__copy { font-size: .85rem; opacity: .7; }

/* Липкая кнопка звонка (мобильные) */
.call-fab {
  display: none; position: fixed; right: 18px; bottom: 88px; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--accent-2); font-size: 1.4rem;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(46, 160, 67, .5);
}

/* ===== Чат ===== */
.chat-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--accent); border: none; font-size: 1.5rem; cursor: pointer;
  box-shadow: 0 4px 18px rgba(59, 158, 255, .5);
  transition: transform .12s ease;
}
.chat-fab:hover { transform: scale(1.08); }

.chat-window {
  position: fixed; right: 18px; bottom: 88px; z-index: 61;
  width: min(360px, calc(100vw - 36px)); height: 480px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
}
.chat-window__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; background: var(--bg-alt); border-bottom: 1px solid var(--border);
}
.chat-window__title { font-weight: 700; }
.chat-window__status { font-size: .78rem; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.chat-window__status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); }
.chat-window__close {
  background: none; border: none; color: var(--text-dim);
  font-size: 1.1rem; cursor: pointer; padding: 4px 8px;
}
.chat-window__close:hover { color: var(--text); }
.chat-window__messages {
  flex: 1; overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.chat-msg { max-width: 82%; padding: 9px 13px; border-radius: 12px; font-size: .93rem; white-space: pre-wrap; word-break: break-word; }
.chat-msg--visitor { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg--admin { align-self: flex-start; background: var(--bg-alt); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-msg--sys { align-self: center; color: var(--text-dim); font-size: .8rem; background: none; padding: 2px 8px; }
.chat-window__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-window__form input {
  flex: 1; background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; color: var(--text); font-size: .95rem;
}
.chat-window__form input:focus { outline: none; border-color: var(--accent); }
.chat-window__form button {
  width: 44px; border: none; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: #fff; font-size: 1.05rem;
}
.chat-window__form button:hover { background: #57adff; }

/* ===== Адаптив ===== */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .nav { display: none; }
  .call-fab { display: flex; }
  .lead-form__row { grid-template-columns: 1fr; }
  .chat-window { height: min(480px, calc(100vh - 130px)); }
}
@media (max-width: 480px) {
  .hero__cta .btn { width: 100%; }
  .section { padding: 48px 0; }
}
