/* Экран результата + орнаментальные рамки (как в макете dvoohvd.lovable.app) */

:root {
  --orn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 198 177'%3E%3Cg fill='%23000' fill-rule='evenodd'%3E%3Cpath d='M 44 25 L 43 26 L 43 28 L 42 29 L 42 37 L 47 42 L 48 42 L 49 43 L 50 43 L 51 44 L 52 44 L 53 45 L 55 45 L 56 46 L 57 46 L 58 47 L 59 47 L 62 50 L 64 50 L 66 52 L 67 52 L 68 53 L 69 53 L 70 54 L 71 54 L 72 55 L 73 55 L 74 54 L 73 53 L 73 52 L 70 49 L 70 47 L 68 45 L 68 44 L 67 43 L 67 42 L 65 40 L 65 39 L 64 38 L 64 37 L 63 36 L 63 35 L 62 34 L 62 32 L 61 31 L 61 30 L 60 29 L 60 28 L 56 24 L 54 24 L 53 23 L 50 23 L 49 24 L 46 24 L 45 25 Z'/%3E%3Cpath d='M 183 15 L 178 14 L 184 23 L 185 30 L 183 34 L 176 39 L 164 38 L 143 29 L 136 28 L 121 23 L 99 23 L 91 25 L 85 28 L 79 34 L 77 38 L 77 58 L 76 59 L 59 58 L 52 61 L 47 66 L 42 77 L 41 99 L 44 114 L 57 148 L 58 158 L 54 163 L 48 167 L 41 166 L 32 159 L 32 162 L 38 170 L 44 173 L 55 172 L 61 168 L 64 161 L 64 148 L 49 116 L 46 104 L 46 86 L 50 75 L 55 70 L 60 68 L 71 69 L 76 75 L 74 84 L 69 89 L 65 91 L 61 91 L 60 93 L 61 95 L 66 98 L 77 97 L 84 91 L 88 81 L 87 69 L 88 68 L 97 70 L 103 69 L 109 66 L 116 57 L 116 47 L 112 42 L 111 42 L 108 50 L 100 57 L 94 58 L 87 52 L 86 41 L 93 32 L 104 28 L 124 28 L 135 31 L 164 45 L 179 46 L 185 43 L 191 35 L 190 22 Z'/%3E%3C/g%3E%3C/svg%3E");
  --display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --num: "Cormorant Garamond", "Cormorant", Georgia, serif;
}

