/* ==========================================================================
   TannerCo — Dielňa rodinných financií
   Vintage artisan leather workshop aesthetic
   ========================================================================== */

:root {
  --chestnut: #6B3F2A;
  --chestnut-dark: #4A2A1B;
  --chestnut-deep: #2E1A11;
  --parchment: #F3E7D3;
  --parchment-soft: #FAF3E7;
  --bronze: #A9773F;
  --bronze-light: #D6A75E;
  --forest: #365344;
  --forest-dark: #24382E;
  --ink: #2A1C13;
  --ink-soft: #5C4635;

  --stitch: rgba(243, 231, 211, 0.55);
  --stitch-dark: rgba(107, 63, 42, 0.45);

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;

  --shadow-emboss: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 6px rgba(46, 26, 17, .18);
  --shadow-card: 0 14px 34px -18px rgba(46, 26, 17, .55);
  --shadow-deep: 0 26px 60px -28px rgba(46, 26, 17, .75);

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1160px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--parchment);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(169, 119, 63, .12), transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(54, 83, 68, .12), transparent 48%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--chestnut); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bronze); }

:focus-visible {
  outline: 3px dashed var(--bronze);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--chestnut-deep);
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 3.1vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 1.25rem + 2vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }

p { margin: 0 0 1.1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--bronze), transparent);
}
.eyebrow--center::after {
  content: "";
  width: 34px;
  height: 2px;
  background: linear-gradient(270deg, var(--bronze), transparent);
}

.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: var(--ink-soft); }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forest);
  color: var(--parchment);
  padding: .75rem 1.25rem;
  z-index: 999;
  border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; color: var(--parchment); }

/* ---------- Leather surfaces ---------- */
.leather {
  background-color: var(--chestnut);
  background-image:
    radial-gradient(circle at 20% 15%, rgba(214, 167, 94, .18), transparent 45%),
    radial-gradient(circle at 82% 88%, rgba(46, 26, 17, .5), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='4'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23l)' opacity='.14'/%3E%3C/svg%3E");
  color: var(--parchment);
}
.leather h1, .leather h2, .leather h3 { color: var(--parchment-soft); }
.leather p { color: rgba(243, 231, 211, .84); }


/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--chestnut);
  --btn-fg: var(--parchment-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.7rem;
  border: 1px solid rgba(46, 26, 17, .35);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-emboss), 0 8px 18px -12px rgba(46, 26, 17, .8);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:hover {
  transform: translateY(-2px);
  color: var(--btn-fg);
  box-shadow: var(--shadow-emboss), 0 14px 26px -14px rgba(46, 26, 17, .85);
}
.btn:active { transform: translateY(0); }

.btn--brass { --btn-bg: linear-gradient(180deg, var(--bronze-light), var(--bronze)); --btn-fg: #33200F; }
.btn--forest { --btn-bg: var(--forest); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--parchment-soft);
  border: 2px solid rgba(243, 231, 211, .5);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(243, 231, 211, .12); box-shadow: none; }
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--chestnut);
  border: 2px solid var(--chestnut);
  box-shadow: none;
}
.btn--outline:hover { background: rgba(107, 63, 42, .08); box-shadow: none; }
.btn--block { width: 100%; }
.btn--small { padding: .65rem 1.2rem; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(46, 26, 17, .94);
  border-bottom: 1px solid rgba(169, 119, 63, .45);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--parchment-soft);
}
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
}
.brand__tag {
  display: block;
  font-family: var(--font-body);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bronze-light);
  margin-top: .3rem;
}

.nav { display: flex; align-items: center; gap: clamp(.6rem, 1.4vw, 1.5rem); }
.nav a {
  color: rgba(243, 231, 211, .88);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--bronze-light); border-bottom-color: var(--bronze); }

