/* tapki.digital — главная. Дизайн «комиксовый»: жирные карточки + офсет-тени. */

:root {
  --base: #F6EDDE;
  --cream: #FFFDF8;
  --ink: #3A2E20;
  --soft-blue: #DCE7F0;
  --deep-blue: #3E5C73;
  --orange: #FC9502;
  --body: #4A4136;
  --muted: #5C5346;
  --blue-text: #3C4654;
  --brief-warm: #FBEFD7;
  --brief-warm2: #F1D9C8;
  --footer-muted: #A89C88;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: 'Golos Text', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
}
::selection { background: var(--orange); color: var(--ink); }
a { color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,237,222,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}
.site-header__inner {
  display: flex; align-items: center; gap: 28px;
  padding: 16px 0; max-width: 1240px; margin: 0 auto;
}
.site-header__logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.site-header__logo img { height: 44px; }
.site-nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.site-nav a {
  text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 16px;
}
.site-nav a:hover { color: var(--deep-blue); }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Onest', sans-serif; font-weight: 800;
  text-decoration: none; cursor: pointer;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  transition: transform .12s, box-shadow .12s, background .12s;
}
.btn--primary { background: var(--orange); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--cream); }
.btn--sm  { padding: 11px 20px; font-size: 16px; border-width: 2px; box-shadow: 3px 3px 0 var(--ink); }
.btn--md  { padding: 18px 28px 14px; font-size: 19px; line-height: 1; box-shadow: 5px 5px 0 var(--ink); }
.btn--md.btn--ghost { padding: 18px 22px 14px; box-shadow: none; }
.btn--md:active, .btn--md:hover { transform: translate(2px,2px); box-shadow: 3px 3px 0 var(--ink); }
.btn--sm:hover  { transform: translate(1px,1px); box-shadow: 2px 2px 0 var(--ink); }

/* ============ HERO ============ */
.hero {
  position: relative;
  max-width: 1240px; margin: 0 auto;
  padding: 60px 28px 40px;
}
.hero__sparkle {
  position: absolute; top: 84px; left: 16px;
  width: 30px; height: 30px; color: #9FBBD6;
  animation: tpkWiggle 4.5s ease-in-out infinite;
}
.hero__grid {
  display: grid; grid-template-columns: 1.14fr 0.86fr;
  gap: 44px; align-items: center;
}
.hero__left { position: relative; z-index: 2; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 2px solid var(--ink);
  border-radius: 999px; padding: 7px 15px;
  font-weight: 600; font-size: 15px;
  margin-bottom: 22px;
  box-shadow: 2px 2px 0 var(--ink);
}
.hero__badge-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--deep-blue); display: inline-block;
}
.hero__title {
  font-family: 'Onest', sans-serif; font-weight: 800;
  font-size: 46px; line-height: 1.04; letter-spacing: -0.025em;
  margin: 0 0 22px; text-wrap: balance;
}
.hero__title-mark {
  white-space: nowrap;
  background: linear-gradient(transparent 58%, var(--orange) 58%, var(--orange) 90%, transparent 90%);
  border-radius: 3px; padding: 0 2px;
}
.hero__lead {
  font-size: 20px; line-height: 1.55;
  max-width: 540px; margin: 0 0 30px;
  color: var(--body);
}
.hero__ctas { display: flex; gap: 13px; flex-wrap: wrap; align-items: center; }

.hero__right { position: relative; z-index: 2; }
.hero__photo-frame {
  position: relative;
  background: var(--soft-blue);
  border: 2.5px solid var(--ink);
  border-radius: 30px;
  padding: 18px;
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(1.4deg);
}
.hero__photo-frame img {
  width: 100%; aspect-ratio: 5/6;
  object-fit: cover; object-position: center 30%;
  border: 2px solid var(--ink); border-radius: 18px;
}
.hero__name-tag {
  position: absolute; left: -16px; bottom: 26px;
  background: var(--cream);
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  padding: 10px 16px;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-3deg);
}
.hero__name-tag-name {
  font-family: 'Onest', sans-serif; font-weight: 800;
  font-size: 20px; line-height: 1;
}
.hero__name-tag-role { font-size: 14px; color: var(--muted); font-weight: 500; }
.hero__sticker {
  position: absolute; right: -10px; top: -22px;
  width: 128px; height: 128px;
  background: var(--orange);
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  box-shadow: 5px 5px 0 var(--ink);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  animation: tpkFloat 5s ease-in-out infinite;
  font-family: 'Onest', sans-serif; font-weight: 800;
  font-size: 15px; line-height: 1.12; color: var(--ink);
  padding: 8px;
}

