/*
Theme Name: RemPro
Description: Фирменная тема сервисного центра РемПроМобайл. Лёгкая, быстрая, адаптивная.
Version: 1.0.0
Author: RemProMobile
Text Domain: rempro
*/

:root {
  --bg: #f8f5f8;
  --surface: #ffffff;
  --ink: #2b1a29;
  --muted: #6d5e6b;
  --line: #eadfe8;
  --accent: #c80731;
  --accent-dark: #a30627;
  --brand: #531d4d;
  --pink: #d48ecc;
  --pink-bg: #f7e7f5;
  --navy: #531d4d;
  --navy-2: #6b2762;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(26,35,50,.06), 0 8px 24px rgba(26,35,50,.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; line-height: 1.65;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 16px;
  text-decoration: none; border: none; cursor: pointer; text-align: center;
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--outline:hover { background: #fff; border-color: var(--accent); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.site-header__in { display: flex; align-items: center; gap: 28px; min-height: 66px; position: relative; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo__img { height: 42px; width: auto; display: block; }
@media (max-width: 560px) { .logo__img { height: 34px; } }
.logo__text { font-weight: 800; font-size: 19px; letter-spacing: .2px; color: var(--ink); line-height: 1.15; }
.logo__text small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .3px; }
.nav { display: flex; gap: 4px; margin: 0 auto; }
.nav ul { display: contents; list-style: none; margin: 0; padding: 0; }
.nav li { display: contents; }
.nav a {
  padding: 8px 13px; border-radius: 8px; text-decoration: none;
  font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap;
}
.nav a:hover { background: var(--bg); }
.nav .current-menu-item > a, .nav a[aria-current="page"] { color: var(--accent-dark); }
.header-contacts { display: flex; align-items: center; gap: 16px; flex-shrink: 0; margin-left: auto; }
.header-phone { text-decoration: none; text-align: right; line-height: 1.25; }
.header-phone b { display: block; font-size: 16px; }
.header-phone small { color: var(--muted); font-size: 12px; }
.header-cta { padding: 10px 20px; font-size: 15px; }
.burger {
  display: none; width: 44px; height: 44px; border: none; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px; padding: 10px;
}
.burger span { display: block; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav {
    display: none; position: absolute; top: 100%; left: -20px; right: -20px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 10px 20px 16px; gap: 2px;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav ul, .nav li { display: block; }
  .nav a { display: block; padding: 12px 14px; font-size: 16px; }
  .burger { display: flex; }
  .header-phone small { display: none; }
  .header-cta { display: none; }
}
@media (max-width: 560px) { .header-phone b { font-size: 14px; } .logo__text { font-size: 16px; } .logo__text small { display: none; } }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #3a1135 0%, #531d4d 60%, #6b2762 100%);
  color: #fff; padding: 64px 0 56px;
}
.hero h1 { margin: 0 0 14px; font-size: clamp(28px, 4.6vw, 44px); line-height: 1.18; letter-spacing: -.3px; }
.hero p.sub { margin: 0 0 28px; font-size: clamp(16px, 2.2vw, 19px); color: rgba(255,255,255,.82); max-width: 640px; }
.hero__in { max-width: 780px; }
.hero-search { display: flex; gap: 10px; max-width: 620px; margin-bottom: 18px; }
.hero-search input {
  flex: 1; padding: 15px 18px; font-size: 16px; border-radius: 10px; border: none; outline: none;
  color: var(--ink); min-width: 0;
}
.hero-search .btn { flex-shrink: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-badges { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-badges div { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: rgba(255,255,255,.9); }
@media (max-width: 560px) {
  .hero { padding: 40px 0 36px; }
  .hero-search { flex-direction: column; }
  .hero-badges { gap: 12px; flex-direction: column; align-items: flex-start; }
}

/* ---------- Секции ---------- */
.section { padding: 60px 0; }
.section--alt { background: var(--surface); }
.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head h2 { margin: 0 0 8px; font-size: clamp(23px, 3.2vw, 32px); line-height: 1.25; letter-spacing: -.2px; }
.section-head p { margin: 0; color: var(--muted); font-size: 16.5px; }
.section-foot { margin-top: 28px; text-align: center; }
@media (max-width: 560px) { .section { padding: 42px 0; } }

/* Карточки услуг */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; }
.svc-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-decoration: none; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.svc-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.svc-card__icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--pink-bg);
  display: grid; place-items: center; font-size: 23px;
}
.svc-card b { font-size: 17px; line-height: 1.3; }
.svc-card span { color: var(--muted); font-size: 14px; flex: 1; }
.svc-card em { font-style: normal; font-weight: 700; color: var(--accent-dark); font-size: 15px; }

/* Бренды */
.brand-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-chips a {
  padding: 9px 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500;
}
.brand-chips a:hover { border-color: var(--accent); color: var(--accent-dark); }