.header-cta { display: inline-flex; align-items: center; gap: .9rem; }
.header-phone {
  color: var(--parchment-soft);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  font-size: .95rem;
}
.header-phone:hover { color: var(--bronze-light); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid rgba(169, 119, 63, .5);
  border-radius: var(--radius-s);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin: 4px auto;
  background: var(--parchment);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--bronze) 0 14px, transparent 14px 26px);
  opacity: .5;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.hero h1 { text-wrap: balance; }
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.6rem 0 2rem;
  padding: 0;
  list-style: none;
}
.hero__badges li {
  font-size: .82rem;
  letter-spacing: .04em;
  padding: .4rem .9rem;
  border: 1px dashed rgba(243, 231, 211, .45);
  border-radius: 999px;
  color: rgba(243, 231, 211, .9);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__note { margin-top: 1.5rem; font-size: .88rem; color: rgba(243, 231, 211, .68); max-width: 46ch; }

/* Signature element: leather ledger tool */
.ledger {
  position: relative;
  background: linear-gradient(175deg, var(--parchment-soft), var(--parchment));
  border-radius: var(--radius-l);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-deep);
  border: 1px solid rgba(169, 119, 63, .5);
}
.ledger::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px dashed rgba(169, 119, 63, .55);
  border-radius: 14px;
  pointer-events: none;
}
.ledger__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(107, 63, 42, .2);
  padding-bottom: .8rem;
  margin-bottom: 1.1rem;
}
.ledger__title { font-family: var(--font-display); font-size: 1.25rem; color: var(--chestnut-deep); font-weight: 700; }
.ledger__stamp {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bronze);
  border: 1px solid var(--bronze);
  border-radius: 999px;
  padding: .2rem .6rem;
}
.ledger__field { margin-bottom: 1rem; }
.ledger__field label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: .35rem; color: var(--ink-soft); }
.input-money { position: relative; display: flex; align-items: center; }
.input-money input {
  width: 100%;
  padding: .8rem 2.4rem .8rem .9rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(107, 63, 42, .35);
  border-radius: var(--radius-s);
}
.input-money::after {
  content: "€";
  position: absolute;
  right: .9rem;
  color: var(--bronze);
  font-weight: 700;
  pointer-events: none;
}
.ledger__rows { list-style: none; margin: 0 0 1rem; padding: 0; }
.ledger__rows li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: .5rem;
  padding: .55rem 0;
  border-bottom: 1px dotted rgba(107, 63, 42, .3);
}
.ledger__rows b { font-family: var(--font-display); font-size: 1.12rem; color: var(--forest); white-space: nowrap; }
.ledger__rows small { display: block; font-size: .78rem; color: var(--ink-soft); }
.ledger__foot { font-size: .78rem; color: var(--ink-soft); margin: 0; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: clamp(1.1rem, 2.2vw, 1.8rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }


.card {
  position: relative;
  background: var(--parchment-soft);
  border: 1px solid rgba(169, 119, 63, .38);
  border-radius: var(--radius-m);
  padding: clamp(1.3rem, 2.2vw, 1.85rem);
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(169, 119, 63, .4);
  border-radius: 8px;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(46, 26, 17, .6); }
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }

.card__icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--bronze-light), var(--bronze));
  color: #33200F;
  margin-bottom: 1rem;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.6), 0 6px 12px -8px rgba(46,26,17,.9);
}
.card__icon svg { width: 26px; height: 26px; }

.card__list { list-style: none; margin: 1rem 0 0; padding: 0; font-size: .93rem; }
.card__list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .45rem;
  color: var(--ink-soft);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 9px; height: 9px;
  border: 2px solid var(--forest);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step {
  position: relative;
  padding: 1.6rem 1.4rem 1.4rem;
  background: rgba(243, 231, 211, .06);
  border: 1px dashed rgba(243, 231, 211, .35);
  border-radius: var(--radius-m);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--bronze-light);
  line-height: 1;
  margin-bottom: .6rem;
}
.step h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.step p { font-size: .95rem; margin: 0; }

/* ---------- Media blocks ---------- */
.media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.5rem, 4vw, 3.2rem);
  align-items: center;
}
.media__frame {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 8px solid var(--chestnut);
  box-shadow: var(--shadow-deep);
  background: var(--chestnut-dark);
  aspect-ratio: 4 / 3;
}
.media__frame img { width: 100%; height: 100%; object-fit: cover; }
.media__frame::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px dashed rgba(243, 231, 211, .5);
  border-radius: 12px;
  pointer-events: none;
}
.media--reverse .media__frame { order: 2; }


/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.stat {
  text-align: center;
  padding: 1.3rem 1rem;
  border: 1px dashed rgba(169, 119, 63, .55);
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, .35);
}
.stat b { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--forest); }
.stat span { font-size: .86rem; color: var(--ink-soft); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1.2rem, 2.4vw, 2rem); align-items: start; }
.plan {
  position: relative;
  background: var(--parchment-soft);
  border: 1px solid rgba(169, 119, 63, .45);
  border-radius: var(--radius-l);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.plan::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px dashed rgba(169, 119, 63, .38);
  border-radius: 14px;
  pointer-events: none;
}
.plan--featured {
  border-color: var(--forest);
  background: linear-gradient(180deg, #fff, var(--parchment));
  box-shadow: 0 28px 55px -26px rgba(46, 26, 17, .7);
}
.plan--featured::after { border-color: rgba(54, 83, 68, .5); }
.plan__ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--forest);
  color: var(--parchment-soft);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 14px -8px rgba(46,26,17,.9);
}
.plan h3 { margin-bottom: .25rem; }
.plan__for { font-size: .87rem; color: var(--ink-soft); margin-bottom: 1.1rem; }
.plan__price {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.8rem + 1.4vw, 2.9rem);
  color: var(--chestnut-deep);
  line-height: 1;
}
.plan__price sup { font-size: .45em; top: -.7em; }
.plan__unit { font-size: .85rem; color: var(--ink-soft); display: block; margin: .5rem 0 1.2rem; }
.plan__features { list-style: none; margin: 0 0 1.6rem; padding: 0; flex: 1; }
.plan__features li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .6rem;
  font-size: .94rem;
}
.plan__features li::before {
  content: "";
  position: absolute;
  left: .1rem; top: .45em;
  width: 10px; height: 6px;
  border-left: 2px solid var(--bronze);
  border-bottom: 2px solid var(--bronze);
  transform: rotate(-45deg);
}
.plan__features li.is-off { color: rgba(92, 70, 53, .6); }
.plan__features li.is-off::before {
  border: 0;
  width: 10px; height: 2px;
  background: rgba(92, 70, 53, .5);
  transform: none;
  top: .75em;
}

