/*
Theme Name: Ноутбук 1 Коломна
Theme URI: https://example.com
Author: Ноутбук 1 Коломна
Author URI: https://example.com
Description: Тема для сайта мастерской по ремонту ноутбуков «Ноутбук 1 Коломна». Все незаполненные разделы (услуги, цены, команда, примеры работ «до/после», отзывы, вопросы, бренды, контакты, тексты hero-блока) редактируются из панели администратора WordPress — либо через отдельные пункты меню (Услуги, Команда и т.д.), либо через «Настройки сайта» в Настройщике (Внешний вид → Настроить). Требует плагин Advanced Custom Fields (бесплатная версия).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
Text Domain: nk
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --ink: #12181f;
  --ink-soft: #4a5568;
  --paper: #ffffff;
  --paper-soft: #f4f6f9;
  --line: #e2e6ec;
  --brand: #1d4ed8;
  --brand-dark: #1435a1;
  --accent: #f59e0b;
  --ok: #16a34a;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(18, 24, 31, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: clamp(26px, 3.5vw, 36px); }
h3 { font-size: 19px; }
p { color: var(--ink-soft); margin: 0 0 12px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--brand); background: #eef2ff;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Draft banner */
.draft-banner {
  background: var(--accent); color: #1a1200; text-align: center;
  font-size: 14px; font-weight: 600; padding: 8px 16px;
}

