/* AD restaurācija — dalbergs.lv
   Dark, editorial design: warm near-black, oak/brass accent, Playfair Display + Manrope.
   Type stays large and high-contrast for older visitors. */
:root {
  color-scheme: dark;
  --bg: #0e0d0b;
  --bg-2: #141210;
  --surface: #1a1815;
  --surface-2: #23201c;
  --line: rgb(236 230 220 / .1);
  --line-2: rgb(236 230 220 / .18);
  --text: #ece6dc;
  --muted: #aaa296;
  --dim: #857d72;
  --accent: #c99a63;
  --accent-2: #e3bf8c;
  --accent-ink: #1a120a;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.1875rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* subtle grain for depth */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: var(--accent-2); text-underline-offset: .2em; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; font-family: var(--serif); font-weight: 400; color: #fff; line-height: 1.1; margin: 0 0 .45em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5.25rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: 1.6rem; line-height: 1.15; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.2rem, 1.7vw, 1.4rem); line-height: 1.6; color: var(--muted); max-width: 40em; }
.kicker {
  display: inline-flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem;
  font-size: .85rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}
.kicker::before { content: ""; width: 2.5rem; height: 1px; background: currentColor; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .75rem 1rem; z-index: 300; }
.skip:focus { left: 1rem; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 3.4rem; padding: .75rem 1.6rem;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 999px;
  font: 600 1.05rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s, border-color .25s;
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-ink); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn--ghost { background: rgb(255 255 255 / .04); color: var(--text); border-color: var(--line-2); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgb(255 255 255 / .1); border-color: var(--text); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--accent-ink); }
.btn--small { min-height: 2.8rem; padding: .45rem 1.2rem; font-size: .98rem; }
.link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line-2); padding-bottom: .2rem; transition: border-color .2s, color .2s; }
.link:hover { color: var(--accent-2); border-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Top bar & header */
.topbar { background: var(--bg); color: var(--muted); font-size: .95rem; border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; gap: 1.75rem; min-height: 2.75rem; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
.topbar a:hover { color: var(--text); }
.topbar__phone { color: var(--text) !important; font-weight: 600; }
.topbar .icon { color: var(--accent); }
.langs { margin-left: auto; display: flex; gap: .2rem; padding: .2rem; border: 1px solid var(--line); border-radius: 999px; }
.langs a { padding: .1rem .7rem; border-radius: 999px; font-weight: 600; font-size: .85rem; letter-spacing: .06em; }
.langs a[aria-current] { background: var(--text); color: var(--bg); }

.header { position: sticky; top: 0; z-index: 50; background: rgb(14 13 11 / .8); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.75rem; }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--text); }
.brand__mark {
  display: grid; place-items: center; width: 2.9rem; height: 2.9rem; flex: none;
  border: 1px solid var(--accent); color: var(--accent-2); border-radius: 50%;
  font: italic 400 1.35rem/1 var(--serif);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font: 400 1.45rem/1 var(--serif); letter-spacing: -.01em; color: #fff; }
.brand__text small { font-size: .72rem; color: var(--dim); letter-spacing: .22em; text-transform: uppercase; margin-top: .3rem; }
.nav { display: flex; align-items: center; gap: .15rem; }
.nav a:not(.btn) { position: relative; padding: .55rem .85rem; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 1.02rem; transition: color .2s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:not(.btn):hover { color: #fff; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: #fff; }
.nav .btn { margin-left: .9rem; }
.menu-btn { display: none; }

@media (max-width: 1020px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: .5rem; min-height: 3rem; padding: .5rem 1.1rem;
    background: none; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text);
    font: 600 1rem var(--sans); cursor: pointer;
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.5rem;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--line); font: 400 1.7rem/1.15 var(--serif); color: var(--text); }
  .nav a:not(.btn)::after { display: none; }
  .nav a[aria-current="page"] { color: var(--accent-2); }
  .nav .btn { margin: 1.25rem 0 0; justify-content: center; }
}
@media (max-width: 560px) {
  .topbar__in { gap: .75rem; }
  .topbar__mail { display: none !important; }
  .topbar__phone { white-space: nowrap; font-size: .95rem; }
  .langs { gap: 0; padding: .15rem; }
  .langs a { padding: .1rem .42rem; font-size: .8rem; }
  .brand__text strong { font-size: 1.4rem; }
  .menu-btn span { display: none; }
}

