/* Визитка — дизайн-система «Сайт 2026», упрощённая версия */
:root {
  --bg: #F2EEE7;
  --ink: #2B2B23;
  --line: rgba(43, 43, 35, .22);
  --lilac: #D3C2CD;
  --leaf: #849E15;
  --berry: #D17089;
  --pistachio: #CBD183;
  --fuchsia: #F20381;
  --turquoise: #8DE4E7;
  --gold: #F6AD00;
  --lime: #C5E84D;
  --head: 'Oswald', 'Arial Narrow', sans-serif;
  --text: 'Roboto', system-ui, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* Плейсхолдер: то, что нужно заменить своим */
.todo {
  outline: 1.5px dashed var(--berry);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Шапка ---------- */
.top { background: var(--lilac); }
.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 68px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px;
}
.logo {
  font: 700 22px/1 var(--head); text-transform: uppercase;
  letter-spacing: .04em; text-decoration: none;
}
.nav { display: flex; gap: 24px; list-style: none; }
.nav a {
  font: 500 14px/1 var(--head); text-transform: uppercase; letter-spacing: .08em;
  text-decoration: none; padding-bottom: 3px; border-bottom: 1.5px solid transparent;
  transition: border-color .2s;
}
.nav a:hover { border-color: var(--ink); }

/* ---------- Первый экран ---------- */
.hero { padding: 72px 0 80px; border-bottom: 1px solid var(--line); }
.hero .wrap {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center;
}
.kicker {
  font: 500 13px/1 var(--head); text-transform: uppercase; letter-spacing: .14em;
  margin-bottom: 22px; display: inline-block;
}
.hero h1 {
  font: 700 clamp(40px, 6vw, 76px)/1.02 var(--head); text-transform: uppercase;
  letter-spacing: -.01em; margin-bottom: 26px;
}
.hero p { max-width: 520px; font-size: 19px; }

/* Фото с «оттиском» — смещённая цветная плашка */
.photo { position: relative; aspect-ratio: 4 / 5; max-width: 420px; justify-self: end; width: 100%; }
.photo::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gold);
  transform: translate(16px, 16px);
  mix-blend-mode: multiply;
}
.photo .frame {
  position: relative; height: 100%; overflow: hidden;
  background: var(--lilac);
  display: grid; place-items: center;
  font: 500 13px/1.4 var(--head); text-transform: uppercase; letter-spacing: .12em;
  color: rgba(43, 43, 35, .55); text-align: center;
}
.photo .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* ---------- Секции ---------- */
section { scroll-margin-top: 20px; }
.block { padding: 80px 0; border-bottom: 1px solid var(--line); }
.block-head {
  display: grid; grid-template-columns: 220px 1fr; gap: 40px;
  margin-bottom: 44px; align-items: baseline;
}
.block-head .num { font: 700 15px/1 var(--head); letter-spacing: .1em; }
.block-head h2 {
  font: 700 clamp(30px, 4vw, 46px)/1.05 var(--head); text-transform: uppercase;
}

