:root {
  --bg: #e9e9e9;
  --panel: #ffffff;
  --text: #1f1f1f;
  --line: #222222;
  --muted: #5d5d5d;
  --shadow: rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(14, 18, 33, 0.62);
}

.overlay.hidden {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(0, 0, 0, 0.84);
  display: grid;
  place-items: center;
  padding: 24px;
}

.image-lightbox.hidden {
  display: none;
}

.image-lightbox img {
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border: 2px solid #e6e6e6;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
  background: #fff;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 20px;
  border: none;
  background: transparent;
  color: #f5f5f5;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

.modal-card {
  width: min(860px, 100%);
  border-radius: 24px;
  background: linear-gradient(135deg, #1a1e39, #2d315f);
  color: #f2f2ff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.4);
  padding: 28px 26px;
  text-align: center;
}

.modal-card h1 {
  margin: 0 0 14px;
  color: #ffd96f;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.modal-text {
  margin: 0 0 10px;
  line-height: 1.6;
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  font-style: italic;
}

#closeModal {
  margin-top: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  background: #f1f1f1;
  color: #1f1f1f;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

#closeModal:hover {
  background: #ffffff;
}

.ps-note {
  margin: 12px 0 0;
  font-size: 0.75rem;
  color: #d9dcff;
  text-align: center;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px 28px 40px;
}

.page::before,
.page::after {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 40px;
  width: 2px;
  background: #b5b5b5;
  opacity: 0.8;
}

.page::before {
  left: 56px;
}

.page::after {
  right: 56px;
}

.cover {
  min-height: calc(100vh - 64px);
  display: block;
  text-align: center;
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
  width: min(100%, 825px);
  margin: 0 auto;
}

.phone-mockup,
.main-sheet,
.examples-sheet,
.tariffs-sheet,
.reviews-sheet,
.side-sheet {
  background: #fafafa;
  border: 1px solid #d2d2d2;
  box-shadow: 0 12px 24px var(--shadow);
  padding: 18px;
}

.phone-mockup {
  border-radius: 0;
  border-width: 0;
  padding: 12px 12px 14px;
  background: #f2f2f2;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.mock-photo-img {
  width: 100%;
  aspect-ratio: 4 / 5.8;
  max-height: 560px;
  display: block;
  object-fit: cover;
  object-position: center 20%;
  margin-bottom: 14px;
  border: 1px solid #b8b8b8;
}

.name {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.4px;
  font-weight: 300;
}

.role {
  margin: 0 0 8px;
  font-size: 2.7rem;
  letter-spacing: 0.5px;
  font-weight: 700;
  line-height: 0.95;
}

.desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.25;
}

.main-sheet h2 {
  margin: 0;
  font-size: 2.3rem;
  line-height: 0.92;
  text-align: center;
  font-weight: 700;
}

.main-sheet p {
  margin: 0;
  color: var(--muted);
}

.line {
  border-top: 1px solid #111;
  margin: 12px 0;
}

.main-sheet ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.main-sheet li {
  text-align: left;
  padding: 10px 12px 10px 34px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  background: #ffffff;
  position: relative;
  font-size: 1.02rem;
}

.main-sheet li::before {
  content: "•";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f1f1f;
}

.direction-sheet {
  background: #fafafa;
  border: 1px solid #d2d2d2;
  box-shadow: 0 12px 24px var(--shadow);
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}

.direction-sheet h3 {
  margin: 0;
  text-align: center;
  font-size: 1.95rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.reasons-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.reasons-list li {
  min-height: 38px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  color: #4f4f4f;
  font-size: 0.95rem;
  line-height: 1.25;
}

.reasons-list li::before {
  counter-increment: reasons-counter;
  content: counter(reasons-counter);
  width: 30px;
  height: 30px;
  border: 1px solid #bcbcbc;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #6b6b6b;
  background: #f7f7f7;
}

.reasons-list {
  counter-reset: reasons-counter;
}

.tariffs-sheet h4 {
  margin: 0 0 12px;
  font-size: 1.8rem;
  text-align: center;
}

.tariffs-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid #cfcfcf;
}

