/* Pomodoro Nails – „Кухненският домат“ */
@font-face { font-family: "Yeseva One"; font-display: swap; src: url(fonts/yeseva-one-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Yeseva One"; font-display: swap; src: url(fonts/yeseva-one-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Wix Madefor Text"; font-weight: 400; font-display: swap; src: url(fonts/wix-madefor-text-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Wix Madefor Text"; font-weight: 400; font-display: swap; src: url(fonts/wix-madefor-text-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Wix Madefor Text"; font-weight: 600; font-display: swap; src: url(fonts/wix-madefor-text-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Wix Madefor Text"; font-weight: 600; font-display: swap; src: url(fonts/wix-madefor-text-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }

:root {
  --tomato: #c8202a;
  --raspberry: #8f1436;  /* тъмният край на мазката в логото */
  --leaf: #2c6b3f;
  --ink: #1a1214;
  --blush: #fbe6e1;
  --gut: clamp(1.25rem, 5vw, 5rem);
  --sec: clamp(4rem, 8vw, 7.5rem);
}
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { font-family: "Wix Madefor Text", sans-serif; color: var(--ink); background: #fff; line-height: 1.6; }
h1, h2, h3, .stage__name { font-family: "Yeseva One", serif; font-weight: 400; line-height: 1.05; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
h3 { font-size: 1.5rem; }
p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-underline-offset: .2em; }
table { border-collapse: collapse; }
th { text-align: left; font-weight: 400; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.demo-bar { background: var(--ink); }

.btn { display: inline-block; padding: .85rem 1.7rem; border: 2px solid var(--tomato); border-radius: 99px; background: var(--tomato); color: #fff; font: 600 1rem/1.25 "Wix Madefor Text", sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn:hover { background: var(--raspberry); border-color: var(--raspberry); color: #fff; }
.btn--line { background: none; border-color: var(--ink); color: var(--ink); }
.btn--white { background: #fff; border-color: #fff; color: var(--raspberry); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 2rem; padding: .7rem var(--gut); background: #fff; }
.brand { margin-right: auto; }
.brand img { width: clamp(140px, 15vw, 200px); height: auto; }
.top nav { display: flex; gap: 1.8rem; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; }
.top .btn { padding: .6rem 1.25rem; }

.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; align-items: center; padding: 1rem var(--gut) 3rem; min-height: min(calc(100svh - 8rem), 56rem); }
.hero h1 { font-size: clamp(3rem, 6.3vw, 6.2rem); line-height: .98; }
.hero__text > p { max-width: 27rem; margin-top: 1.6rem; font-size: 1.15rem; }
.hero__text > .rating { font-size: 1rem; }
.rating b { color: var(--tomato); font-size: 1.25em; }

.stage { --ph: min(41vw, 74svh, 44rem); position: relative; display: flex; justify-content: flex-end; min-width: 0; }
.looks { position: relative; width: calc(var(--ph) * .75); height: var(--ph); overflow: hidden; border-radius: 1.5rem; background: var(--ink); }
.looks img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.looks img.is-on { display: block; }
.stage__name { position: absolute; right: 1.4rem; bottom: 1.1rem; color: #fff; font-size: clamp(1.7rem, 2.6vw, 2.5rem); text-shadow: 0 1px 14px rgba(0,0,0,.8); pointer-events: none; }
.stage .tomato { position: absolute; left: 0; bottom: -3%; width: calc(100% - var(--ph) * .75 + min(9vw, 9rem)); max-width: 27rem; }

.tomato { position: relative; aspect-ratio: 1; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.tomato:active { cursor: grabbing; }
.tomato svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tomato__num { font: 400 25px "Yeseva One", serif; }
.tomato input { position: absolute; inset: auto 10% 10%; width: 80%; margin: 0; opacity: 0; pointer-events: none; }
.tomato:has(input:focus-visible) { outline: 3px solid var(--leaf); outline-offset: 2px; border-radius: 50%; }

.services { background: var(--tomato); color: #fff; padding: var(--sec) var(--gut); }
.services ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem var(--gut); }
.services h3 { font-size: clamp(2.1rem, 4vw, 3.6rem); margin-bottom: .8rem; }
.services p { max-width: 24rem; }

.works { background: #000; color: #fff; padding: var(--sec) 0; }
.works__head { padding: 0 var(--gut); margin-bottom: 2.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem; }
.strip { display: flex; gap: 1rem; overflow-x: auto; padding: 0 var(--gut) 1.2rem; scroll-snap-type: x proximity; scroll-padding-left: var(--gut); scrollbar-color: var(--tomato) #2a2022; }
.strip li { flex: none; width: clamp(15rem, 24vw, 22rem); scroll-snap-align: start; }
.strip img { width: 100%; border-radius: 1.2rem; }
.works :focus-visible, .services :focus-visible { outline-color: #fff; }

.rules { background: var(--blush); padding: var(--sec) var(--gut); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem var(--gut); align-items: center; }
.rules__head { grid-column: 1 / -1; }
.rules__head p { max-width: 34rem; margin-top: 1rem; font-size: 1.1rem; }
.rules__timer { text-align: center; }
.rules__timer .tomato { max-width: 25rem; margin: 0 auto; }
.rules__min { font-size: 1.2rem; margin-top: .6rem; }
.rules__min b { font: 400 2.6rem/1 "Yeseva One", serif; color: var(--tomato); }
.rules__list li { padding: 1.2rem 1.5rem; border-left: 6px solid #eebfb6; transition: background-color .2s, border-color .2s; }
.rules__list li + li { margin-top: .6rem; }
.rules__list li.is-on { background: #fff; border-color: var(--tomato); }
.rules__list li.is-on:first-child { border-color: var(--leaf); }
.rules__list p { margin-top: .4rem; }
.rules__more { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem var(--gut); margin-top: 2rem; }
.rules__more p { margin-top: .6rem; max-width: 28rem; }
.rules__more table { margin-top: .6rem; width: 100%; max-width: 30rem; }
.rules__more td, .rules__more th { padding: .35rem 1rem .35rem 0; }
.rules__more td + td { font-weight: 600; white-space: nowrap; }

.contact { background: var(--raspberry); color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem var(--gut); padding: var(--sec) var(--gut); }
.contact address { font-style: normal; font-size: 1.1rem; margin-top: 1.6rem; }
.contact table { margin: 1.4rem 0; }
.contact th, .contact td { padding: .2rem 2rem .2rem 0; }
.contact td { font-weight: 600; }
.links { line-height: 2; margin-bottom: 1.8rem; }
.contact > div:first-child :focus-visible { outline-color: #fff; }
.map-box { background: var(--blush); color: var(--ink); border-radius: 1.5rem; overflow: hidden; justify-items: center; gap: 1.2rem; min-height: 380px; }
.map-box p { max-width: 26rem; }
.map-box iframe { height: 100%; min-height: 380px; }

.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem; padding: 2.5rem var(--gut); font-size: .95rem; }
.foot img { width: 160px; }
.foot p:last-child { margin-left: auto; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin: 1.5rem 0 1rem; }
.legal h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.legal p { margin: .6rem 0; }

@media (max-width: 860px) {
  .top { gap: 1rem; }
  .top nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 1.2rem; gap: 1.8rem; }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 5.2rem); }
  .hero__text { display: contents; }
  .hero h1 { order: 0; }
  .hero__text > p, .hero .actions, .hero__text > .rating { order: 2; margin-top: 0; }
  .stage { --ph: min(112vw, 40rem); order: 1; margin-bottom: 1.5rem; }
  .stage__name { bottom: auto; top: 1rem; }
  .stage .tomato { width: min(58vw, 20rem); bottom: -7%; left: -3vw; }
  .services ul, .rules, .rules__more, .contact { grid-template-columns: minmax(0, 1fr); }
  .rules__head, .rules__more { grid-column: auto; }
  .rules__timer .tomato { max-width: 18rem; }
  .strip li { width: 68vw; max-width: 20rem; }
  .foot p:last-child { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .rules__list li { transition: none; } }