.price-note {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  padding: 1.2rem 1.4rem;
  border: 1px dashed rgba(107, 63, 42, .45);
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, .45);
  font-size: .92rem;
}
.price-note ul { margin: .6rem 0 0; padding-left: 1.2rem; }
.price-note li { margin-bottom: .35rem; }

/* Comparison table */
.table-wrap { overflow-x: auto; margin-top: 2rem; border-radius: var(--radius-m); }
table.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--parchment-soft);
  font-size: .93rem;
}
table.compare caption {
  caption-side: top;
  text-align: left;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bronze);
  padding-bottom: .7rem;
}
table.compare th, table.compare td {
  padding: .85rem 1rem;
  border-bottom: 1px solid rgba(169, 119, 63, .3);
  text-align: left;
}
table.compare thead th {
  background: var(--chestnut);
  color: var(--parchment-soft);
  font-family: var(--font-display);
  font-weight: 700;
}
table.compare tbody th { font-weight: 600; color: var(--chestnut-deep); }
table.compare tbody tr:nth-child(even) { background: rgba(169, 119, 63, .07); }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--parchment-soft);
  border: 1px solid rgba(169, 119, 63, .4);
  border-radius: var(--radius-m);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  margin: 0;
}
.quote p { font-style: italic; color: var(--ink); }
.quote footer { display: flex; align-items: center; gap: .8rem; font-size: .9rem; color: var(--ink-soft); }
.avatar {
  width: 44px; height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--parchment-soft);
  font-family: var(--font-display);
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--parchment-soft);
  border: 1px solid rgba(169, 119, 63, .4);
  border-radius: var(--radius-m);
  margin-bottom: .8rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 1.05rem 3rem 1.05rem 1.2rem;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.06rem;
  color: var(--chestnut-deep);
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--bronze);
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { background: rgba(169, 119, 63, .1); }
.faq .faq__body { padding: 0 1.2rem 1.2rem; font-size: .96rem; color: var(--ink-soft); }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.6rem);
  align-items: start;
}
.form {
  background: var(--parchment-soft);
  border: 1px solid rgba(169, 119, 63, .45);
  border-radius: var(--radius-l);
  padding: clamp(1.4rem, 2.6vw, 2.1rem);
  box-shadow: var(--shadow-card);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.field .req { color: var(--chestnut); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .8rem .9rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(107, 63, 42, .35);
  border-radius: var(--radius-s);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(169, 119, 63, .18);
  outline: none;
}
.field .hint { font-size: .8rem; color: var(--ink-soft); margin-top: .3rem; }
.field .error { display: none; font-size: .82rem; color: #93321F; margin-top: .3rem; font-weight: 600; }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #93321F; background: #FFF7F4; }
.field.is-invalid .error { display: block; }

.checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .7rem;
  align-items: start;
  font-size: .88rem;
  color: var(--ink-soft);
}
.checkbox input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--forest); }

.form-status {
  display: none;
  margin-top: 1.1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-s);
  font-size: .93rem;
  border: 1px dashed var(--forest);
  background: rgba(54, 83, 68, .1);
  color: var(--forest-dark);
}
.form-status.is-visible { display: block; }

.contact-card {
  background: var(--chestnut);
  color: var(--parchment);
  border-radius: var(--radius-l);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  position: relative;
  box-shadow: var(--shadow-deep);
}
.contact-card::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px dashed var(--stitch);
  border-radius: 14px;
  pointer-events: none;
}
.contact-card h3 { color: var(--parchment-soft); }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: .8rem;
  padding: .8rem 0;
  border-bottom: 1px dotted rgba(243, 231, 211, .3);
  font-size: .95rem;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg { width: 20px; height: 20px; color: var(--bronze-light); margin-top: .2rem; }