.tariffs-table th,
.tariffs-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #d8d8d8;
  text-align: center;
  font-size: 1rem;
}

.tariffs-table th {
  background: #f3f3f3;
  font-weight: 700;
}

.tariffs-table th:first-child,
.tariffs-table td:first-child {
  border-right: 1px solid #d8d8d8;
}

.tariffs-table tr:last-child td {
  border-bottom: none;
}

.tariffs-table th:last-child,
.tariffs-table td:last-child {
  text-align: center;
  font-weight: 700;
}

.examples-sheet h4 {
  margin: 0;
  font-size: 1.55rem;
  text-align: center;
}

.examples-lead {
  margin: 8px 0 14px;
  text-align: center;
  color: #565656;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.example-item {
  margin: 0;
  border: 1px solid #cfcfcf;
  background: #ffffff;
}

.example-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: zoom-in;
}

.example-item figcaption {
  padding: 8px;
  font-size: 0.84rem;
  line-height: 1.25;
  text-align: center;
  color: #424242;
}

.reviews-sheet h4 {
  margin: 0 0 12px;
  font-size: 1.8rem;
  text-align: center;
  letter-spacing: 0.3px;
}

.reviews-list {
  display: grid;
  gap: 10px;
}

.review-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px;
}

.review-item img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #bfbfbf;
}

.review-name {
  margin: 0 0 2px;
  text-align: left;
  font-weight: 700;
  font-size: 0.98rem;
}

.review-text {
  margin: 0;
  text-align: left;
  color: #4f4f4f;
  font-size: 0.95rem;
}

.side-sheet {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.side-sheet h4 {
  margin: 0 0 10px;
  font-size: 1.65rem;
  line-height: 1.1;
}

.side-sheet p {
  margin: 0 0 12px;
  color: var(--muted);
}

.social-links {
  margin: 8px 0;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #bdbdbd;
  background: #ffffff;
  color: #1f1f1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.social-link img {
  width: 19px;
  height: 19px;
  display: block;
}

.social-link:hover {
  transform: translateY(-2px);
  background: #f4f4f4;
}

@media (max-width: 640px) {
  .page {
    padding: 12px 12px 24px;
  }

  .page::before,
  .page::after {
    display: none;
  }

  .modal-card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .modal-card h1 {
    font-size: 1.9rem;
  }

  .modal-text {
    font-size: 1rem;
    line-height: 1.45;
  }

  .layout {
    gap: 12px;
  }

  .phone-mockup,
  .main-sheet,
  .examples-sheet,
  .tariffs-sheet,
  .reviews-sheet,
  .side-sheet,
  .direction-sheet {
    padding: 12px;
  }

  .name {
    font-size: 1.75rem;
  }

  .role {
    font-size: 2.25rem;
  }

  .main-sheet h2,
  .direction-sheet h3,
  .tariffs-sheet h4,
  .reviews-sheet h4 {
    font-size: 1.85rem;
  }

  .reasons-list li {
    grid-template-columns: 28px 1fr;
    gap: 8px;
    font-size: 0.9rem;
  }

  .reasons-list li::before {
    width: 26px;
    height: 26px;
    font-size: 0.82rem;
  }

  .tariffs-table th,
  .tariffs-table td {
    font-size: 0.9rem;
    padding: 9px 8px;
  }

  .review-item {
    grid-template-columns: 44px 1fr;
    gap: 10px;
    padding: 8px;
  }

  .review-item img {
    width: 44px;
    height: 44px;
  }

  .review-name {
    font-size: 0.9rem;
  }

  .review-text {
    font-size: 0.86rem;
  }

  .side-sheet p {
    font-size: 0.95rem;
  }

  .social-link {
    width: 44px;
    height: 44px;
  }

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

@media (max-width: 900px) {
  .examples-grid {
    grid-template-columns: 1fr;
  }
}
