/* For My Nails — formynails.ru. Белый фон под фото товаров, чёрный текст, акцент — вишнёвый лак, мотив — ноготь-образец. */
:root {
  --paper: #ffffff;
  --paper-2: #f6f2f1;
  --card: #ffffff;
  --ink: #141012;
  --ink-2: #4a4245;
  --muted: #857c7f;
  --line: #ebe5e3;
  --lac: #c4102f;
  --lac-2: #960a22;
  --lac-soft: #fdecef;
  --r: 18px;
  --display: "Playfair Display", "Georgia", serif;
  --text: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--text); }
img { max-width: 100%; display: block; }
a { color: var(--lac); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--lac-2); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--lac); }
h1 { font-size: clamp(36px, 5.2vw, 66px); }
h2 { font-size: clamp(26px, 3vw, 38px); }
h3 { font-size: 23px; }
p { margin: 0 0 1em; }
.box { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--lac); outline-offset: 3px; border-radius: 6px; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- ноготь-образец */
.nail {
  --c: #b8243c;
  display: inline-block; position: relative; width: 44px; aspect-ratio: 3 / 4; flex: none;
  background: var(--c);
  border-radius: 48% 48% 42% 42% / 56% 56% 32% 32%;
  box-shadow: inset 0 0 0 1px rgba(36, 21, 25, .1), inset 0 -6px 10px rgba(36, 21, 25, .12), 0 6px 14px -8px rgba(36, 21, 25, .45);
}
.nail::after {
  content: ""; position: absolute; left: 22%; top: 14%; width: 16%; height: 46%; border-radius: 99px;
  background: linear-gradient(rgba(255, 255, 255, .75), rgba(255, 255, 255, 0)); transform: rotate(8deg);
}
/* ---------- иконки разделов каталога */
.ico { --c: #b8243c; display: inline-grid; place-items: center; flex: none; width: 64px; aspect-ratio: 1; border-radius: 30%; background: color-mix(in srgb, var(--c) 30%, var(--card)); box-shadow: inset 0 0 0 1px rgba(36, 21, 25, .06); }
.ico svg { width: 70%; height: 70%; stroke: var(--ink); stroke-width: 2.2; }
.ico .f { fill: var(--c); }
.ico .w { fill: var(--card); }
.ico .k { fill: var(--ink); }
.ico-xs { width: 24px; border-radius: 8px; }
.ico-xs svg { width: 80%; height: 80%; stroke-width: 2.6; }
.ico-xl { width: 104px; }
.ico-xl svg { stroke-width: 2; }
.ph-cat .ico, .side-cat .ico { background: var(--card); }
.ct .ico { margin-bottom: 12px; transition: transform .25s; }
.ct:hover .ico { transform: rotate(-6deg) scale(1.04); }
.empty .ico { margin-bottom: 20px; }
.nail-xs { width: 12px; }
.nail-xs::after { display: none; }
.nail-lg { width: 54px; }
.nail-xl { width: 92px; }
.fan { display: inline-flex; align-items: flex-end; }
.fan .nail { width: 30px; margin-left: -6px; }
.fan .nail:nth-child(1) { transform: rotate(-12deg) translateY(2px); margin-left: 0; }
.fan .nail:nth-child(2) { transform: translateY(-6px); z-index: 1; }
.fan .nail:nth-child(3) { transform: rotate(12deg) translateY(2px); }
.fan-lg .nail { width: 64px; margin-left: -12px; }

/* ---------- шапка */
.hd { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hd-in { display: flex; align-items: center; gap: 28px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand b { display: block; font: 700 24px/1 var(--display); letter-spacing: -.01em; }
.brand small { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.logo { width: 28px; height: 34px; stroke: none; }
.logo-n { fill: var(--lac); }
.logo-g { fill: none; stroke: rgba(255, 255, 255, .8); stroke-width: 3; stroke-linecap: round; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { padding: 9px 14px; border-radius: 99px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.menu a:hover { background: var(--paper-2); color: var(--ink); }
.menu a[aria-current] { background: var(--ink); color: #fff; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; }
.burger i { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); transition: .2s; }
.burger[aria-expanded="true"] i:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ---------- общие блоки */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 22px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--lac); }
.crumbs > * + *::before { content: "/"; margin-right: 6px; color: var(--line); }
.sec { padding: 46px 0 10px; }
.sec-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 26px; padding-top: 16px; border-top: 2px solid var(--ink); }
.sec-hd h2 { margin: 0; }
.sec-hd a, .picks-hd a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lac); margin-bottom: 16px; }
.kicker a { color: inherit; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 16px 26px; border-radius: 99px; background: var(--lac); color: #fff; font: 600 16px/1 var(--text); text-decoration: none; border: 0; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--lac-2); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.ph { margin-bottom: 26px; }
.ph p { color: var(--ink-2); font-size: 19px; max-width: 760px; }
.ph-cat { display: flex; align-items: center; gap: 30px; padding: 36px; border-radius: 28px; background: color-mix(in srgb, var(--c) 32%, #fff); }
.ph-cat h1 { margin-bottom: 8px; }
.ph-cat p { margin: 0; }
.note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.note-demo { color: var(--lac); font-weight: 600; }

/* ---------- главная */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding: 56px 0 40px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 76px); }
.hero-lead { font-size: 20px; color: var(--ink-2); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { position: relative; padding: 50px 34px 30px; border-radius: 36px; background: radial-gradient(90% 70% at 70% 0, rgba(196, 16, 47, .55) 0, transparent 70%), radial-gradient(80% 60% at 0 100%, rgba(242, 154, 169, .25) 0, transparent 70%), var(--ink); }
.palette { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px 18px; justify-items: center; }
.palette .nail { width: 100%; max-width: 78px; cursor: pointer; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.hero-art .nail { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), inset 0 -6px 10px rgba(0, 0, 0, .18), 0 10px 22px -10px rgba(0, 0, 0, .8); }
.palette .nail:nth-child(odd) { transform: translateY(14px); }
.palette .nail:hover, .palette .nail.is-on { transform: translateY(-8px) rotate(-4deg); }
.palette-cap { margin: 30px 0 0; text-align: center; font: italic 500 24px/1 var(--display); color: #fff; min-height: 24px; }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.ct { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 20px; border-radius: var(--r); background: var(--card); color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s, box-shadow .2s; }
.ct:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.ct .nail { margin-bottom: 12px; transition: transform .25s; }
.ct:hover { color: var(--ink); transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--ink), 0 18px 30px -24px rgba(20, 16, 18, .5); }
.ct:hover .nail { transform: rotate(-8deg); }
.ct-name { font-weight: 700; font-size: 17px; }
.ct-cnt { font-size: 14px; color: var(--muted); }

.arts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.arts:has(.ac-big) { grid-template-columns: repeat(4, 1fr); }
.ac a { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.ac-cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: var(--r); background: linear-gradient(140deg, color-mix(in srgb, var(--b) 80%, #fff) 0, color-mix(in srgb, var(--a) 45%, #fff) 100%); overflow: hidden; transition: transform .25s; }
.ac-cover .fan .nail { width: 46px; margin-left: -10px; }
.ac a:hover .ac-cover { transform: translateY(-3px); }
.ac-meta { margin-top: 16px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--lac); }
.ac-title { margin-top: 8px; font: 600 22px/1.2 var(--display); letter-spacing: -.01em; }
.ac a:hover .ac-title { color: var(--lac); }
.ac-lead { margin-top: 10px; color: var(--ink-2); }
.ac-big { grid-column: span 2; grid-row: span 2; }
.ac-big .ac-cover { aspect-ratio: 16 / 11; }
.ac-big .ac-cover .fan .nail { width: 92px; margin-left: -18px; }
.ac-big .ac-title { font-size: 34px; }

.steps { margin-top: 40px; padding: 48px; border-radius: 30px; background: radial-gradient(70% 90% at 100% 0, rgba(196, 16, 47, .45) 0, transparent 70%), var(--ink); color: #fff; }
.steps h2 { color: #fff; }
.steps ol { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; list-style: none; padding: 0; margin: 26px 0 30px; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 18px; border-top: 1px solid rgba(246, 239, 231, .25); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: italic 600 36px/1 var(--display); color: #ff7088; margin-bottom: 10px; }
.steps b { display: block; font-size: 17px; }
.steps span { font-size: 14px; color: rgba(246, 239, 231, .7); }
.steps .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.steps .btn-ghost:hover { background: #fff; color: var(--ink); }

/* ---------- карточки товаров */
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.pc a { display: flex; flex-direction: column; height: 100%; padding: 12px 12px 14px; border-radius: var(--r); background: var(--card); color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s; }
.pc a:hover { color: var(--ink); transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--ink), 0 18px 30px -24px rgba(20, 16, 18, .5); }
.pc-pic { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; background: #fff; overflow: hidden; margin-bottom: 12px; }
.pc-pic img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.pc-sale { position: absolute; top: 8px; left: 8px; padding: 4px 9px; border-radius: 6px; background: var(--lac); color: #fff; font: 700 12px/1.3 var(--text); font-style: normal; }
.pc-brand { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.pc-name { margin-top: 4px; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: auto; padding-top: 12px; }
.pc-foot b { font-size: 19px; font-weight: 700; }
.pc-foot s { font-size: 14px; color: var(--muted); }
.pc-shop { display: inline-flex; align-items: center; gap: 4px; width: 100%; font-size: 13px; font-weight: 600; color: var(--lac); }
.pc-shop svg { width: 14px; height: 14px; }

.tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 26px 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border: 0; border-radius: 99px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: 500 14px/1.2 var(--text); color: var(--ink-2); cursor: pointer; }
.chip small { color: var(--muted); font-size: 12px; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink-2); }
.chip.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.chip.is-on small { color: rgba(255, 255, 255, .6); }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font: 500 14px var(--text); color: var(--ink); }
.more { display: flex; justify-content: center; margin-top: 26px; }
.guide { display: flex; align-items: center; gap: 18px; margin: 0 0 8px; padding: 16px 22px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; }
.guide span { flex: 1; font-weight: 600; }
.guide small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.guide:hover { color: var(--lac); }
.brands { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 16px 0 0; font-size: 15px; }
.brands p { margin: 0; color: var(--muted); }
.empty { text-align: center; padding: 50px 20px 30px; }
.empty .nail { margin-bottom: 20px; transform: rotate(-8deg); }
.empty p { color: var(--ink-2); }

.picks { margin: 38px 0; padding: 26px; border-radius: 24px; background: var(--paper-2); }
.picks-hd { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; margin-bottom: 16px; }
.picks-hd h3 { margin: 0; }

/* ---------- статья */
.post-hd { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 18px; padding: 52px 56px; border-radius: 32px; background: linear-gradient(130deg, color-mix(in srgb, var(--b) 80%, #fff) 0, color-mix(in srgb, var(--a) 40%, #fff) 100%); }
.post-hd > div { max-width: 760px; }
.post-lead { font-size: 20px; color: var(--ink-2); margin: 0; }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 60px; padding-top: 40px; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; scroll-margin-top: 90px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose ul li::marker { color: var(--lac); }
.prose ol li::marker { color: var(--lac); font-weight: 600; }
.tip { position: relative; padding: 18px 22px 18px 60px; border-radius: 16px; background: var(--lac-soft); }
.tip::before { content: ""; position: absolute; left: 22px; top: 20px; width: 20px; aspect-ratio: 3/4; background: var(--lac); border-radius: 48% 48% 42% 42% / 56% 56% 32% 32%; }
.post-side { position: sticky; top: 96px; align-self: start; display: grid; gap: 18px; }
.toc { padding: 20px 22px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.toc p { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin: 5px 0; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--lac); }
.side-cat { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--r); background: color-mix(in srgb, var(--c) 30%, #fff); color: var(--ink); text-decoration: none; font-size: 13px; color: var(--muted); }
.side-cat b { display: block; font-size: 16px; color: var(--ink); }
.side-cat:hover b { color: var(--lac); }

/* ---------- подвал */
.ft { margin-top: 90px; padding: 60px 0 26px; background: var(--ink); color: #fff; font-size: 15px; }
.ft .brand, .ft .brand:hover { color: #fff; }
.ft .brand small { color: rgba(255, 255, 255, .55); }
.ft .ico { background: color-mix(in srgb, var(--c) 85%, #fff); }
.ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.ft-about p { color: rgba(255, 255, 255, .75); margin-top: 16px; max-width: 420px; }
.ft-note { font-size: 13px; color: rgba(255, 255, 255, .5) !important; }
.ft-note a { color: #ff7088; }
.ft-h { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ff7088; }
.ft ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.ft ul a { color: rgba(255, 255, 255, .85); text-decoration: none; display: inline-flex; align-items: center; gap: 9px; }
.ft ul a:hover { color: #fff; text-decoration: underline; }
.ft-cats { grid-template-columns: 1fr 1fr; }
.ft-copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 13px; color: rgba(255, 255, 255, .5); }
.ft-copy a { color: inherit; }

/* ---------- адаптив */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .arts, .arts:has(.ac-big) { grid-template-columns: repeat(2, 1fr); }
  .steps ol { grid-template-columns: repeat(3, 1fr); }
  .post-grid { grid-template-columns: 1fr; gap: 10px; }
  .post-side { position: static; order: -1; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .burger { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 70px; flex-direction: column; padding: 12px 20px 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .menu.is-open { display: flex; }
  .menu a { padding: 12px 14px; font-size: 17px; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 36px; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .ft-about { grid-column: 1 / -1; }
  .post-hd { flex-direction: column; align-items: flex-start; padding: 30px 26px; }
  .post-hd .fan { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .box { width: calc(100% - 28px); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pc a { padding: 8px 8px 12px; }
  .pc-name { font-size: 14px; }
  .arts, .arts:has(.ac-big) { grid-template-columns: 1fr; }
  .ac-big { grid-column: auto; grid-row: auto; }
  .ac-big .ac-title { font-size: 24px; }
  .cats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .steps { padding: 28px 22px; }
  .steps ol { grid-template-columns: 1fr 1fr; }
  .ph-cat { flex-direction: column; align-items: flex-start; padding: 24px; gap: 16px; }
  .ph-cat .nail-xl, .ph-cat .ico-xl { width: 64px; }
  .post-side { grid-template-columns: 1fr; }
  .picks { padding: 16px; margin-inline: -6px; }
  .sec-hd { flex-wrap: wrap; }
  .ft-grid { grid-template-columns: 1fr; }
  .palette { gap: 16px 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
