/* ═══════════════════════════════════════════════════════════════
   VetAI — Shared Styles for Legal Documents
   ООО «Технологии Репликации» | vet2099.online
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400&family=Nunito+Sans:wght@400;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #FF6B35;
  --pink:   #FF6B9D;
  --teal:   #06D6A0;
  --purple: #7B5EA7;
  --text:   #2D2D2D;
  --muted:  #666;
  --light:  #888;
  --bg:     #FFF9F5;
  --white:  #FFFFFF;
  --border: #E8E0D8;
}

body {
  font-family: 'Nunito Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* ── Print page ─────────────────────────────────────────────── */
.page {
  max-width: 860px;
  margin: 40px auto;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(255,107,53,.10), 0 1px 4px rgba(0,0,0,.06);
}

/* ── Header ─────────────────────────────────────────────────── */
.doc-header {
  background: linear-gradient(135deg, #FF6B35 0%, #FF6B9D 60%, #7B5EA7 100%);
  padding: 36px 48px 32px;
  position: relative;
  overflow: hidden;
}
.doc-header::before {
  content: '🐾';
  position: absolute;
  right: -10px;
  top: -20px;
  font-size: 120px;
  opacity: .08;
  transform: rotate(15deg);
  line-height: 1;
}
.doc-header::after {
  content: '🐾';
  position: absolute;
  right: 60px;
  bottom: -30px;
  font-size: 80px;
  opacity: .06;
  transform: rotate(-10deg);
  line-height: 1;
}
.header-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.logo-mark {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,.25);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border: 2px solid rgba(255,255,255,.4);
  flex-shrink: 0;
}
.logo-text { color: #fff; }
.logo-text strong {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 22px;
  display: block;
  line-height: 1.1;
}
.logo-text span {
  font-size: 12px;
  opacity: .8;
}
.doc-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 8px;
}
.doc-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.doc-badge {
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.3);
}

/* ── Body ───────────────────────────────────────────────────── */
.doc-body {
  padding: 44px 48px 52px;
}

/* ── Typography ─────────────────────────────────────────────── */
h1 { font-family:'Nunito',sans-serif; font-weight:900; font-size:22px; color:var(--orange); margin:32px 0 12px; }
h2 { font-family:'Nunito',sans-serif; font-weight:800; font-size:18px; color:var(--text); margin:28px 0 10px; padding-left:12px; border-left:4px solid var(--orange); }
h3 { font-family:'Nunito',sans-serif; font-weight:700; font-size:15px; color:var(--text); margin:20px 0 8px; }
p  { margin-bottom:12px; }
ul, ol { margin:10px 0 14px 22px; }
li { margin-bottom:6px; }
strong { font-weight:700; }
em { font-style:italic; }

/* ── Special blocks ─────────────────────────────────────────── */
.highlight-box {
  background: rgba(255,107,53,.06);
  border: 1.5px solid rgba(255,107,53,.2);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
}
.highlight-box.teal {
  background: rgba(6,214,160,.06);
  border-color: rgba(6,214,160,.25);
}
.highlight-box.purple {
  background: rgba(123,94,167,.06);
  border-color: rgba(123,94,167,.2);
}
.highlight-box .icon { font-size: 20px; margin-right: 8px; }

/* ── Requisites table ───────────────────────────────────────── */
.req-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0;
}
.req-grid .req-label {
  background: #faf7f4;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  border-bottom: 1px solid var(--border);
}
.req-grid .req-value {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.req-grid .req-label:last-of-type,
.req-grid .req-label:nth-last-child(2) { border-bottom: none; }
.req-grid .req-value:last-child { border-bottom: none; }

/* ── Tariff cards ───────────────────────────────────────────── */
.tariff-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  margin: 20px 0;
}
.tariff-card {
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}
.tariff-card.featured {
  border-color: var(--orange);
  background: rgba(255,107,53,.03);
  box-shadow: 0 4px 16px rgba(255,107,53,.12);
}
.tariff-name { font-family:'Nunito',sans-serif; font-weight:900; font-size:20px; margin-bottom:6px; }
.tariff-price { font-family:'Nunito',sans-serif; font-weight:900; font-size:28px; color:var(--orange); }
.tariff-period { font-size:12px; color:var(--light); }
.tariff-features { list-style:none; margin:12px 0 0; padding:0; text-align:left; font-size:13px; }
.tariff-features li { padding:4px 0; border-bottom:1px solid #f5f0eb; display:flex; gap:8px; }
.tariff-features li:last-child { border-bottom:none; }
.feat-check { color:var(--teal); font-weight:700; flex-shrink:0; }
.feat-x     { color:#ccc; flex-shrink:0; }

/* ── Steps ──────────────────────────────────────────────────── */
.steps { list-style:none; margin:16px 0; padding:0; }
.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f5f0eb;
}
.steps li:last-child { border-bottom:none; }
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Footer ─────────────────────────────────────────────────── */
.doc-footer {
  background: linear-gradient(135deg, #1E2330 0%, #2d1810 100%);
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  color: #fff;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-info {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  line-height: 1.6;
  text-align: right;
}
.footer-pets { font-size: 22px; letter-spacing: 4px; opacity: .4; }

/* ── Print styles ───────────────────────────────────────────── */
@media print {
  body { background: #fff; }
  .page { box-shadow:none; margin:0; border-radius:0; }
  .doc-header { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
}

/* ── Divider ────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 2px dashed rgba(255,107,53,.15);
  margin: 28px 0;
}

.section-icon { font-size: 20px; margin-right: 8px; vertical-align: middle; }

.tag {
  display: inline-block;
  background: rgba(255,107,53,.1);
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin: 2px;
}
