:root {
  --paper: #FCFCF8;
  --tint: #F5F1E8;
  --navy: #2C485D;
  --ink: #1F3445;
  --muted: #55677A;
  --gold: #B19973;
  --gold-text: #806539;
  --line: #E4DCCB;
  --error: #A8322D;
  --ok: #2F6B4A;
  --serif: "Boska", Georgia, "Times New Roman", serif;
  --sans: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--navy); margin: 0; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 7vw, 5rem); letter-spacing: -0.01em; }
h1 em, .sign em { font-style: italic; font-weight: 500; color: var(--gold-text); }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.25rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: .75rem 1rem; z-index: 50; }
.skip:focus { left: 0; }

.eyebrow {
  font-size: .8125rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-text); margin: 0 0 1rem;
  display: flex; align-items: center; gap: .75rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: var(--gold); }
.lead { font-size: 1.1875rem; color: var(--muted); max-width: 34rem; }

.ico { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico--fill { fill: currentColor; stroke: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem; padding: .75rem 1.75rem;
  background: var(--navy); color: #fff; border: 1px solid var(--navy); border-radius: 999px;
  font: 600 1rem/1.2 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--small { min-height: 2.75rem; padding: .5rem 1.15rem; font-size: .9375rem; background: transparent; color: var(--navy); border-color: var(--gold); }
.btn--small:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.link { font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .35em; text-decoration-thickness: 1px; padding: .75rem .25rem; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: var(--navy); }

/* Header */
.header { position: sticky; top: 0; z-index: 30; background: rgba(252, 252, 248, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .25s; }
.header.is-scrolled { border-bottom-color: var(--line); }
.header__in { display: flex; align-items: center; gap: 1.5rem; min-height: 4.75rem; }
.brand { margin-right: auto; display: flex; align-items: center; gap: .75rem; flex: none; text-decoration: none; }
.brand img { height: 3.5rem; width: 3.5rem; max-width: none; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font: 500 1.35rem/1.1 var(--serif); letter-spacing: .06em; text-transform: uppercase; color: var(--navy); white-space: nowrap; }
.brand__sub { font-size: .75rem; font-weight: 600; letter-spacing: .16em; color: var(--gold-text); white-space: nowrap; }
.nav { display: flex; gap: 2rem; }
.nav a { font-weight: 600; font-size: .9375rem; text-decoration: none; color: var(--ink); padding: .75rem 0; background: linear-gradient(var(--gold), var(--gold)) 0 85% / 0 1px no-repeat; transition: background-size .25s; }
.nav a:hover { background-size: 100% 1px; }

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3.5rem, 8vw, 7rem); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.hero .lead { margin: 1.5rem 0 2.25rem; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.hero__mark { position: relative; justify-self: center; width: min(100%, 26rem); }
.hero__mark::before { content: ""; position: absolute; inset: -9%; border-radius: 50%; background: radial-gradient(closest-side, var(--tint) 62%, transparent 100%); }
.hero__mark img { position: relative; width: 100%; }

.hero__text > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero__text > :nth-child(2) { animation-delay: .08s; }
.hero__text > :nth-child(3) { animation-delay: .16s; }
.hero__text > :nth-child(4) { animation-delay: .24s; }
.hero__mark { animation: bloom 1.2s cubic-bezier(.2, .7, .2, 1) .1s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes bloom { from { opacity: 0; transform: scale(.94) rotate(-4deg); } }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--tint { background: var(--tint); }
.head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.head .lead { margin-top: 1.25rem; }

.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(2rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.service { display: grid; align-content: start; grid-template-columns: 3rem 1fr; column-gap: 1rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.service__no { grid-row: span 2; font: italic 500 1.35rem/1.5 var(--serif); color: var(--gold-text); }
.service h3 { transition: color .2s; }
.service p { margin: .35rem 0 0; color: var(--muted); }
.note { margin: 2.5rem 0 0; font: italic 500 1.4rem/1.4 var(--serif); color: var(--navy); }

/* About */
.about { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(2rem, 7vw, 6rem); }
.about__photo { position: relative; max-width: 24rem; width: 100%; justify-self: center; }
.about__photo::after { content: ""; position: absolute; inset: 0; transform: translate(.9rem, .9rem); border: 1px solid var(--gold); border-radius: 12rem 12rem 4px 4px; pointer-events: none; }
.about__photo > img, .about__placeholder { position: relative; z-index: 1; width: 100%; aspect-ratio: 3 / 4; border-radius: 12rem 12rem 4px 4px; object-fit: cover; }
.about__placeholder { display: grid; place-items: center; background: linear-gradient(160deg, #EDE6D6, #E3D9C3); }
.about__placeholder img { width: 46%; opacity: .55; }
.about__text p { max-width: 36rem; }
.about__text h2 { margin-bottom: 1.5rem; }
.sign { margin-top: 1.75rem; font: 500 1.5rem/1.3 var(--serif); color: var(--navy); }

/* Contact */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact__list { list-style: none; margin: 0; padding: 0; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.contact__list li:first-child { border-top: 1px solid var(--line); }
.contact__list .ico { margin-top: .3rem; color: var(--gold-text); }
.contact__list a { font-size: 1.125rem; font-weight: 600; color: var(--navy); text-decoration: none; overflow-wrap: anywhere; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .25s; }
.contact__list a:hover { background-size: 100% 1px; }
.label { display: block; font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact__list .contact__hours { display: block; color: var(--muted); border-bottom: 0; }

.form { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: .35rem; }
.form input, .form textarea {
  width: 100%; padding: .8rem 1rem; min-height: 3rem;
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid #C9BFA9; border-radius: 4px;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 8rem; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(44, 72, 93, .18); }
.form [aria-invalid="true"] { border-color: var(--error); }
.form ::placeholder { color: #6E7C89; }
.error { margin: .3rem 0 0; font-size: .9rem; color: var(--error); min-height: 0; }
.error:empty { display: none; }
.hint { font-size: .9rem; color: var(--muted); margin: 0 0 1.1rem; }
.form .btn { width: 100%; }
.form__status { margin: 1rem 0 0; font-weight: 600; }
.form__status:empty { display: none; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: var(--error); }
.form > .hint:last-child { margin: 1rem 0 0; }
.field--captcha { min-height: 78px; }
@media (max-width: 400px) { .g-recaptcha { transform: scale(.88); transform-origin: 0 0; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.footer { background: var(--navy); color: #E9EEF2; padding: 3rem 0; font-size: .9375rem; }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem; }
.footer img { width: 4rem; background: var(--paper); border-radius: 50%; padding: .2rem; }
.footer p { margin: 0; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__copy { margin-left: auto !important; color: #C3CED8; }

.footer__credit { flex-basis: 100%; text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.sophistico-credit, .sophistico-credit:hover, .sophistico-credit:visited, .sophistico-credit:active { font-size: 11px; color: #ffffff; letter-spacing: 2px; text-transform: lowercase; text-decoration: none; display: inline-block; cursor: pointer; padding: .5rem 0; }
.sophistico-credit .letter { font-family: 'Orbitron', sans-serif; font-weight: 700; text-transform: uppercase; display: inline-block; margin-right: 4px; transition: margin-right .4s cubic-bezier(.25, .46, .45, .94), filter .4s ease; }
.sophistico-credit:hover .letter { margin-right: 6px; filter: drop-shadow(0 0 12px rgba(255, 255, 255, .9)) drop-shadow(0 0 25px rgba(255, 255, 255, .5)); }
.sophistico-credit .letter:nth-child(1) { transition-delay: 0.00s; }
.sophistico-credit .letter:nth-child(2) { transition-delay: 0.03s; }
.sophistico-credit .letter:nth-child(3) { transition-delay: 0.06s; }
.sophistico-credit .letter:nth-child(4) { transition-delay: 0.09s; }
.sophistico-credit .letter:nth-child(5) { transition-delay: 0.12s; }
.sophistico-credit .letter:nth-child(6) { transition-delay: 0.15s; }
.sophistico-credit .letter:nth-child(7) { transition-delay: 0.18s; }
.sophistico-credit .letter:nth-child(8) { transition-delay: 0.21s; }
.sophistico-credit .letter:nth-child(9) { transition-delay: 0.24s; }
.sophistico-credit .letter:nth-child(10) { transition-delay: 0.27s; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .nav { display: none; }
  .hero__in, .about, .contact { grid-template-columns: 1fr; }
  .hero__mark { order: -1; width: min(60%, 15rem); }
  .services { grid-template-columns: 1fr; }
  .footer__copy { margin-left: 0 !important; }
}
@media (max-width: 520px) {
  .brand img { height: 2.9rem; width: 2.9rem; }
  .brand__name { font-size: 1.05rem; }
  .brand__sub { font-size: .625rem; letter-spacing: .12em; }
  .btn--small span { display: none; }
  .btn--small { padding: 0; width: 2.75rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero__cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Arc carousel (služby) */
.has-arc .services { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.has-arc { padding-top: 0; }
.acc-head { position: absolute; top: clamp(1.5rem, 6vh, 3.5rem); right: 6vw; margin: 0; pointer-events: none; }
.acc-head[data-narrow] { top: 0; left: 0; right: 0; padding: 1.25rem 1.25rem 3rem; background: linear-gradient(to bottom, var(--paper) calc(100% - 3rem), transparent); }
.acc-head[data-narrow] .eyebrow { margin-bottom: .4rem; }
.acc-head[data-narrow] h2 { font-size: 1.75rem; }
.acc-track { position: relative; width: 100vw; margin-inline: calc(50% - 50vw); height: calc((100svh - var(--acc-top, 0px)) * var(--acc-steps, 1)); background: var(--paper); }
.acc-stage { position: sticky; top: var(--acc-top, 0px); height: calc(100svh - var(--acc-top, 0px)); overflow: hidden; isolation: isolate; }
.acc-card { position: absolute; left: 0; top: 0; overflow: hidden; border-radius: 10px; will-change: transform; cursor: pointer; background: var(--line); box-shadow: 0 1px 2px rgba(31, 52, 69, .08), 0 14px 34px -10px rgba(31, 52, 69, .38); }
.acc-card > img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; pointer-events: none; }
.acc-cap { position: absolute; right: 6vw; transform: translateY(-50%); pointer-events: none; }
.acc-num { font-size: .8125rem; font-weight: 600; letter-spacing: .14em; font-variant-numeric: tabular-nums; color: var(--gold-text); margin: 0 0 1rem; }
.acc-title { margin: 0; font: 500 clamp(2.25rem, 4.6vw, 4.25rem)/1.02 var(--serif); letter-spacing: -.01em; color: var(--navy); text-wrap: balance; }
.acc-meta { margin: 1.1rem 0 0; font-size: 1.125rem; color: var(--muted); max-width: 30rem; }
.acc-cap[data-narrow] { left: 0; right: 0; top: auto; bottom: 0; transform: none; padding: 3.5rem 1.25rem 1.5rem; background: linear-gradient(to top, var(--paper) calc(100% - 3.5rem), transparent); }
.acc-cap[data-narrow] .acc-num { margin-bottom: .5rem; }
.acc-cap[data-narrow] .acc-title { font-size: 1.9rem; }
.acc-cap[data-narrow] .acc-meta { margin-top: .5rem; font-size: 1rem; }