/* Sections */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section--flush { padding-top: 0; }
.section--tint { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section__head h2 { margin: 0; }

/* Hero — full-bleed photo */
.hero { position: relative; min-height: min(90vh, 940px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 18s var(--ease) both; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgb(14 13 11 / .4) 0%, rgb(14 13 11 / .15) 35%, rgb(14 13 11 / .85) 78%, var(--bg) 100%),
    linear-gradient(90deg, rgb(14 13 11 / .75) 0%, transparent 70%);
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__in { padding-top: 8rem; padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero h1 { max-width: 13ch; margin-bottom: 2rem; text-shadow: 0 2px 40px rgb(0 0 0 / .45); }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem 4rem; flex-wrap: wrap; }
.hero .lead { color: #ddd6cb; margin: 0; max-width: 32em; }

/* Quick links */
.quick { border-bottom: 1px solid var(--line); background: var(--bg); }
.quick__in { display: grid; grid-template-columns: repeat(5, 1fr); }
.quick__item {
  display: flex; align-items: center; gap: .9rem; padding: 1.6rem 1.25rem;
  color: var(--text); text-decoration: none; font-weight: 600; line-height: 1.25; font-size: 1.05rem;
  border-left: 1px solid var(--line); transition: background .25s, color .25s;
}
.quick__item:last-child { border-right: 1px solid var(--line); }
.quick__item:hover { background: var(--surface); color: var(--accent-2); }
.quick__icon .icon { width: 1.9rem; height: 1.9rem; color: var(--accent); }
@media (max-width: 1000px) {
  .quick__in { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  .quick__item { hyphens: auto; overflow-wrap: break-word; }
  .quick__item { border: 0; border-bottom: 1px solid var(--line); padding: 1.25rem var(--gutter); }
  .quick__item:nth-child(odd) { border-right: 1px solid var(--line); }
  .quick__item:last-child { border-right: 0; border-bottom: 0; }
}

@media (max-width: 420px) {
  .quick__in { grid-template-columns: 1fr; }
  .quick__item, .quick__item:nth-child(odd) { border-right: 0; padding-block: 1rem; }
}

/* Split */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.split__img { position: relative; }
.split__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.split__img::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line-2); pointer-events: none; }
.split__text .lead { color: var(--text); font-size: clamp(1.25rem, 1.9vw, 1.55rem); margin-bottom: 2rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split__img img { aspect-ratio: 4 / 3; } }

/* Services grid */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service {
  position: relative; display: block; padding: 2.5rem 2rem 2.75rem; color: var(--text); text-decoration: none;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s;
}
.service::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--accent); transition: width .45s var(--ease); }
.service:hover { background: var(--surface); color: var(--text); }
.service:hover::before { width: 100%; }
.service__num { position: absolute; top: 2.4rem; right: 2rem; font: italic 400 1.25rem/1 var(--serif); color: var(--dim); }
.service h3 { margin: 1.5rem 0 .6rem; }
.service p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.service__icon { display: inline-grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; border: 1px solid var(--line-2); color: var(--accent); flex: none; }
.service__icon .icon { width: 1.55rem; height: 1.55rem; }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }

/* Project cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.2vw, 1.75rem); }
.card { position: relative; display: flex; flex-direction: column; color: var(--text); text-decoration: none; }
.card__img { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.card__img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.card__img img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; transition: transform .8s var(--ease), filter .5s; filter: saturate(.92); }
.card:hover .card__img img { transform: scale(1.05); filter: saturate(1.05); }
.card__body { padding: 1.25rem .25rem .5rem; }
.card__cat { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.card__title { font-size: 1.65rem; margin: 0 0 .4rem; transition: color .2s; }
.card:hover .card__title { color: var(--accent-2); }
.card__text { margin: 0; color: var(--muted); font-size: 1.02rem; }
.card[hidden] { display: none; }
/* bento layout on the home page: first project is large */
.cards--home .card:first-child { grid-column: span 2; grid-row: span 2; }
.cards--home .card:first-child .card__img { flex: 1; }
.cards--home .card:first-child .card__img img { height: 100%; aspect-ratio: auto; min-height: 420px; }
.cards--home .card:first-child .card__title { font-size: clamp(2rem, 3vw, 2.8rem); }
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards--home .card:first-child { grid-row: auto; }
  .cards--home .card:first-child .card__img img { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .cards--home .card:first-child { grid-column: auto; } }

