/* =========================================================
   PrintMaster — Стили для сайта калибровки и сервиса принтеров
   ========================================================= */

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
  background: #f8fafc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { display: block; }

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   КНОПКИ
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}
.btn--primary:hover {
  background: #15803d;
  border-color: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.35);
}

.btn--tg {
  background: #0284c7;
  color: #fff;
  border-color: #0284c7;
}
.btn--tg:hover {
  background: #0369a1;
  border-color: #0369a1;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}

.btn--outline {
  background: transparent;
  color: #16a34a;
  border-color: #16a34a;
}
.btn--outline:hover { background: #dcfce7; }

.btn--lg { padding: 14px 30px; font-size: 1.05rem; border-radius: 12px; }
.btn--sm { padding: 8px 16px; font-size: 0.875rem; border-radius: 8px; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo__icon { width: 38px; height: 38px; }
.logo__titles { display: flex; flex-direction: column; }
.logo__text {
  font-size: 1.25rem;
  color: #0f172a;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.3px;
}
.logo__text strong { color: #16a34a; font-weight: 800; }
.logo__sub { font-size: 0.72rem; color: #64748b; font-weight: 500; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.92rem;
  color: #475569;
  font-weight: 500;
  transition: all 0.18s;
}
.nav__link:hover { color: #16a34a; background: #f0fdf4; }

.header__contacts {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header__phone { font-weight: 700; letter-spacing: 0.2px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  width: 24px;
  height: 2px;
  background: #334155;
  border-radius: 2px;
  transition: all 0.3s;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 60px 0 70px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.hero__badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #15803d;
  background: #dcfce7;
  padding: 5px 12px;
  border-radius: 20px;
}
.hero__badge--rating {
  color: #b45309;
  background: #fef3c7;
}

.hero__title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.hero__title span {
  background: linear-gradient(135deg, #16a34a 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__desc {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 30px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero__stats {
  display: flex;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}
.stat { display: flex; flex-direction: column; }
.stat__num { font-size: 1.45rem; font-weight: 800; color: #0f172a; line-height: 1.1; }
.stat__label { font-size: 0.82rem; color: #64748b; margin-top: 4px; }

/* Visual card */
.hero__card-box {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
  position: relative;
}
.color-spectrum {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}
.color-spectrum span { flex: 1; height: 100%; }

.spectro-info { margin-bottom: 20px; }
.spectro-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.spectro-info h3 { font-size: 1.25rem; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.spectro-info p { font-size: 0.9rem; color: #64748b; line-height: 1.5; }

.hero__badge-float {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-top: 10px;
}

/* =========================================================
   СЕКЦИИ И ЗАГОЛОВКИ
   ========================================================= */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #16a34a;
  background: #dcfce7;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.section-desc { font-size: 1.05rem; color: #64748b; line-height: 1.6; }

/* ===================== УСЛУГИ GRID ===================== */
.services { background: #fff; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.08);
}
.service-card--highlight {
  background: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 100%);
  border-color: #bbf7d0;
}
.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-card__icon svg { width: 26px; height: 26px; }

.service-card__title { font-size: 1.2rem; font-weight: 700; color: #0f172a; margin-bottom: 12px; }
.service-card__desc { font-size: 0.92rem; color: #64748b; line-height: 1.55; margin-bottom: 20px; flex-grow: 1; }

.service-card__list {
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-card__list li {
  font-size: 0.88rem;
  color: #334155;
  position: relative;
  padding-left: 18px;
}
.service-card__list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: #16a34a;
  font-weight: bold;
}
.service-card__list strong { color: #0f172a; }

/* ===================== ОБОРУДОВАНИЕ ===================== */
.equipment { background: #0f172a; color: #fff; }
.equipment .section-title { color: #fff; }
.equipment .section-desc { color: #94a3b8; }
.equipment .section-badge { background: rgba(34, 197, 94, 0.15); color: #4ade80; }

.equipment__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}
.equip-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 26px;
}
.equip-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.equip-card__header h3 { font-size: 1.2rem; font-weight: 700; color: #f8fafc; }
.equip-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.equip-card p { font-size: 0.92rem; color: #94a3b8; line-height: 1.6; }

.soft-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: #1e293b;
  border: 1px solid #334155;
  padding: 16px 20px;
  border-radius: 12px;
}
.soft-title { font-size: 0.9rem; font-weight: 700; color: #f8fafc; margin-right: 8px; }
.soft-tag {
  font-size: 0.82rem;
  color: #cbd5e1;
  background: #334155;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: monospace;
}

/* ===================== ПРАЙС-ЛИСТ ===================== */
.prices { background: #f8fafc; }
.price-table-wrap {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.price-table th {
  background: #f1f5f9;
  padding: 16px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #e2e8f0;
}
.price-table td {
  padding: 16px 20px;
  font-size: 0.95rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}
.price-table tr:last-child td { border-bottom: none; }
.price-val {
  font-weight: 800;
  color: #16a34a;
  font-size: 1.1rem;
  white-space: nowrap;
}
.price-val--free { color: #0284c7; }
.price-val small { font-size: 0.78rem; font-weight: normal; color: #64748b; display: block; }

.price-note {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
  color: #475569;
}

/* ===================== ПРЕИМУЩЕСТВА ===================== */
.advantages { background: #fff; }
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.adv-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  position: relative;
}
.adv-card__num {
  font-size: 2.2rem;
  font-weight: 900;
  color: #e2e8f0;
  line-height: 1;
  margin-bottom: 12px;
}
.adv-card h3 { font-size: 1.1rem; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.adv-card p { font-size: 0.88rem; color: #64748b; line-height: 1.5; }

/* ===================== КОНТАКТЫ ===================== */
.contact { background: #f1f5f9; }
.contact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.contact__card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s;
}
.contact__card:hover { transform: translateY(-3px); }

.contact__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.contact__icon svg { width: 26px; height: 26px; }
.contact__icon--tg { background: #e0f2fe; color: #0284c7; }
.contact__icon--avito { background: #ffedd5; color: #ea580c; }

.contact__card h3 { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.contact__link {
  font-size: 1.1rem;
  font-weight: 700;
  color: #16a34a;
  margin-bottom: 6px;
  transition: color 0.2s;
}
.contact__link:hover { color: #15803d; text-decoration: underline; }
.contact__card--tg .contact__link { color: #0284c7; }
.contact__card--tg .contact__link:hover { color: #0369a1; }

.contact__link-text { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.contact__note { font-size: 0.82rem; color: #64748b; line-height: 1.4; }

/* ===================== FOOTER ===================== */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 36px 0;
  border-top: 1px solid #1e293b;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer .logo__text { color: #fff; }
.footer .logo__sub { color: #64748b; }
.footer__copy { font-size: 0.88rem; color: #64748b; }
.footer__nav { display: flex; gap: 16px; }
.footer__nav a { font-size: 0.88rem; color: #94a3b8; transition: color 0.2s; }
.footer__nav a:hover { color: #4ade80; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .advantages__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__title { font-size: 2rem; }
  .services__grid { grid-template-columns: 1fr; }
  .equipment__grid { grid-template-columns: 1fr; }
  .advantages__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .header__phone span { display: none; }
  .footer__inner { flex-direction: column; text-align: center; gap: 16px; }
}

/* ===================== FAQ ACCORDION ===================== */
.faq { background: #fff; }
.faq__list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafc;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: #cbd5e1; }
.faq-question {
  width: 100%;
  padding: 18px 22px;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}
.faq-question svg {
  color: #64748b;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-question[aria-expanded="true"] svg {
  transform: rotate(180deg);
  color: #16a34a;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 22px;
}
.faq-answer p {
  padding-bottom: 20px;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.65;
}

@media (max-width: 768px) {
  .nav--open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 24px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
  }
}