.trust-strip {
  margin-top: 54px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 2.5px solid var(--ink); border-radius: 22px;
  overflow: hidden; background: var(--cream);
}
.trust-strip__cell { padding: 24px 26px; }
.trust-strip__cell + .trust-strip__cell { border-left: 2px solid var(--ink); }
.trust-strip__num {
  font-family: 'Onest', sans-serif; font-weight: 800;
  font-size: 40px; line-height: 1;
}
.trust-strip__num--blue { color: var(--deep-blue); }
.trust-strip__text { font-weight: 500; color: var(--body); margin-top: 6px; }

/* ============ ЧТО ДЕЛАЕМ ============ */
.services {
  background: var(--soft-blue);
  border-top: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  padding: 72px 0;
  margin-top: 36px;
}
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 40px;
}
.section-head h2 {
  font-family: 'Onest', sans-serif; font-weight: 800;
  font-size: 52px; line-height: 1.0; letter-spacing: -0.025em;
  margin: 0;
}
.section-head p {
  margin: 0 0 6px; max-width: 430px;
  font-weight: 500; font-size: 18px;
}
.services .section-head p { color: var(--blue-text); }

.services__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.service-card {
  background: var(--cream);
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  padding: 26px;
  display: flex; flex-direction: column;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.service-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}
.service-card__kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700; font-size: 14px;
  color: var(--deep-blue); letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.service-card__title {
  font-family: 'Onest', sans-serif; font-weight: 800;
  font-size: 30px; line-height: 1.0;
  letter-spacing: -0.02em; margin-bottom: 10px;
}
.service-card__desc {
  margin: 0 0 14px; color: var(--body);
  font-weight: 500; font-size: 17px; line-height: 1.45; flex: 1;
}
.service-card__sub {
  color: var(--muted); font-size: 14px; font-weight: 500;
  margin-bottom: 18px;
}
.service-card__price {
  align-self: flex-start;
  font-family: 'Onest', sans-serif; font-weight: 800; font-size: 16px;
  background: var(--soft-blue);
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 7px 16px;
}

.services__extras {
  margin-top: 26px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.services__extras-label {
  font-family: 'Onest', sans-serif; font-weight: 800; font-size: 17px;
}
.services__extras-list { display: flex; gap: 9px; flex-wrap: wrap; }
.chip {
  font-family: 'Onest', sans-serif; font-weight: 700; font-size: 15px;
  background: var(--cream); border: 2px solid var(--ink);
  border-radius: 999px; padding: 7px 15px;
}

/* ============ КЕЙСЫ ============ */
.cases {
  max-width: 1240px; margin: 0 auto;
  padding: 78px 28px 20px;
}
.cases .section-head p { color: var(--muted); font-weight: 600; font-style: italic; }
.cases__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 24px;
}
.case-card {
  display: block; text-decoration: none; color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: 20px;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.case-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}
.case-card__cover {
  aspect-ratio: 16/10;
  border-bottom: 2.5px solid var(--ink);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: var(--cream);
}
.case-card__body { padding: 18px 20px; }
.case-card__name {
  font-family: 'Onest', sans-serif; font-weight: 800;
  font-size: 22px; line-height: 1.05; margin-bottom: 8px;
}
.case-card__desc {
  margin: 0 0 12px; color: var(--body);
  font-weight: 500; font-size: 15px; line-height: 1.4;
}
.case-card__tag {
  font-family: 'Onest', sans-serif; font-weight: 800; font-size: 12px;
  color: var(--deep-blue);
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* ============ КОМАНДА ============ */
.team {
  max-width: 1240px; margin: 0 auto;
  padding: 78px 28px 20px;
}
.team__head {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center; margin-bottom: 40px;
}
.team__head h2 {
  font-family: 'Onest', sans-serif; font-weight: 800;
  font-size: 52px; line-height: 1.0; letter-spacing: -0.025em;
  margin: 0;
}
.team__head p {
  margin: 0; color: var(--body);
  font-weight: 500; font-size: 19px; line-height: 1.55;
}
.team__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  align-items: stretch;
}
.team-card {
  border: 2.5px solid var(--ink); border-radius: 24px;
  padding: 18px; box-shadow: 5px 5px 0 var(--ink);
  display: flex; flex-direction: column;
}
.team-card--big { background: var(--orange); }
.team-card--regular { background: var(--soft-blue); }
.team-card img,
.team-card__placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  border: 2px solid var(--ink); border-radius: 16px;
  display: block;
  object-fit: cover;
  object-position: center 22%;
}
.team-card__placeholder {
  background: repeating-linear-gradient(135deg, rgba(58,46,32,0.05), rgba(58,46,32,0.05) 12px, transparent 12px, transparent 24px);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 13px;
}
.team-card__name {
  font-family: 'Onest', sans-serif; font-weight: 800;
  font-size: 24px; margin-top: 16px;
}
.team-card__role {
  font-weight: 600; color: var(--ink); opacity: 0.78; margin-top: 4px;
}
.team-card__note {
  margin-top: 12px; font-style: italic;
  font-weight: 500; color: var(--ink); opacity: 0.85; font-size: 15px;
}