/* Преимущества */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.feat { display: flex; flex-direction: column; gap: 9px; }
.feat__icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--pink-bg);
  display: grid; place-items: center; font-size: 22px;
}
.feat b { font-size: 17px; }
.feat span { color: var(--muted); font-size: 14.5px; }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 18px; counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: relative; counter-increment: step;
}
.step::before {
  content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px;
  background: var(--brand); color: var(--pink); border-radius: 50%;
  font-weight: 800; font-size: 16px;
}
.step b { display: block; margin-bottom: 5px; font-size: 16.5px; }
.step span { color: var(--muted); font-size: 14.5px; }

/* Статьи */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.post-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; text-decoration: none; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.post-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.post-card time { color: var(--muted); font-size: 13px; }
.post-card b { font-size: 17.5px; line-height: 1.35; }
.post-card p { margin: 0; color: var(--muted); font-size: 14.5px; flex: 1; }
.post-card u { text-decoration: none; color: var(--accent-dark); font-weight: 600; font-size: 14.5px; }

/* CTA-полоса */
.cta-band {
  background: linear-gradient(135deg, #3a1135, #6b2762); border-radius: 18px; padding: 44px 40px;
  color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 6px; font-size: clamp(21px, 3vw, 28px); }
.cta-band p { margin: 0; color: rgba(255,255,255,.8); }
@media (max-width: 700px) { .cta-band { padding: 30px 24px; } }

/* Контакты */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.contact-card b { display: block; margin-bottom: 6px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; font-size: 12.5px; }
.contact-card div { font-size: 16px; line-height: 1.55; }
.contact-card a { color: var(--accent-dark); text-decoration: none; font-weight: 600; }

/* ---------- Контент страниц ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 38px 0; }
.page-hero h1 { margin: 0; font-size: clamp(24px, 3.6vw, 36px); line-height: 1.2; }
.page-hero .crumbs { margin-bottom: 8px; font-size: 13.5px; color: rgba(255,255,255,.6); }
.page-hero .crumbs a { color: rgba(255,255,255,.8); text-decoration: none; }
.content-area { padding: 44px 0 64px; }
.entry-content { max-width: 800px; }
.entry-content h2 { font-size: 24px; margin: 34px 0 12px; line-height: 1.3; }
.entry-content h3 { font-size: 19px; margin: 26px 0 10px; }
.entry-content p, .entry-content li { font-size: 16.5px; color: #2a3444; }
.entry-content li { margin-bottom: 6px; }
.entry-content a { color: var(--accent-dark); }
.entry-content img { border-radius: 12px; }
.entry-content table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.entry-content td, .entry-content th { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content figure.wp-block-table { margin: 18px 0; overflow-x: auto; }
.entry-content blockquote { border-left: 3px solid var(--accent); margin: 20px 0; padding: 4px 0 4px 18px; color: var(--muted); }
.post-meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; max-width: 800px; }
.post-nav a { text-decoration: none; color: var(--accent-dark); font-weight: 600; font-size: 15px; }

/* Архив */
.archive-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; max-width: 1000px; }
.pagination { margin-top: 32px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  padding: 8px 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; text-decoration: none; font-size: 15px;
}
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- WooCommerce ---------- */
.woocommerce-breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.woocommerce-breadcrumb a { color: var(--muted); }
.woocommerce div.product .product_title { font-size: clamp(22px, 3vw, 30px); line-height: 1.25; }
.woocommerce div.product p.price { font-size: 26px; font-weight: 800; color: var(--accent-dark); }
.woocommerce div.product .summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.woocommerce ul.products li.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.woocommerce button.button, .woocommerce a.button, .woocommerce .button.alt {
  background: var(--accent) !important; color: #1a2332 !important; border-radius: 10px !important;
  font-weight: 700 !important; padding: 12px 24px !important;
}
.woocommerce-message, .woocommerce-info { border-top-color: var(--accent); }

.single-product .product_title { display: none; }
.single-product div.product { display: flex; gap: 28px; flex-wrap: wrap; }
.single-product div.product .summary { flex: 1; min-width: 280px; }

/* ---------- Футер ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.82); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 36px; padding: 48px 0 36px; }
.site-footer h4 { margin: 0 0 14px; color: #fff; font-size: 15.5px; }
.site-footer p, .site-footer li { font-size: 14.5px; line-height: 1.7; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .f-logo { font-weight: 800; font-size: 18px; color: #fff; margin-bottom: 10px; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0;
  font-size: 13.5px; color: rgba(255,255,255,.55);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
@media (max-width: 800px) { .site-footer__grid { grid-template-columns: 1fr; gap: 26px; padding: 36px 0 24px; } }

/* 404 */
.err404 { text-align: center; padding: 90px 20px; }
.err404 h1 { font-size: 68px; margin: 0; color: var(--accent); }

.screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