/* Quote band — wood texture */
.quote {
  padding: clamp(5rem, 12vw, 9rem) 0; text-align: center;
  background: radial-gradient(ellipse at center, rgb(14 13 11 / .35), rgb(14 13 11 / .9) 78%), var(--img) center / cover no-repeat, var(--bg);
}
.quote blockquote { margin: 0 auto; max-width: 22em; font: italic 400 clamp(1.8rem, 3.8vw, 3rem)/1.25 var(--serif); color: #fff; text-shadow: 0 2px 30px rgb(0 0 0 / .5); }
.quote blockquote::before { content: "“"; display: block; font-size: 1.8em; line-height: .6; color: var(--accent); margin-bottom: .3em; }

/* CTA */
.cta { padding: clamp(4rem, 9vw, 7rem) 0; background: var(--bg); }
.cta__in {
  display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap;
  padding: clamp(2.25rem, 5vw, 4rem); border-radius: calc(var(--radius) * 1.5);
  background: radial-gradient(120% 140% at 100% 0%, rgb(201 154 99 / .22), transparent 55%), var(--surface);
  border: 1px solid var(--line);
}
.cta h2 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); max-width: 16ch; }
.cta p { font-size: 1.2rem; margin: 0; max-width: 30em; color: var(--muted); }
.cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.cta__phone { display: inline-flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; font: 400 clamp(1.8rem, 3.2vw, 2.5rem)/1 var(--serif); }
.cta__phone .icon { color: var(--accent); }
.cta__phone:hover { color: var(--accent-2); }
@media (max-width: 560px) { .cta__in { margin: 0 calc(var(--gutter) * -0.25); } }