/* ============ БРИФ ============ */
.brief {
  margin: 74px 0 0;
  background: var(--deep-blue); color: var(--brief-warm);
  padding: 74px 0; border-top: 2.5px solid var(--ink);
}
.brief__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start;
  max-width: 1240px; margin: 0 auto; padding: 0 28px;
}
.brief__badge {
  display: inline-flex; align-items: center; white-space: nowrap; gap: 9px;
  background: var(--orange); color: var(--ink);
  border-radius: 999px; padding: 7px 16px;
  font-family: 'Onest', sans-serif; font-weight: 800; font-size: 15px;
  margin-bottom: 22px;
}
.brief__title {
  font-family: 'Onest', sans-serif; font-weight: 800;
  font-size: 54px; line-height: 1.0; letter-spacing: -0.025em;
  margin: 0 0 22px;
}
.brief__lead {
  font-size: 20px; line-height: 1.55; color: var(--brief-warm2);
  max-width: 480px; margin: 0 0 18px;
}
.brief__signoff {
  display: flex; align-items: center; gap: 14px; margin-top: 28px;
  font-weight: 500; color: var(--brief-warm2);
}
.brief__signoff-photo {
  display: inline-block; flex-shrink: 0;
  width: 120px; height: 120px;
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
}
.brief__signoff-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.brief__signoff b {
  color: var(--brief-warm); font-family: 'Onest', sans-serif; font-weight: 800;
}

