/* ═══════════════════════════════════════
   panoff.dev — editorial / document style
═══════════════════════════════════════ */

:root {
  --bg: #ffffff;
  --surface: #f6f5f2;
  --ink: #0b0d12;
  --ink-2: #2a2d35;
  --muted: #6b6f78;
  --accent: #2b6eff;
  --accent-ink: #ffffff;
  --border: #e6e4de;
  --border-strong: #c9c6bd;
  --radius: 4px;
  --maxw: 1100px;
  --narrow: 760px;
  --shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 12px 32px -16px rgba(11, 13, 18, .12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Golos Text', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap.narrow {
  max-width: var(--narrow);
}

.ta-c {
  text-align: center;
}

.ta-r {
  text-align: right;
}

/* ── reveal ── */
.up {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease var(--d, 0s), transform .6s ease var(--d, 0s);
}

.up.vis {
  opacity: 1;
  transform: none;
}

/* ── HEADER ── */
.hd {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 16px;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 13px;
}

.brand-name b {
  font-weight: 700;
}

.hd-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hd-msg {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color .15s, color .15s;
}

.hd-msg:hover {
  text-decoration: none;
  border-color: var(--ink);
  color: var(--ink);
}

.hd-msg img {
  border-radius: 4px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  transition: transform .08s ease, background .15s, border-color .15s, color .15s;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-ghost {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-link {
  background: transparent;
  color: var(--ink-2);
  padding: 11px 8px;
  border: none;
}

.btn-link:hover {
  color: var(--accent);
}

.btn-link img {
  border-radius: 3px;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 16px;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ── HERO ── */
.hero {
  padding: 84px 0 64px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
  margin-bottom: 28px;
}

.hero-eyebrow img {
  border-radius: 4px;
}

.hero-h1 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 6.5vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--ink);
  max-width: 14ch;
}

.hero-h1 em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 58%, color-mix(in srgb, var(--accent) 40%, transparent) 58%);
  padding: 0 3px;
}

.hero-sub strong {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.hero-sub {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-2);
  max-width: 60ch;
  margin: 0 0 36px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.hero-meta {
  color: var(--muted);
  font-size: 14px;
}

/* ── SECTIONS / TYPOGRAPHY ── */
.section {
  padding: 88px 0;
  border-top: 1px solid var(--border);
}

.section-tinted {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.label {
  display: inline-block;
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.sec-h {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 36px;
  color: var(--ink);
}

/* ── ABOUT ── */
.about-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}

.about-photo {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-initials {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 80px;
  color: var(--border-strong);
}

.about-photo.no-photo .about-initials {
  display: grid;
}

.about-text p {
  color: var(--ink-2);
  margin: 0 0 16px;
}

.about-text .sec-h {
  margin-bottom: 20px;
}

.about-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 24px 0 16px;
}

.about-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
}

.about-contacts a:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.about-contacts img {
  border-radius: 3px;
}

.about-footnote {
  color: var(--muted);
  font-size: 14px;
}

/* ── TASKS ── */
.tasks {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.tasks li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}

.tasks li:last-child {
  border-bottom: 1px solid var(--border);
}

.tasks-num {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.tasks-text {
  font-size: 18px;
  color: var(--ink);
  line-height: 1.45;
}

.tasks-foot {
  color: var(--muted);
  font-size: 15px;
}

/* ── WORKS ── */
.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}

.work-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.work-img,
.work-img-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  background: var(--surface);
}

.work-img-placeholder {
  display: grid;
  place-items: center;
  font-size: 48px;
  color: var(--border-strong);
}

.work-body {
  padding: 18px 20px 20px;
}

.work-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--ink);
}