/* Page head */
.page-head { position: relative; isolation: isolate; padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 80% at 15% 0%, rgb(201 154 99 / .12), transparent 70%);
}
.page-head h1 { max-width: 16ch; }
.page-head--center { text-align: center; min-height: 60vh; display: grid; align-content: center; }
.page-head--center h1, .page-head--center .lead { margin-left: auto; margin-right: auto; }
.page-head--center .btn { margin: .25rem; }
.page-head--project { padding-bottom: 2.5rem; }
.page-head--project h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); max-width: 18ch; }
.back { display: flex; width: fit-content; align-items: center; gap: .4rem; margin-bottom: 2rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.back:hover { color: var(--text); }

/* Prose */
.prose { max-width: 40em; color: #d8d1c6; }
.prose h2 { font-size: clamp(2rem, 3.4vw, 2.6rem); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.4em; }
.prose li { margin-bottom: .55em; padding-left: .3em; }
.prose li::marker { color: var(--accent); }
.prose strong { color: #fff; font-weight: 600; }

/* About */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.about__side { position: sticky; top: 7rem; }
.about__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; border-top: 1px solid var(--line); }
.facts li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.facts strong { font: italic 400 1.6rem/1.15 var(--serif); color: var(--accent-2); }
.facts span { color: var(--muted); text-align: right; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about__side { position: static; } }

/* Services page */
.toc { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.5rem; }
.toc a { display: inline-flex; align-items: center; gap: .55rem; padding: .65rem 1.1rem; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 500; font-size: 1rem; transition: background .2s, border-color .2s; }
.toc a:hover { background: var(--surface); border-color: var(--accent); }
.toc .icon { color: var(--accent); }
.svc { position: relative; padding: clamp(4rem, 8vw, 6.5rem) 0; border-top: 1px solid var(--line); }
.svc.section--tint { border-bottom: 0; }
.svc .anchor { position: absolute; top: 0; }
.svc__in { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.svc__in--noimg { grid-template-columns: 1fr; }
.svc__text h2 { margin-top: 1.5rem; }
.svc__text .lead { color: var(--text); }
.svc__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.svc__related { font: 600 .82rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 3rem 0 1.25rem; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.thumb { text-decoration: none; color: var(--text); font-weight: 500; font-size: 1rem; }
.thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: .6rem; transition: opacity .25s; }
.thumb:hover img { opacity: .85; }
.thumb:hover { color: var(--accent-2); }
@media (max-width: 860px) { .svc__in { grid-template-columns: 1fr; } .thumbs { grid-template-columns: repeat(2, 1fr); } }

/* Gallery filters */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.5rem; }
.chip {
  min-height: 3rem; padding: .5rem 1.2rem; border: 1px solid var(--line-2); background: transparent; color: var(--muted);
  border-radius: 999px; font: 500 1rem var(--sans); cursor: pointer; transition: border-color .2s, background .2s, color .2s;
}
.chip:hover { border-color: var(--text); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }

/* Project detail */
.project { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.project__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.project__photo { display: block; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface); cursor: zoom-in; }
.project__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s var(--ease); }
.project__photo:hover img { transform: scale(1.05); }
.project__photo--main { grid-column: 1 / -1; border-radius: var(--radius); }
.project__photo--main img { aspect-ratio: auto; max-height: 78vh; object-fit: contain; background: #f4f2ee; }
.project__info { position: sticky; top: 7rem; }
.specs { margin: 2rem 0 2.25rem; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--dim); font-weight: 500; font-size: .95rem; letter-spacing: .04em; }
.specs dd { margin: 0; color: var(--text); }
@media (max-width: 900px) { .project { grid-template-columns: 1fr; } .project__info { position: static; } }
@media (max-width: 480px) { .project__gallery { grid-template-columns: repeat(2, 1fr); } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.contact__info { display: grid; border-top: 1px solid var(--line); }
.contact__big { display: flex; align-items: center; gap: 1.1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font: 400 1.4rem/1.25 var(--serif); overflow-wrap: anywhere; transition: color .2s, padding .3s var(--ease); }
.contact__big:hover { color: var(--accent-2); padding-left: .5rem; }
.contact__big small { display: block; font: 600 .78rem/1.4 var(--sans); color: var(--dim); letter-spacing: .2em; text-transform: uppercase; margin-bottom: .25rem; }
.requisites { margin-top: 2.5rem; }
.requisites h2 { font-size: 1.9rem; }
.requisites p { color: var(--muted); font-size: 1.05rem; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.3); padding: clamp(1.75rem, 4vw, 3rem); }
.form h2 { font-size: clamp(2rem, 3.4vw, 2.7rem); }
.form label { display: block; font-weight: 600; font-size: 1rem; color: var(--muted); margin-bottom: 1.25rem; }
.form input, .form textarea {
  display: block; width: 100%; margin-top: .5rem; padding: .95rem 1.1rem; font: 400 1.15rem/1.4 var(--sans); color: var(--text);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgb(201 154 99 / .15); }
.form__hint { font-size: .98rem; color: var(--dim); }
.hp { position: absolute; left: -9999px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--bg); color: var(--muted); padding: 4.5rem 0 2rem; font-size: 1.02rem; border-top: 1px solid var(--line); }
.footer a { color: var(--text); text-decoration: none; }
.footer a:hover { color: var(--accent-2); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer__brand { font: 400 2.1rem/1 var(--serif); color: #fff; margin-bottom: .9rem; }
.footer__nav { display: flex; flex-direction: column; gap: .4rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--dim); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox { padding: 0; border: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgb(8 7 6 / .97); color: #fff; }
.lightbox::backdrop { background: rgb(8 7 6 / .9); }
.lightbox__fig { margin: 0; height: 100%; display: grid; place-items: center; align-content: center; gap: 1rem; padding: 4rem 5.5rem; }
.lightbox__fig img { max-width: 100%; max-height: calc(100vh - 9rem); object-fit: contain; border-radius: 4px; }
.lightbox__fig figcaption { font-size: 1rem; color: var(--muted); text-align: center; letter-spacing: .04em; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border: 1px solid var(--line-2); border-radius: 50%; background: rgb(255 255 255 / .04); color: #fff; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.lightbox__btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.lightbox__btn .icon { width: 1.6rem; height: 1.6rem; }
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox__fig { padding: 4.5rem .5rem 6rem; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1.25rem; transform: none; }
  .lightbox__prev { left: calc(50% - 4.25rem); }
  .lightbox__next { right: calc(50% - 4.25rem); }
}

/* Scroll reveal (class added by JS, so content stays visible without JS) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

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