.brief-form {
  background: var(--cream); color: var(--ink);
  border-radius: 26px; border: 2.5px solid var(--ink);
  padding: 30px; box-shadow: 8px 8px 0 var(--ink);
}
.brief-form__label {
  display: block; font-family: 'Onest', sans-serif; font-weight: 800;
  font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.brief-form__slots {
  display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 22px;
}
.brief-form__slot {
  cursor: pointer; font-family: 'Onest', sans-serif; font-weight: 800; font-size: 16px;
  padding: 10px 18px; border-radius: 999px;
  border: 2px solid var(--ink); color: var(--ink);
  background: #fff; transition: all .1s;
}
.brief-form__slot.is-active {
  background: var(--orange);
  box-shadow: 2px 2px 0 var(--ink);
}
.brief-form__input {
  width: 100%; padding: 15px 18px;
  border: 2px solid var(--ink); border-radius: 14px;
  font-family: 'Golos Text', sans-serif; font-size: 18px; font-weight: 500;
  background: #fff; margin-bottom: 18px; outline: none;
}
.brief-form__input:focus { border-color: var(--orange); }
.brief-form__submit {
  width: 100%; background: var(--orange); color: var(--ink);
  font-family: 'Onest', sans-serif; font-weight: 800; font-size: 20px;
  border: 2.5px solid var(--ink); border-radius: 14px;
  padding: 16px; cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.brief-form__submit:hover {
  transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink);
}
.brief-form__agree {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 16px; font-size: 14px; color: var(--muted);
  font-weight: 500; cursor: pointer;
}
.brief-form__checkbox {
  width: 22px; height: 22px; flex-shrink: 0;
  border: 2px solid var(--ink); border-radius: 6px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: var(--ink); margin-top: 1px;
}
.brief-form__checkbox.is-checked { background: var(--orange); }
.brief-form__success {
  text-align: center; padding: 40px 10px;
}
.brief-form__success-title {
  font-family: 'Onest', sans-serif; font-weight: 800;
  font-size: 34px; margin-bottom: 10px;
}
.brief-form__success p { color: var(--body); font-weight: 500; margin: 0; }
.hidden { display: none !important; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--ink); color: var(--base);
  padding: 46px 0;
}
.site-footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  max-width: 1240px; margin: 0 auto; padding: 0 28px;
}
.site-footer__left {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.site-footer__left img { height: 54px; }
.site-footer__left span { color: var(--footer-muted); font-weight: 500; }
.site-footer__contacts { display: flex; gap: 8px; flex-wrap: wrap; }
.site-footer__contacts a {
  text-decoration: none;
  font-family: 'Onest', sans-serif; font-weight: 700; font-size: 15px;
  color: var(--base); border: 2px solid var(--base);
  border-radius: 999px; padding: 8px 15px;
  transition: all .1s;
}
.site-footer__contacts a:hover {
  background: var(--orange); border-color: var(--orange); color: var(--ink);
}

/* ============ АНИМАЦИИ ============ */
@keyframes tpkFloat {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50%      { transform: translateY(-9px) rotate(-2deg); }
}
@keyframes tpkWiggle {
  0%, 100% { transform: rotate(-4deg); }
  50%      { transform: rotate(4deg); }
}

/* ============ АДАПТИВ ============ */
@media (max-width: 960px) {
  .site-header__inner { gap: 16px; padding: 14px 20px; }
  .site-nav { display: none; }
  .container { padding: 0 20px; }

  .hero { padding: 36px 20px 24px; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__title { font-size: 36px; }
  .hero__sparkle { display: none; }
  .hero__sticker { width: 96px; height: 96px; font-size: 13px; right: 6px; top: -14px; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip__cell + .trust-strip__cell { border-left: none; border-top: 2px solid var(--ink); }
  .trust-strip__num { font-size: 32px; }

  .services { padding: 48px 0; margin-top: 28px; }
  .section-head h2 { font-size: 36px; }
  .services__grid { grid-template-columns: 1fr; }
  .cases { padding: 48px 20px 16px; }
  .cases__grid { grid-template-columns: 1fr; }
  .team { padding: 48px 20px 16px; }
  .team__head { grid-template-columns: 1fr; gap: 16px; }
  .team__grid { grid-template-columns: 1fr; }

  .brief { padding: 48px 0; margin-top: 48px; }
  .brief__grid { grid-template-columns: 1fr; gap: 32px; }
  .brief__title { font-size: 36px; }

  .site-footer { padding: 32px 0; }
  .site-footer__inner { padding: 0 20px; flex-direction: column; align-items: flex-start; }
}

/* ============ ПОДСТРАНИЦЫ (услуги, кейсы, портфолио) ============ */
.back-link {
  display: inline-block;
  text-decoration: none; color: var(--muted);
  font-family: 'Onest', sans-serif; font-weight: 700; font-size: 14px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.back-link:hover { color: var(--ink); }

.uslugi-hero, .portfolio-hero, .case-hero {
  max-width: 1240px; margin: 0 auto;
  padding: 48px 28px 36px;
}
.uslugi-hero__kicker, .case-hero__tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 14px;
  color: var(--deep-blue);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.case-hero__tag {
  background: var(--cream); border: 2px solid var(--ink);
  border-radius: 999px; padding: 6px 14px; font-family: 'Onest', sans-serif;
  text-transform: uppercase; font-size: 12px;
}
.uslugi-hero__title, .portfolio-hero__title, .case-hero__title {
  font-family: 'Onest', sans-serif; font-weight: 800;
  font-size: 64px; line-height: 1.0; letter-spacing: -0.025em;
  margin: 0 0 22px;
}
.uslugi-hero__desc, .portfolio-hero__lead, .case-hero__desc {
  font-size: 22px; line-height: 1.5;
  max-width: 760px; margin: 0;
  color: var(--body);
}
.uslugi-hero__price {
  display: inline-block;
  font-family: 'Onest', sans-serif; font-weight: 800; font-size: 18px;
  margin-top: 22px;
  background: var(--soft-blue); border: 2.5px solid var(--ink);
  border-radius: 999px; padding: 10px 22px;
}

.case-cover {
  max-width: 1240px; margin: 0 auto;
  padding: 0 28px 36px;
}
.case-cover__img {
  width: 100%; border: 2.5px solid var(--ink);
  border-radius: 22px; box-shadow: 6px 6px 0 var(--ink);
}

.uslugi-content {
  max-width: 1240px; margin: 0 auto;
  padding: 24px 28px 36px;
}
.prose {
  max-width: 760px;
  font-size: 19px; line-height: 1.65;
  color: var(--body);
}
.prose h2 { font-family: 'Onest', sans-serif; font-weight: 800; font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; margin: 32px 0 14px; color: var(--ink); }
.prose h3 { font-family: 'Onest', sans-serif; font-weight: 800; font-size: 24px; margin: 28px 0 12px; color: var(--ink); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--deep-blue); text-decoration: underline; }

.uslugi-others { background: var(--soft-blue); border-top: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); padding: 56px 0; margin-top: 40px; }
.uslugi-others__h { font-family: 'Onest', sans-serif; font-weight: 800; font-size: 36px; letter-spacing: -0.025em; margin: 0 0 26px; }

@media (max-width: 960px) {
  .uslugi-hero, .portfolio-hero, .case-hero { padding: 28px 20px 20px; }
  .uslugi-hero__title, .portfolio-hero__title, .case-hero__title { font-size: 38px; }
  .uslugi-hero__desc, .portfolio-hero__lead, .case-hero__desc { font-size: 18px; }
}