.work-desc {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 12px;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wtag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.works-placeholder {
  grid-column: 1/-1;
  padding: 48px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 8px;
}

/* skeletons */
.skeleton {
  background: linear-gradient(90deg, #ececec 0%, #f5f5f3 50%, #ececec 100%);
  background-size: 200% 100%;
  animation: sk 1.4s linear infinite;
  border-radius: 4px;
}

.skel-img {
  aspect-ratio: 16/10;
  border-radius: 0;
}

.skel-line {
  height: 12px;
  margin-bottom: 8px;
}

.w55 {
  width: 55%;
}

.w60 {
  width: 60%;
}

.w65 {
  width: 65%;
}

.w70 {
  width: 70%;
}

.w85 {
  width: 85%;
}

.w90 {
  width: 90%;
}

@keyframes sk {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ── PRICE TABLE ── */
.price-table {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
  margin-bottom: 24px;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr 160px 140px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.price-row:last-child {
  border-bottom: none;
}

.price-row.price-head {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  padding: 14px 24px;
}

.price-row strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.price-row .price-note {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.price-row>div:nth-child(2) {
  color: var(--ink-2);
  font-size: 15px;
}

.price-row>div:nth-child(3) {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 18px;
}

.price-foot {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 24px;
  max-width: 60ch;
}

/* ── STEPS ── */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: s;
}

.steps li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.steps li:last-child {
  border-bottom: 1px solid var(--border);
}

.step-n {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  color: var(--accent);
  font-size: 22px;
}

.step-t {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 6px;
  color: var(--ink);
}

.step-b {
  color: var(--ink-2);
  font-size: 16px;
}

/* ── REVIEWS ── */
.reviews {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.rev-stars {
  color: #f5b30c;
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-size: 14px;
}

.rev-text {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 18px;
}

.rev-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.rev-author {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.rev-source-link {
  font-size: 13px;
  color: var(--muted);
}

/* ── FAQ ── */
.faq {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Unbounded', sans-serif;
  font-weight: 500;
  font-size: 17px;
  text-align: left;
  color: var(--ink);
}

.faq-q:hover {
  color: var(--accent);
}

.faq-i {
  font-family: 'Golos Text', sans-serif;
  font-weight: 400;
  font-size: 24px;
  color: var(--muted);
  transition: transform .2s;
}

.faq-item.open .faq-i {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  color: var(--ink-2);
}

.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 0 22px;
}

/* ── CTA FINAL ── */
.cta-final {
  background: var(--ink);
  color: var(--bg);
  border-top: none;
}

.cta-final .label {
  color: rgba(255, 255, 255, .5);
}

.cta-final .sec-h {
  color: var(--bg);
  margin-bottom: 14px;
}

.cta-final .cta-sub {
  color: rgba(255, 255, 255, .65);
  margin: 0 auto 32px;
  max-width: 50ch;
}

.cta-final .btn-primary {
  background: var(--accent);
}

.cta-final .btn-primary:hover {
  background: #4a83ff;
}

.cta-final .btn-link {
  color: rgba(255, 255, 255, .7);
}

.cta-final .btn-link:hover {
  color: var(--bg);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

/* ── FOOTER ── */
.ft {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.ft-wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ft a {
  color: var(--muted);
}

.ft a:hover {
  color: var(--ink);
}

/* ── MODAL ── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(11, 13, 18, .5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.overlay.show {
  display: flex;
}

.modal {
  position: relative;
  background: var(--bg);
  border-radius: 12px;
  width: 100%;
  max-width: 460px;
  padding: 36px 32px 32px;
  box-shadow: var(--shadow);
  max-height: 92vh;
  overflow: auto;
}

.modal.lb {
  max-width: 760px;
}

.modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--ink-2);
  display: grid;
  place-items: center;
}

.modal-x:hover {
  background: var(--border);
  color: var(--ink);
}

.modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 8px;
  background: var(--surface);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

.modal-eyebrow img {
  border-radius: 3px;
}

.modal-h {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--ink);
}

.modal-p {
  color: var(--ink-2);
  font-size: 15px;
  margin: 0 0 22px;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field>span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.field em {
  color: var(--accent);
  font-style: normal;
}

.field em.dim {
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color .15s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.field textarea {
  resize: vertical;
  min-height: 80px;
}

.modal-fine {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 0;
  line-height: 1.5;
}

.modal-fine a {
  color: var(--muted);
  text-decoration: underline;
}

.modal-ok {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
  margin: 0 auto 18px;
}

#modal-success {
  text-align: center;
}

/* ── LIGHTBOX ── */
.lb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.lb-imgs {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.lb-imgs img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  .hd {
    padding: 12px 16px;
  }

  .hd-msg span {
    display: none;
  }

  .hd-msg {
    padding: 7px 9px;
  }

  .wrap {
    padding: 0 16px;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .section {
    padding: 64px 0;
  }

  .about-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-photo {
    max-width: 220px;
    aspect-ratio: 1;
  }

  .works {
    grid-template-columns: 1fr;
  }

  .reviews {
    grid-template-columns: 1fr;
  }

  .price-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 18px;
  }

  .price-row.price-head {
    display: none;
  }

  .price-row>div:nth-child(3) {
    text-align: left;
  }

  .price-row>div:nth-child(3)::before {
    content: 'От: ';
    color: var(--muted);
    font-family: 'Golos Text', sans-serif;
    font-weight: 400;
    font-size: 14px;
  }

  .steps li {
    grid-template-columns: 56px 1fr;
    gap: 16px;
    padding: 22px 0;
  }

  .tasks li {
    grid-template-columns: 44px 1fr;
    gap: 14px;
  }

  .modal {
    padding: 32px 22px 24px;
  }
}

@media (max-height: 900px) and (min-width: 821px) {
  .hero {
    padding: 46px 0 36px;
  }

  .hero-eyebrow {
    margin-bottom: 16px;
  }

  .hero-h1 {
    font-size: clamp(36px, 5.4vw, 68px);
    margin-bottom: 16px;
  }

  .hero-sub {
    font-size: 16px;
    margin-bottom: 18px;
  }

  .hero-cta {
    margin-bottom: 14px;
  }

  .section {
    padding: 60px 0;
  }

  .sec-h {
    margin-bottom: 28px;
  }

  .about-wrap {
    gap: 40px;
  }
}

@media (max-height: 780px) and (min-width: 821px) {
  .hd {
    padding: 12px 20px;
  }

  .hero {
    padding: 36px 0 28px;
  }

  .hero-eyebrow {
    margin-bottom: 16px;
  }

  .hero-h1 {
    font-size: clamp(34px, 5vw, 64px);
    margin-bottom: 16px;
  }

  .hero-sub {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .hero-cta {
    margin-bottom: 16px;
  }

  .section {
    padding: 56px 0;
  }

  .tasks li,
  .steps li {
    padding: 20px 0;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .btn-link {
    padding: 11px 4px;
    font-size: 14px;
  }

  .hero-cta {
    gap: 4px;
  }
}