/* Header */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: 1160px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; color: var(--ink); }
.logo .mark { width: 36px; height: 36px; flex-shrink: 0; }
.logo .mark svg, .logo .mark img { width: 100%; height: 100%; object-fit: contain; }
nav.main { display: flex; gap: 24px; }
nav.main ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
nav.main a { font-size: 14.5px; font-weight: 500; text-decoration: none; color: var(--ink); }
nav.main a:hover { color: var(--brand); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.phone { font-weight: 700; font-size: 15px; white-space: nowrap; text-decoration: none; color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 14.5px;
  text-decoration: none; border: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-accent { background: var(--accent); color: #1a1200; }
.burger { display: none; font-size: 24px; background: none; border: none; cursor: pointer; }

/* Hero */
.hero { background: var(--paper-soft); padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.4vw, 46px); }
.hero .lead { font-size: 17px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin: 24px 0 32px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.stat b { display: block; font-size: 24px; color: var(--brand); }
.stat span { font-size: 13.5px; color: var(--ink-soft); }
.hero-badges { display: grid; gap: 10px; }
.hero-badge {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; box-shadow: var(--shadow);
}
.hero-badge .ico { font-size: 20px; }
.hero-badge strong { display: block; font-size: 14.5px; }
.hero-badge span { font-size: 13px; color: var(--ink-soft); }
.hero-photo { border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.buyback-photo { border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; border: 2px solid rgba(255,255,255,.25); }
.buyback-photo img { width: 100%; height: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }

/* Expertise (фото разобранного ноутбука) */
.expertise-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
.expertise-points { list-style: none; margin: 20px 0 28px; padding: 0; display: grid; gap: 14px; }
.expertise-points li { display: flex; gap: 12px; align-items: flex-start; }
.expertise-points .dot {
  flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
}
.expertise-points strong { display: block; font-size: 14.5px; }
.expertise-points span { font-size: 13.5px; color: var(--ink-soft); }
.expertise-photo {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; display: flex; align-items: center; justify-content: center;
}
.expertise-photo img { width: 100%; height: auto; display: block; }

/* Brands */
.brand-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.brand-chip {
  border: 1px solid var(--line); border-radius: 10px; padding: 16px 8px;
  text-align: center; font-weight: 600; font-size: 13.5px; color: var(--ink-soft); background: #fff;
}
.brand-chip img { max-height: 24px; margin: 0 auto; object-fit: contain; }

/* Services */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card .ico {
  width: 44px; height: 44px; border-radius: 10px; background: #eef2ff; color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px;
}
.card .price-from { font-weight: 700; color: var(--brand); margin-top: 10px; display: block; }
#services .card { padding: 0; overflow: hidden; }
#services .card .card-photo { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--paper-soft); }
#services .card .card-body { padding: 22px 26px 26px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step { position: relative; padding-top: 8px; }
.step .num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px;
}

/* Pricing table */
table.price { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.price th, table.price td { text-align: left; padding: 14px 18px; font-size: 14.5px; border-bottom: 1px solid var(--line); }
table.price th { background: var(--paper-soft); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-soft); }
table.price td.price-cell { font-weight: 700; color: var(--brand); white-space: nowrap; }
.price-note { font-size: 13.5px; color: var(--ink-soft); margin-top: 14px; }

/* Buyback banner */
.buyback {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
  border-radius: var(--radius); padding: 40px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: center;
}
.buyback h2, .buyback p { color: #fff; }
.buyback .btn-accent { align-self: start; }

/* Advantages */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.adv-card { text-align: left; }
.adv-card .ico { font-size: 26px; margin-bottom: 10px; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card { text-align: center; }
.avatar {
  width: 100%; aspect-ratio: 1; border-radius: 14px; background: var(--paper-soft);
  display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--ink-soft);
  margin-bottom: 14px; border: 1px dashed var(--line); overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin-bottom: 2px; }
.team-card .role { font-size: 13.5px; color: var(--brand); font-weight: 600; }

/* Before/after */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ba-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.ba-imgs { display: grid; grid-template-columns: 1fr 1fr; }
.ba-imgs div, .ba-imgs img {
  aspect-ratio: 4/3; background: var(--paper-soft); display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--ink-soft); border: 1px dashed var(--line); object-fit: cover; width: 100%;
}
.ba-imgs img { border-style: solid; }
.ba-body { padding: 16px 18px; }
.ba-body h3 { font-size: 15.5px; margin-bottom: 4px; }
.ba-body p { font-size: 13.5px; margin: 0; }

/* Testimonials */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rev-stars { color: var(--accent); font-size: 15px; margin-bottom: 10px; }
.rev-name { font-weight: 700; font-size: 14.5px; margin-top: 12px; }
.rev-meta { font-size: 12.5px; color: var(--ink-soft); }
.rating-strip { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 28px; }
.rating-chip { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.rating-chip b { color: var(--ink); font-size: 16px; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card { text-decoration: none; display: block; }
.blog-card .blog-thumb {
  aspect-ratio: 16/9; background: var(--paper-soft); display: block; object-fit: cover;
  border-radius: 10px; margin-bottom: 14px; width: 100%;
}
.blog-tag { font-size: 12px; font-weight: 600; color: var(--brand); text-transform: uppercase; letter-spacing: .03em; }
.blog-card h3 { color: var(--ink); }
.blog-more-link { font-weight: 600; color: var(--brand); font-size: 13.5px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
details.faq-item { border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; background: #fff; }
details.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-size: 20px; color: var(--brand); }
details.faq-item[open] summary::after { content: "–"; }
details.faq-item .faq-answer { margin-top: 12px; margin-bottom: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-info-item .ico { font-size: 20px; }
.contact-info-item strong { display: block; font-size: 14.5px; }
.contact-info-item span, .contact-info-item a { font-size: 13.5px; color: var(--ink-soft); text-decoration: none; }
.map-placeholder {
  aspect-ratio: 16/10; background: var(--paper-soft); border: 1px dashed var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 13px; margin-top: 24px; overflow: hidden;
}
.map-placeholder iframe { width: 100%; height: 100%; border: 0; }
form.contact-form { background: var(--paper-soft); border-radius: var(--radius); padding: 28px; }
form.contact-form .field { margin-bottom: 14px; }
form.contact-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
form.contact-form input, form.contact-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 9px; border: 1px solid var(--line); font-size: 14.5px; font-family: inherit;
}
form.contact-form .btn { width: 100%; margin-top: 6px; }
.form-note { font-size: 12px; color: var(--ink-soft); margin-top: 10px; text-align: center; }

/* CTA strip */
.cta-strip { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 44px; text-align: center; }
.cta-strip h2 { color: #fff; }
.cta-strip p { color: #cbd3df; }
.cta-strip .hero-actions { justify-content: center; }

/* Footer */
footer.site { background: #0f1420; color: #aab3c2; padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
footer.site h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 9px; font-size: 13.5px; }
footer.site a { text-decoration: none; color: #aab3c2; }
footer.site a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #232a3a; margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px;
}

/* Single post (blog article) */
.single-article { max-width: 760px; margin: 0 auto; }
.single-article .article-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; }
.single-article .article-content p { font-size: 15.5px; color: var(--ink); margin-bottom: 16px; }
.single-article .back-link { display: inline-block; margin-bottom: 20px; font-size: 14px; font-weight: 600; color: var(--brand); text-decoration: none; }

/* Empty-state notices for admins */
.nk-empty-notice {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px; color: var(--ink-soft);
  font-size: 13.5px; text-align: center; background: var(--paper-soft);
}

@media (max-width: 980px) {
  .hero-grid, .contact-grid, .buyback, .expertise-grid { grid-template-columns: 1fr; }
  .grid-3, .adv-grid, .ba-grid, .rev-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  nav.main, .phone { display: none; }
  .burger { display: block; }
  .grid-3, .adv-grid, .ba-grid, .rev-grid, .blog-grid, .team-grid, .steps { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  section { padding: 48px 0; }
}
.mobile-menu { display: none; flex-direction: column; gap: 2px; padding: 8px 24px 18px; border-top: 1px solid var(--line); }
.mobile-menu.open { display: flex; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu a { display: block; padding: 10px 0; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