.ornate { position: relative; border: .5px solid #c7c7c7; border-radius: 4px; background: rgba(255,255,255,.8); backdrop-filter: blur(4px); }
.ornate::before, .ornate::after, .ornate-inner::before, .ornate-inner::after {
  content: ""; position: absolute; width: 24px; height: 24px; pointer-events: none; z-index: 2; opacity: .6;
  background: var(--orn) center / contain no-repeat;
}
.ornate::before { top: .5px; left: .5px; }
.ornate::after { top: .5px; right: .5px; transform: scaleX(-1); }
.ornate-inner { position: relative; height: 100%; }
.ornate-inner::before { bottom: .5px; left: .5px; transform: scaleY(-1); }
.ornate-inner::after { bottom: .5px; right: .5px; transform: scale(-1); }

/* --- раскладка экрана --- */
.content.results { padding-top: 200px; max-width: 1152px; padding-bottom: 64px; }
#results-body { display: flex; flex-direction: column; gap: 32px; padding-top: 24px; }
@media (min-width: 768px) { #results-body { padding-top: 48px; } }
/* кнопка не выходит за края картинки: ширина = ширина фонового рисунка (но не больше контейнера) */
.back { display: flex; justify-content: flex-start; width: min(100%, calc(100vh * 1.5)); margin: 0 auto; padding: 0 24px; }
@media (max-width: 1023px) { .back { width: 100%; } }
.back-btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 22px 0 16px; border: 1px solid rgba(38,38,38,.55); border-radius: 999px;
  background: rgba(255,255,255,.75); backdrop-filter: blur(4px); color: var(--fg); text-decoration: none; font-family: var(--display); font-size: 15px; letter-spacing: .06em;
  box-shadow: 0 2px 10px rgba(0,0,0,.06); transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease; }
.back-btn svg { transition: transform .25s ease; }
.back-btn:hover { background: var(--fg); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.18); transform: translateY(-1px); }
.back-btn:hover svg { transform: translateX(-4px); }
.back-btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.pill-wrap { display: flex; justify-content: center; }
.hero { width: 100%; max-width: 640px; background: rgba(255,255,255,.88); box-shadow: 0 10px 40px rgba(0,0,0,.07); }
.hero-in { padding: 26px 24px 24px; text-align: center; }
.hero-kicker { font-family: var(--display); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); padding-left: .32em; }
.hero-name { margin: 8px 0 12px; font-family: var(--cosmic); font-weight: 500; font-size: 34px; letter-spacing: .12em; text-transform: uppercase; padding-left: .12em; line-height: 1.2; word-break: break-word;
  background: linear-gradient(135deg, #1c1c1c, #5a5a5a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@media (min-width: 768px) { .hero-name { font-size: 36px; } }
.hero-line { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 auto 16px; max-width: 320px; color: #8a8a8a; }
.hero-line span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #bdbdbd, transparent); }
.hero-line i { font-style: normal; font-size: 13px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip-m { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border: .5px solid #c7c7c7; border-radius: 999px; background: rgba(250,250,249,.9);
  font-family: var(--display); font-size: 15px; letter-spacing: .05em; color: rgba(38,38,38,.85); }
.chip-m svg { color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 768px) { .stats { gap: 16px; } }
.stat { padding: 16px 12px; text-align: center; }
.sl { font-family: var(--display); font-weight: 300; font-size: 12px; margin-bottom: 4px; }
@media (min-width: 768px) { .sl { font-size: 16px; } }
.sv { font-family: var(--num); font-size: 26px; }

.grid2, .grid3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: repeat(3, 1fr); } }
.grid2.inner { gap: 24px; }

.ct { padding: 16px 20px 8px; }
.ct h3 { text-align: center; margin: 0; font-family: var(--display); font-weight: 300; font-size: 18px; letter-spacing: .02em; }
.sep { height: 1px; margin: 0 20px; background: var(--border); }
.cb { padding: 14px 20px 18px; }
.compact .cb { padding: 12px 20px; }
.compact .ct h3 { font-size: 16px; }

h4 { margin: 0 0 14px; font-family: var(--display); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* плитки кодов */
.tiles { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); }
@media (min-width: 768px) { .tiles.t6 { grid-template-columns: repeat(6, 1fr); } .tiles.t5 { grid-template-columns: repeat(5, 1fr); } .tiles.t4 { grid-template-columns: repeat(4, 1fr); } }
.tiles.t4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .tiles.t4 { grid-template-columns: repeat(4, 1fr); } }
.tile { display: flex; flex-direction: column; align-items: center; padding: 12px 4px; border-radius: 8px; background: rgba(245,245,245,.5); }
.tile .tl { font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; text-align: center; }
.tile .tl small { display: block; font-size: 10px; text-transform: none; letter-spacing: 0; font-weight: 400; opacity: .7; }
.tile .tv { font-family: var(--num); font-size: 18px; }
.tile .tv i { font-style: normal; color: var(--muted); }
.tile.active { background: rgba(38,38,38,.08); border: 1px solid rgba(38,38,38,.3); }
.tile.active .tl { color: var(--fg); }
.tile.active .tv { font-weight: 700; }
.agebar { margin-top: 16px; text-align: center; font-size: 14px; color: var(--muted); }
.agebar b { color: var(--fg); font-weight: 500; }

/* центры */
.center { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; }
.center-l { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 18px; }
.center-l svg { flex: none; }
.center b { font-family: var(--num); font-weight: 500; font-size: 20px; }
.contour { padding: 12px 14px; margin-bottom: 12px; border: .5px solid #d6d6d6; border-radius: 6px; background: rgba(250,250,249,.7); }
.contour:last-child { margin-bottom: 0; }
.contour-h span { display: block; font-size: 13px; color: var(--muted); }
.contour-h strong { display: block; font-family: var(--display); font-weight: 500; font-size: 17px; letter-spacing: .05em; text-transform: uppercase; margin: 2px 0 12px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pc { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.75); border: .5px solid #e4e4e4; }
.pc svg { flex: none; }
.pc small { display: block; font-family: var(--display); font-size: 13px; color: var(--muted); line-height: 1.2; }
.pc b { font-family: var(--num); font-weight: 500; font-size: 22px; line-height: 1.2; }
.contour-f { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; font-size: 17px; color: var(--muted); }
.contour-f b { font-family: var(--num); font-weight: 500; font-size: 24px; color: var(--fg); }
.contour-f em { font-style: normal; margin-left: auto; font-size: 17px; }

/* ёмкость */
.bar { margin-bottom: 16px; }
.bar:last-child { margin-bottom: 0; }
.bar-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.bar-top b { font-weight: 500; }
.bar-top em { font-style: normal; color: var(--muted); font-size: 13px; }
.track { height: 6px; border-radius: 99px; background: rgba(0,0,0,.08); overflow: hidden; }
.fill { height: 100%; background: #555; border-radius: 99px; }

/* сила / интеллект / эмоц. тип */
.power { display: flex; justify-content: space-around; text-align: center; padding-top: 8px; }
.power div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.power b { font-family: var(--num); font-weight: 500; font-size: 24px; }
.power span { font-size: 13px; color: var(--muted); }
.power em { font-style: normal; font-size: 13px; color: var(--muted); }
.power.two b { font-size: 26px; }
.etype { margin: 4px 0 12px; font-family: var(--display); font-weight: 500; font-size: 22px; text-align: center; line-height: 1.25;
  background: linear-gradient(135deg, #2a2a2a, #5a5a5a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hr { height: 1px; background: var(--border); margin: 14px 0; }

.kv { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; }
.kv span { font-size: 14px; letter-spacing: .08em; color: var(--muted); }
.kv b { font-family: var(--num); font-weight: 500; font-size: 20px; }
.kv b.sm { font-family: var(--display); font-size: 15px; }
.kv.small span { font-size: 12px; }
.innate-l { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.innate { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.innate b { font-family: var(--num); font-size: 22px; font-weight: 500; }
.innate em { font-style: normal; color: var(--muted); font-size: 13px; }

.reps { display: flex; flex-direction: column; }
.rep { display: flex; justify-content: space-between; padding: 3px 12px; border-radius: 6px; color: var(--muted); font-size: 15px; }
.rep.active { background: rgba(38,38,38,.1); color: var(--fg); font-weight: 600; }

/* инь/ян */
.yy { display: flex; align-items: center; gap: 14px; }
.yy .yin { color: #6366f1; white-space: nowrap; }
.yy .yang { color: #f59e0b; white-space: nowrap; }
.yy b { font-family: var(--num); font-weight: 500; margin: 0 2px; }
.yy-bar { flex: 1; height: 8px; border-radius: 99px; background: #f59e0b; overflow: hidden; }
.yy-bar div { height: 100%; background: #6366f1; }

/* прогностика */
#prog { display: flex; flex-direction: column; gap: 24px; }
.sub { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.pick { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.sel { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); padding: 0 10px; height: 44px; }
.sel .ico { color: var(--muted); font-size: 14px; }
.sel select { border: 0; background: transparent; height: 100%; font: inherit; font-size: 15px; padding: 0 22px 0 4px; min-width: 110px; }
.sel.small { height: 36px; font-size: 14px; color: var(--muted); border-color: transparent; background: transparent; }
.sel.small select { border: 1px solid var(--border); border-radius: 6px; background: var(--bg); height: 36px; padding: 0 8px; min-width: 130px; color: var(--fg); }
.btn { height: 44px; padding: 0 28px; }
.life { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ytask { width: 100%; text-align: center; padding: 18px; border-radius: 10px; background: rgba(200,200,200,.35); border: 1px solid var(--border); }
.ytask span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.ytask b { font-family: var(--num); font-size: 24px; font-weight: 500; }
.ytask i, .m i, .d i { font-style: normal; }

.months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px 6px; text-align: center; }
@media (min-width: 768px) { .months { grid-template-columns: repeat(12, 1fr); } }
.m span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.m b { font-family: var(--num); font-weight: 400; font-size: 14px; }

.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cal-head h4 { margin: 0; font-size: 18px; letter-spacing: .06em; color: var(--fg); font-weight: 400; }
.nav { width: 32px; height: 32px; padding: 0; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; border-radius: 6px; }
.nav:hover { background: rgba(0,0,0,.06); color: var(--fg); }
.week, .days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.week span { font-size: 12px; color: var(--muted); padding: 6px 0 10px; }
.d { position: relative; padding: 8px 0 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px solid transparent; border-radius: 10px; }
.d span { font-size: 12px; color: var(--muted); }
.d b { font-family: var(--num); font-weight: 500; font-size: 13px; }
.d.today { border-color: rgba(38,38,38,.5); background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(238,238,238,.7));
  box-shadow: 0 0 0 4px rgba(38,38,38,.05), 0 6px 16px rgba(0,0,0,.12); animation: todayGlow 3.2s ease-in-out infinite; }
.d.today::before, .d.today::after { content: ""; position: absolute; width: 15px; height: 15px; background: var(--orn) center / contain no-repeat; opacity: .85; pointer-events: none; }
.d.today::before { top: 1px; left: 1px; }
.d.today::after { bottom: 1px; right: 1px; transform: scale(-1); }
.d.today span { color: var(--fg); font-weight: 600; }
@keyframes todayGlow { 0%, 100% { box-shadow: 0 0 0 4px rgba(38,38,38,.05), 0 6px 16px rgba(0,0,0,.12); } 50% { box-shadow: 0 0 0 7px rgba(38,38,38,.03), 0 8px 22px rgba(0,0,0,.16); } }
.d.empty { visibility: hidden; }

/* Центры и контуры: одна высота колонок, чакры растянуты по всей длине */
.grid2.inner { align-items: stretch; }
.col { display: flex; flex-direction: column; }
.col h4 { text-align: center; }
.centers { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.centers .center { flex: 1; padding: 6px 16px; border-radius: 8px; background: rgba(250,250,249,.7); border: .5px solid #e4e4e4; }
.col-contours .contour { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.col-contours .contour-h strong { margin-bottom: 12px; }
.col-contours .pair { justify-items: stretch; }
.col-contours .pc { justify-content: center; text-align: center; }
.col-contours .contour-f { justify-content: center; }
.col-contours .contour-f em { margin-left: 0; }

/* --- анимации появления --- */
.js-reveal .rv { opacity: 0; transform: translateY(36px) scale(.985); filter: blur(4px);
  transition: opacity .8s cubic-bezier(.22,.8,.3,1), transform .9s cubic-bezier(.22,.8,.3,1), filter .8s ease; will-change: opacity, transform; }
.js-reveal .rv.in { opacity: 1; transform: none; filter: none; }
.js-reveal .rv .rv-item { opacity: 0; transform: translateY(14px);
  transition: opacity .6s ease, transform .7s cubic-bezier(.22,.8,.3,1); transition-delay: calc(.12s + var(--i, 0) * 55ms); }
.js-reveal .rv.in .rv-item { opacity: 1; transform: none; }
.fill, .yy-bar div { transform-origin: left center; }
.js-reveal .rv .fill, .js-reveal .rv .yy-bar div { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.22,.8,.3,1) .35s; }
.js-reveal .rv.in .fill, .js-reveal .rv.in .yy-bar div { transform: scaleX(1); }
.tile, .pc, .center { transition: transform .25s ease, box-shadow .25s ease; }
@media (prefers-reduced-motion: reduce) { .js-reveal .rv, .js-reveal .rv .rv-item { transition: none; opacity: 1; transform: none; filter: none; } }

/* --- Telegram / Instagram: кнопки в шапке и подвале --- */
.links a { height: 40px; padding: 0 18px 0 14px; border: 1px solid rgba(38,38,38,.35); border-radius: 999px; background: rgba(255,255,255,.7);
  color: var(--fg); font-family: var(--display); font-size: 14px; letter-spacing: .05em; gap: 8px;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.links a:hover { background: var(--fg); color: #fff; border-color: var(--fg); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.16); }
.links a:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.links svg { width: 17px; height: 17px; flex: none; }
.links { gap: 10px; flex-wrap: wrap; justify-content: center; }

/* --- шрифт Cormorant Garamond: элегантный антиквенный, подбираем размеры/насыщенность --- */
:root { font-variant-numeric: lining-nums; }
h1 { font-weight: 500 !important; letter-spacing: .08em !important; text-transform: uppercase; }
@media (min-width: 768px) { h1 { font-size: 46px !important; } }
.ct h3 { font-weight: 500; font-size: 22px; text-transform: uppercase; letter-spacing: .1em; }
h4 { font-size: 15px; font-weight: 600; letter-spacing: .14em; }
.sl { font-size: 15px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
@media (min-width: 768px) { .sl { font-size: 18px; } }
.sv { font-size: 36px; font-weight: 500; }
.tile .tl { font-size: 15px; font-weight: 600; }
.tile .tv { font-size: 24px; font-weight: 600; }
.center-l { font-size: 21px; font-weight: 500; }
.center b { font-size: 28px; font-weight: 600; }
.pc small { font-size: 16px; }
.pc b { font-size: 30px; font-weight: 600; }
.contour-h span { font-size: 15px; }
.contour-h strong { font-size: 20px; font-weight: 600; }
.contour-f { font-size: 19px; }
.contour-f b { font-size: 30px; font-weight: 600; }
.contour-f em { font-size: 19px; }
.power b { font-size: 34px; font-weight: 600; }
.power span, .power em { font-size: 16px; }
.etype { font-size: 26px; font-weight: 600; }
.kv span { font-size: 16px; }
.kv b { font-size: 28px; font-weight: 600; }
.kv b.sm { font-size: 20px; }
.innate b { font-size: 30px; font-weight: 600; }
.ytask b { font-size: 34px; font-weight: 600; }
.m b { font-size: 18px; font-weight: 600; }
.m span, .d span, .week span { font-size: 14px; }
.d b { font-size: 17px; font-weight: 600; }
.cal-head h4 { font-size: 22px; }
.rep { font-size: 19px; }
.hero-kicker { font-size: 14px; font-weight: 600; }
.chip-m { font-size: 18px; }
.back-btn, .links a { font-size: 17px; font-weight: 500; }
.bar-top { font-size: 17px; }
.agebar, .sub { font-size: 17px; }
input[type=text], select { font-family: var(--serif); }
.sel select { font-size: 17px; }

/* --- фон: крупнее, края растворяются в белый, шапка не перекрывает картинку --- */
header { background: transparent !important; backdrop-filter: none !important; border-bottom: 0 !important; }
.bg { top: var(--hdr, 110px) !important; background-size: auto 125vh !important; background-position: center top !important;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(180deg, transparent 0, #000 9%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(180deg, transparent 0, #000 9%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
@media (max-width: 1023px) {
  .bg { background-size: auto 92vh !important; background-position: center top !important;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 80%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 80%, transparent 100%); }
}

/* заголовки контуров крупнее и контрастнее */
.contour-h span { font-size: 21px !important; font-weight: 500; color: #4a4a4a; letter-spacing: .03em; }
.contour-h strong { font-size: 25px !important; margin: 4px 0 14px !important; }

/* --- телефоны --- */
.grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.col, .ornate, .ornate-inner, .cb { min-width: 0; }

@media (max-width: 600px) {
  .logo .name { font-size: 28px; letter-spacing: .18em; padding-left: .18em; white-space: nowrap; }
  .logo .tag { font-size: 13px; letter-spacing: .22em; padding-left: .22em; }
  .head { padding: 14px 16px 12px; gap: 2px; }
  .links a { height: 36px; padding: 0 14px 0 11px; font-size: 15px; }
  .links svg { width: 15px; height: 15px; }
  .head .links { margin-top: 8px; }

  h1 { font-size: 30px !important; letter-spacing: .05em !important; }
  .content.results { padding-top: 150px; }
  #results-body { gap: 22px; padding-top: 16px; }
  .grid2, .grid3 { gap: 22px; }
  .back { padding: 0 4px; }
  .back-btn { height: 40px; font-size: 16px; }

  .hero-in { padding: 20px 14px 18px; }
  .hero-name { font-size: 28px; letter-spacing: .08em; }
  .hero-kicker { font-size: 12px; letter-spacing: .24em; }
  .chip-m { font-size: 16px; padding: 5px 12px; }

  .stats { gap: 8px; }
  .stat { padding: 14px 6px; }
  .sl { font-size: 12.5px; letter-spacing: .04em; }
  .sv { font-size: 32px; }

  .ct { padding: 14px 14px 8px; }
  .ct h3 { font-size: 19px; letter-spacing: .06em; line-height: 1.2; }
  .sep { margin: 0 14px; }
  .cb { padding: 14px 14px 16px; }

  .tiles.t6, .tiles.t5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile .tl { font-size: 14px; }
  .agebar { font-size: 16px; line-height: 1.35; }

  .center { padding: 6px 12px; }
  .center-l { font-size: 20px; gap: 10px; }
  .center b { font-size: 26px; }

  .contour { padding: 12px 10px; }
  .contour-h span { font-size: 19px !important; }
  .contour-h strong { font-size: 22px !important; line-height: 1.15; }
  .pair { gap: 8px; }
  .pc { flex-direction: column; gap: 4px; padding: 10px 6px; text-align: center; }
  .pc svg { width: 38px; height: 38px; }
  .pc small { font-size: 16px; }
  .pc b { font-size: 30px; }
  .contour-f { font-size: 18px; }
  .contour-f b { font-size: 28px; }

  .power b { font-size: 30px; }
  .etype { font-size: 24px; }
  .kv { padding: 8px 4px; }
  .kv span { font-size: 15px; letter-spacing: .05em; }
  .kv b.sm { font-size: 18px; }

  .yy { gap: 8px; font-size: 16px; }
  .yy b { font-size: 20px; }

  .pick { flex-direction: column; align-items: stretch; }
  .sel { justify-content: flex-start; }
  .sel select { flex: 1; min-width: 0; }
  .btn { width: 100%; }
  .sel.small { flex-direction: column; align-items: stretch; height: auto; gap: 6px; text-align: center; }
  .sel.small select { width: 100%; }

  .months { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 6px; }
  .m b { font-size: 19px; }

  .cal-head h4 { font-size: 19px; }
  .week span { font-size: 13px; }
  .d { padding: 6px 0 7px; border-radius: 8px; }
  .d span { font-size: 12px; }
  .d b { font-size: 14px; }
  .d.today::before, .d.today::after { width: 10px; height: 10px; }

  /* форма на главной */
  .frame .pad { padding: 18px 14px; }
  .dsel { gap: 6px; }
  .dsel input { padding: 8px 8px; font-size: 16px; text-align: center; }
  footer .wrap { padding: 24px 16px; }
}
@media (max-width: 360px) {
  .logo .name { font-size: 24px; }
  .contour-h strong { font-size: 20px !important; }
  .pc b { font-size: 26px; }
  .tile .tv { font-size: 21px; }
}
@media (max-width: 360px) {
  .sl { font-size: 11px; letter-spacing: 0; }
  .ct h3 { font-size: 17px; letter-spacing: .03em; overflow-wrap: anywhere; }
  .stat { padding: 12px 3px; }
}