.contact-list a { color: var(--parchment-soft); text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--bronze-light); text-decoration: underline; }
.contact-list span { display: block; color: rgba(243, 231, 211, .75); font-size: .84rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--chestnut-deep);
  color: rgba(243, 231, 211, .8);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
  font-size: .93rem;
  border-top: 6px solid var(--bronze);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px dashed rgba(243, 231, 211, .25);
}
.site-footer h4 {
  color: var(--bronze-light);
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-family: var(--font-body);
  margin-bottom: .9rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(243, 231, 211, .8); text-decoration: none; }
.footer-links a:hover { color: var(--bronze-light); text-decoration: underline; }
.footer-bottom {
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: space-between;
  font-size: .84rem;
  color: rgba(243, 231, 211, .6);
}
.disclaimer {
  margin-top: 1.2rem;
  font-size: .82rem;
  line-height: 1.6;
  color: rgba(243, 231, 211, .6);
  max-width: 90ch;
}

/* ---------- Cookie banner ---------- */
.cookie-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 130%);
  width: min(100% - 1.6rem, 980px);
  background: var(--chestnut-deep);
  color: var(--parchment);
  border: 1px solid var(--bronze);
  border-radius: var(--radius-l);
  padding: 1.2rem 1.3rem;
  z-index: 200;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .8);
  transition: transform .4s cubic-bezier(.2, .8, .3, 1);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.2rem;
  align-items: center;
}
.cookie-bar.is-open { transform: translate(-50%, 0); }
.cookie-bar p { margin: 0; font-size: .9rem; color: rgba(243, 231, 211, .85); }
.cookie-bar h4 { font-family: var(--font-display); color: var(--parchment-soft); font-size: 1.05rem; margin: 0 0 .35rem; letter-spacing: 0; text-transform: none; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(46, 26, 17, .72);
  backdrop-filter: blur(3px);
}
.modal__panel {
  background: var(--parchment-soft);
  border-radius: var(--radius-l);
  max-width: 560px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-deep);
  border: 1px solid var(--bronze);
}
.modal__panel h3 { margin-bottom: .6rem; }
.cookie-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .8rem;
  padding: .9rem 0;
  border-bottom: 1px dotted rgba(107, 63, 42, .3);
  font-size: .9rem;
}
.cookie-option strong { display: block; color: var(--chestnut-deep); }
.cookie-option input { width: 20px; height: 20px; accent-color: var(--forest); margin-top: .2rem; }
.cookie-option input:disabled { opacity: .6; }
.modal__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--bronze);
  background: var(--chestnut);
  color: var(--parchment-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 90;
  box-shadow: var(--shadow-card);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Legal pages ---------- */
.page-hero { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.page-hero h1 { margin-bottom: .4rem; }
.page-hero p { max-width: 65ch; }
.breadcrumb { font-size: .84rem; color: rgba(243, 231, 211, .7); margin-bottom: 1rem; }
.breadcrumb a { color: var(--bronze-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.doc {
  max-width: 860px;
  margin-inline: auto;
  background: var(--parchment-soft);
  border: 1px solid rgba(169, 119, 63, .4);
  border-radius: var(--radius-l);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-card);
}
.doc h2 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); margin-top: 2rem; }
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { font-size: 1.12rem; margin-top: 1.4rem; }
.doc ul, .doc ol { padding-left: 1.3rem; margin-bottom: 1.1rem; }
.doc li { margin-bottom: .45rem; }
.doc .meta {
  font-size: .85rem;
  color: var(--ink-soft);
  padding-bottom: 1.2rem;
  margin-bottom: 1.6rem;
  border-bottom: 2px dashed rgba(169, 119, 63, .45);
}
.doc .callout {
  border-left: 4px solid var(--forest);
  background: rgba(54, 83, 68, .08);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  margin: 1.4rem 0;
  font-size: .94rem;
}
.doc dl { margin: 0 0 1.2rem; }
.doc dt { font-weight: 700; color: var(--chestnut-deep); margin-top: .8rem; }
.doc dd { margin: .2rem 0 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .media--reverse .media__frame { order: 0; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--chestnut-deep);
    border-bottom: 1px solid var(--bronze);
    padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid rgba(243, 231, 211, .12); }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: rgba(243, 231, 211, .12); }
  .header-phone { display: none; }
  .site-header { position: relative; }
}

@media (max-width: 720px) {
  .cookie-bar { grid-template-columns: 1fr; }
  .cookie-actions .btn { flex: 1 1 auto; }
  .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .cookie-bar, .to-top, .modal { display: none !important; }
  body { background: #fff; }
}