/* Услуги — цвет как среда */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.service {
  padding: 34px 30px 30px; display: flex; flex-direction: column; gap: 16px; min-height: 340px;
}
.services.two { grid-template-columns: repeat(2, 1fr); }
.soon {
  align-self: flex-start;
  font: 500 12px/1 var(--head); text-transform: uppercase; letter-spacing: .14em;
  background: var(--gold); padding: 7px 10px 6px; margin-bottom: -4px;
}
.service .price:only-child, .service .meta .price { white-space: nowrap; }
.service:nth-child(1) { background: var(--turquoise); }
.service:nth-child(2) { background: var(--pistachio); }
.service:nth-child(3) { background: #E9C3CD; }
.service h3 { font: 700 26px/1.1 var(--head); text-transform: uppercase; }
.service p { flex: 1; }
.service .meta {
  border-top: 1px solid var(--line); padding-top: 14px;
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  font: 500 14px/1.3 var(--head); text-transform: uppercase; letter-spacing: .06em;
}
.service .price { font: 700 24px/1 var(--head); letter-spacing: 0; }

/* Обо мне + квалификация */
.about { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 40px; }
.about p + p { margin-top: 14px; }
.num { font: 700 15px/1 var(--head); letter-spacing: .1em; }
.creds { list-style: none; border-top: 1px solid var(--line); }
.creds li {
  border-bottom: 1px solid var(--line); padding: 14px 0;
  font: 500 16px/1.35 var(--head); text-transform: uppercase; letter-spacing: .04em;
}
.creds li span {
  display: block; font: 400 14px/1.4 var(--text); text-transform: none; letter-spacing: 0;
  opacity: .75; margin-top: 3px;
}

/* Контакты */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.contact { padding: 26px 26px 30px 0; }
.contact + .contact { padding-left: 26px; border-left: 1px solid var(--line); }
.contact .label {
  font: 500 12px/1 var(--head); text-transform: uppercase; letter-spacing: .16em;
  margin-bottom: 14px; opacity: .7;
}
.contact .value { font: 700 22px/1.3 var(--head); text-decoration: none; display: inline-block; }
.contact a.value:hover { color: var(--berry); }

/* ---------- Футер ---------- */
.foot { background: var(--leaf); color: #F7F7EE; padding: 40px 0; }
.foot .wrap {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-end;
  font-size: 14px;
}
.foot .legal { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { text-decoration: none; border-bottom: 1px solid rgba(247, 247, 238, .5); }
.foot a:hover { border-color: #F7F7EE; }
.foot .todo { outline-color: #F7F7EE; }

/* ---------- Юридические страницы ---------- */
.doc { padding: 64px 0 90px; }
.doc .wrap { max-width: 820px; }
.doc .back {
  font: 500 13px/1 var(--head); text-transform: uppercase; letter-spacing: .12em;
  text-decoration: none; display: inline-block; margin-bottom: 36px;
}
.doc h1 {
  font: 700 clamp(34px, 5vw, 54px)/1.05 var(--head); text-transform: uppercase; margin-bottom: 10px;
}
.doc .updated { opacity: .7; font-size: 14px; margin-bottom: 44px; }
.doc h2 {
  font: 700 21px/1.2 var(--head); text-transform: uppercase; letter-spacing: .03em;
  margin: 40px 0 12px; padding-top: 18px; border-top: 1px solid var(--line);
}
.doc p, .doc li { margin-bottom: 10px; }
.doc ul { padding-left: 22px; }
.doc .note {
  background: var(--pistachio); padding: 18px 22px; margin-bottom: 36px; font-size: 15px;
}

/* ---------- Мобилка ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 60px; }
  .hero h1 { font-size: 8.6vw; overflow-wrap: anywhere; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .photo { justify-self: start; max-width: 320px; }
  .block { padding: 60px 0; }
  .block-head { grid-template-columns: 1fr; gap: 10px; margin-bottom: 30px; }
  .services, .services.two { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .about { grid-template-columns: 1fr; gap: 26px; }
  .contacts { grid-template-columns: 1fr; }
  .contact, .contact + .contact { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .nav { gap: 16px; }
}

/* Щепотка соли: мухомор над юридическими ссылками */
.foot .legal a { position: relative; }
.foot .legal a::after {
  content: ''; position: absolute; left: 50%; bottom: 100%;
  width: 26px; height: 26px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20d%3D%22M12.5%2017h7l1%2010.5c0%201.4-1.9%202.2-4.5%202.2s-4.5-.8-4.5-2.2z%22%20fill%3D%22%23F7F2E6%22/%3E%3Cpath%20d%3D%22M2.5%2017.5C2.5%209.5%208.5%203%2016%203s13.5%206.5%2013.5%2014.5c0%201-1%201.5-2%201.5h-23c-1%200-2-.5-2-1.5z%22%20fill%3D%22%23E8412C%22/%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2211%22%20r%3D%222.2%22%20fill%3D%22%23fff%22/%3E%3Ccircle%20cx%3D%2218.5%22%20cy%3D%227.5%22%20r%3D%221.7%22%20fill%3D%22%23fff%22/%3E%3Ccircle%20cx%3D%2222.5%22%20cy%3D%2213.5%22%20r%3D%222.4%22%20fill%3D%22%23fff%22/%3E%3Ccircle%20cx%3D%2214.5%22%20cy%3D%2214.5%22%20r%3D%221.4%22%20fill%3D%22%23fff%22/%3E%3Ccircle%20cx%3D%226.5%22%20cy%3D%2216%22%20r%3D%221.1%22%20fill%3D%22%23fff%22/%3E%3C/svg%3E") center / contain no-repeat;
  transform: translate(-50%, 10px) scale(0) rotate(-20deg);
  transform-origin: 50% 100%;
  opacity: 0; pointer-events: none;
  transition: transform .45s cubic-bezier(.34, 1.8, .5, 1), opacity .2s;
}
.foot .legal a:hover::after, .foot .legal a:focus-visible::after {
  transform: translate(-50%, -6px) scale(1) rotate(0deg);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .foot .legal a::after { transition: opacity .2s; transform: translate(-50%, -6px); }
}
