/* Noktopolis — „Часовникът“: бяла стена, черен обков, мъх във всички цветове, златни стрелки. */
@font-face { font-family: "Onest"; font-weight: 400; src: url(fonts/onest-cyrillic-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Onest"; font-weight: 400; src: url(fonts/onest-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Onest"; font-weight: 600; src: url(fonts/onest-cyrillic-600-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Onest"; font-weight: 600; src: url(fonts/onest-latin-600-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Onest"; font-weight: 800; src: url(fonts/onest-cyrillic-800-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Onest"; font-weight: 800; src: url(fonts/onest-latin-800-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Comforter"; src: url(fonts/comforter-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Comforter"; src: url(fonts/comforter-cyrillic-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

:root {
  --wall: #f4f1ec;
  --face: #fbfaf7;
  --ink: #17171c;
  --muted: #5d5b62;
  --gold: #c9a85a;
  --fuchsia: #b0225e;
  --lime: #b6c62c;
  --iris: #4a5fb8;
  --sun: #e8c12c;
  --moss: #4f8a2e;
  --oat: #d8c9a3;
  --f-body: "Onest", system-ui, sans-serif;
  --f-script: "Comforter", cursive;
  --moss-line: linear-gradient(90deg, var(--fuchsia) 0 16%, var(--lime) 16% 33%, var(--iris) 33% 50%, var(--sun) 50% 66%, var(--moss) 66% 83%, var(--oat) 83% 100%);
}

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { font-family: var(--f-body); color: var(--ink); background: var(--wall); font-size: 1.0625rem; }
h1, h2, h3 { font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .6em; }
h2 { font-size: clamp(2rem, 6vw, 3.3rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--fuchsia); }
.script { font-family: var(--f-script); font-weight: 400; letter-spacing: 0; }
.demo-bar { background: var(--ink); color: #d9d6cf; }

.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 42px; height: 6px; border-radius: 3px; background: var(--moss-line); flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: .7rem 1.35rem; border-radius: 999px; font: 600 1rem/1.2 var(--f-body);
  text-decoration: none; cursor: pointer; border: 2px solid var(--ink);
}
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #2c2c34; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }

/* Хедър */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .5rem 1rem; background: rgba(244, 241, 236, .94); backdrop-filter: blur(6px);
  border-bottom: 1px solid #ddd8ce;
}
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: var(--moss-line); }
.top__brand { font-family: var(--f-script); font-size: 2.1rem; line-height: 1; color: var(--ink); text-decoration: none; }
.top__brand small { display: block; font: 600 .62rem/1.2 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }
.top__nav { display: none; gap: 1.6rem; }
.top__nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.top__nav a:hover { color: var(--fuchsia); }
.top__call { min-height: 42px; padding: .45rem 1.1rem; font-size: .95rem; }

/* Начало с часовника */
.hero { display: grid; gap: 2.5rem; padding: 3rem 1.25rem 3.5rem; }
.hero h1 { font-size: clamp(2.3rem, 8vw, 4.2rem); }
.hero h1 .script { display: block; font-size: 1.15em; color: var(--fuchsia); line-height: 1; margin-bottom: .1em; }
.hero__lead { max-width: 33rem; font-size: 1.15rem; color: #34333a; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.hero__clock { margin: 0 auto; width: min(88vw, 470px); text-align: center; }
.clock { width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgba(23, 23, 28, .22)); }
.clock__name { font-family: var(--f-script); font-size: 48px; fill: var(--ink); }
.clock-status { display: inline-flex; align-items: center; gap: .5rem; margin: 1rem 0 0; padding: .45rem 1rem; border-radius: 999px; background: var(--face); border: 1.5px solid var(--ink); font-weight: 600; font-size: .95rem; }
.clock-status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #b9b4aa; }
.clock-status.is-open::before { background: var(--moss); box-shadow: 0 0 0 4px rgba(79,138,46,.2); }
.clock__open { stroke: var(--gold); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1 10; }
.hero__clock figcaption { font-size: .9rem; color: var(--muted); margin-top: .8rem; }
.gold-dash { display: inline-block; width: 30px; height: 5px; vertical-align: middle; background: radial-gradient(circle, var(--gold) 2.5px, transparent 3px) 0 0 / 10px 5px repeat-x; }

/* Палитрата: всяка снимка е мостра с цвят */
.palette { padding: 4rem 1.25rem; background: var(--face); border-top: 1px solid #e6e1d6; border-bottom: 1px solid #e6e1d6; }
.palette__head { max-width: 72rem; margin: 0 auto 2rem; }
.palette__head > p:not(.eyebrow) { color: var(--muted); max-width: 34rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.filters button {
  font: 600 .95rem/1 var(--f-body); padding: .65rem 1.05rem; min-height: 44px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink); border: 1.5px solid #cfc9bd;
}
.filters button.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips { list-style: none; margin: 0 auto; padding: 0; max-width: 72rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.chips li { background: #fff; border-radius: 14px; padding: .45rem .45rem .7rem; box-shadow: 0 1px 0 #e3ddd0, 0 10px 24px -18px rgba(23,23,28,.5); }
.chips li[hidden] { display: none; }
.chips img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.chips span { display: flex; align-items: center; gap: .5rem; margin-top: .6rem; padding-left: .2rem; font-weight: 600; font-size: .92rem; }
.chips span::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), inset -3px -4px 6px rgba(0,0,0,.18), inset 3px 3px 5px rgba(255,255,255,.45); }
.palette__more { text-align: center; margin: 2rem 0 0; font-weight: 600; }

/* Услуги */
.services { padding: 4rem 1.25rem; max-width: 72rem; margin: 0 auto; }
.services__head > p:not(.eyebrow) { color: var(--muted); max-width: 32rem; }
.services__list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; counter-reset: s; }
.services__list li { position: relative; padding: 1.4rem 1.3rem 1.2rem 4.4rem; background: var(--face); border-radius: 18px; border: 1px solid #e3ddd0; counter-increment: s; }
.services__list li::before {
  content: counter(s, upper-roman); position: absolute; left: 1.1rem; top: 1.2rem; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--gold); font-weight: 600; font-size: .9rem;
}
.services__list li:nth-child(1) { border-top: 4px solid var(--fuchsia); }
.services__list li:nth-child(2) { border-top: 4px solid var(--lime); }
.services__list li:nth-child(3) { border-top: 4px solid var(--iris); }
.services__list li:nth-child(4) { border-top: 4px solid var(--sun); }
.services__list h3 { margin-bottom: .35rem; }
.services__list p { margin: 0; color: #46454c; }

/* Студиото */
.studio { padding: 4rem 1.25rem; background: var(--ink); color: #eeeae2; display: grid; gap: 2.5rem; }
.studio .eyebrow { color: #b9b4aa; }
.studio h2 .script { display: block; color: var(--lime); font-size: 1.2em; line-height: 1.1; }
.studio__text p:not(.eyebrow) { color: #cfcac0; max-width: 34rem; }
.studio__photos { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: .8rem; align-items: end; }
.studio__photos img { border-radius: 14px; width: 100%; object-fit: cover; }
.studio__a { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.studio__b { aspect-ratio: 4 / 5; }
.studio__c { border-radius: 50% !important; aspect-ratio: 1; align-self: center; }

/* Контакти */
.contacts { display: grid; gap: 2rem; padding: 4rem 1.25rem; max-width: 72rem; margin: 0 auto; }
.contacts address { font-style: normal; font-size: 1.12rem; margin-bottom: 1.2rem; }
.hours { margin: 0 0 1.4rem; }
.hours div { display: flex; justify-content: space-between; max-width: 20rem; padding: .7rem 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); font-weight: 600; }
.hours dd { margin: 0; }
.contacts__phones { display: flex; flex-wrap: wrap; gap: .6rem; }
.contacts__social { display: flex; gap: 1.4rem; font-weight: 600; }
.map-box { border-radius: 22px; background: var(--face); border: 1px solid #e3ddd0; overflow: hidden; }
.map-box.is-loaded iframe { height: 420px; }

/* Футър */
.foot { position: relative; padding: 2.8rem 1.25rem 3rem; text-align: center; background: var(--ink); color: #b9b4aa; font-size: .92rem; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--moss-line); }
.foot a { color: #fff; }
.foot__brand { font-family: var(--f-script); font-size: 2.8rem; color: #fff; margin-bottom: .3rem; line-height: 1; }
.foot__links { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; }

/* Поверителност */
.page-legal { background: var(--face); }
.page-legal .legal h1 { font-size: 2.2rem; }
.page-legal .legal h2 { font-size: 1.2rem; }

@media (min-width: 640px) {
  .chips { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
}
@media (min-width: 860px) {
  .top { padding: .55rem 2rem; }
  .top__nav { display: flex; }
  .hero { grid-template-columns: 1.15fr 1fr; align-items: center; padding: 5rem 3rem; max-width: 76rem; margin: 0 auto; }
  .palette, .services, .contacts { padding: 6rem 3rem; }
  .chips { grid-template-columns: repeat(4, 1fr); }
  .services__list { grid-template-columns: repeat(2, 1fr); }
  .studio { grid-template-columns: 1fr 1.2fr; align-items: center; padding: 6rem max(3rem, calc((100vw - 72rem) / 2)); gap: 4rem; }
  .contacts { grid-template-columns: 1fr 1.3fr; align-items: center; }
}
@media (min-width: 1200px) {
  .chips { grid-template-columns: repeat(5, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
