/* ═══════════════════════════════════════════
   Elina Decor Art — v2 (Swiss editorial grid)
   ═══════════════════════════════════════════ */

:root {
  --paper:  #f3f3f2;
  --ink:    #1a1a1e;
  --body:   #4d4942;
  --muted:  #8d8d8f;
  --line:   #d1d1d2;
  --soft:   #e7e6e4;
  --pale:   #c1c2bd;
  --gold:   #9a682c;
  --white:  #ffffff;

  --serif: 'Instrument Serif', Georgia, serif;
  --sans:  'Instrument Sans', system-ui, sans-serif;

  --shell: 1440px;
  --pad: clamp(20px, 4vw, 40px);
  --sec: clamp(64px, 9vw, 120px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.2;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
img { display: block; max-width: 100%; }
input, select, textarea, button { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--pad); }
.sec { padding-top: var(--sec); }
.muted { color: var(--muted); }
.dot { width: 6px; height: 6px; background: var(--gold); display: block; flex: 0 0 auto; }

/* ── Type ── */
.kicker {
  font-size: 13px; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; margin: 0 0 28px;
}
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4.6vw, 66px); line-height: 1.02;
  margin: 0; letter-spacing: -.01em;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--ink); padding: 16px 28px;
  font-size: 12px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; white-space: nowrap; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--out { background: transparent; color: var(--ink); }
.btn--out:hover { background: var(--ink); color: var(--paper); }
.btn--wide { width: 100%; justify-content: center; padding: 18px 28px; }

/* ══ HEADER ══ */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(243,243,242,.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.hdr__in {
  max-width: var(--shell); margin: 0 auto; padding: 0 var(--pad);
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.brand { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.brand__name { font-family: var(--serif); font-size: 24px; letter-spacing: .01em; }
.brand__city { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.nav {
  display: flex; align-items: center; gap: clamp(14px, 2vw, 28px);
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.hdr__cta { padding: 11px 20px; flex: 0 0 auto; }
.burger { display: none; flex-direction: column; gap: 6px; width: 26px; border: 0; background: none; padding: 4px 0; }
.burger span { display: block; height: 1.5px; background: var(--ink); transition: .3s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ══ HERO ══ */
.hero { padding-top: 168px; }
.hero__bar {
  display: flex; justify-content: space-between; align-items: baseline; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid var(--line);
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
}
.hero__badge { display: flex; align-items: center; gap: 10px; }
.hero__meta { color: var(--muted); text-align: right; }
.hero__h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(52px, 11vw, 168px); line-height: .92;
  margin: 48px 0 0; letter-spacing: -.015em;
}
.hero__h1 em { font-style: italic; padding-left: .12em; }
.hero__grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px);
  align-items: end; margin: 56px 0 64px;
}
.hero__lead { margin: 0; max-width: 46ch; font-size: 18px; line-height: 1.5; color: var(--body); }
.hero__acts { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.hero__strip {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1px;
  background: var(--ink); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.hero__strip img { width: 100%; height: 64vh; min-height: 420px; object-fit: cover; }

/* ══ ABOUT ══ */
.about__top { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__body { padding-top: 12px; }
.about__body p { margin: 0 0 20px; font-size: 18px; line-height: 1.55; color: var(--body); }
.about__body p:last-of-type { margin-bottom: 0; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); margin-top: 48px;
}
.stat { background: var(--paper); padding: 28px 24px; }
.stat__n { display: block; font-family: var(--serif); font-size: clamp(38px, 4vw, 52px); line-height: 1; }
.stat__c { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

.quote-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--ink); border: 1px solid var(--ink); margin-top: clamp(48px, 8vw, 96px);
}
.quote-block img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.quote-block__txt {
  background: var(--paper); margin: 0; padding: clamp(32px, 4vw, 56px) clamp(24px, 3.5vw, 48px);
  display: flex; flex-direction: column; justify-content: space-between;
}
.quote-block__txt .kicker { margin: 0; }
.quote-block blockquote {
  font-family: var(--serif); font-size: clamp(24px, 2.6vw, 40px);
  line-height: 1.18; margin: 32px 0;
}
.quote-block figcaption { font-size: 15px; color: var(--muted); }

/* ══ SECTION HEAD ══ */
.sec__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--ink);
}
.sec__head--plain { border-bottom: 0; }
.sec__note { margin: 0; max-width: 34ch; font-size: 16px; line-height: 1.5; color: var(--body); }

/* ══ CATEGORIES ══ */
.cats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border-bottom: 1px solid var(--line);
}
.cat { background: var(--paper); padding: 24px 24px 32px; display: block; transition: background .25s; }
.cat:hover { background: var(--white); color: var(--ink); }
.cat__media { display: block; overflow: hidden; background: var(--soft); }
.cat__media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  transition: transform 700ms var(--ease);
}
.cat:hover .cat__media img { transform: scale(1.04); }
.cat__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 22px; }
.cat__row h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); margin: 0; }
.cat__n { font-size: 13px; color: var(--muted); }
.cat p { margin: 10px 0 0; font-size: 15px; line-height: 1.45; color: var(--body); }

/* ══ SERVICES ══ */
.svc { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.svc__aside { position: sticky; top: 132px; }
.svc__aside .h2 { margin-bottom: 32px; }
.svc__note { margin: 0; max-width: 34ch; font-size: 16px; line-height: 1.55; color: var(--body); }
.svc__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.svc__list li {
  display: grid; grid-template-columns: 56px 1fr; gap: 24px;
  padding: 32px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.svc__n { font-size: 13px; color: var(--muted); padding-top: 6px; }
.svc__list h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; margin: 0; }
.svc__list p { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--body); max-width: 58ch; }

/* ══ PROCESS ══ */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line);
}
.step { background: var(--paper); padding: 32px 24px 40px; min-height: 240px; display: flex; flex-direction: column; }
.step__n { font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--pale); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 28px 0 12px; }
.step p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--body); }

/* ══ PROJECTS ══ */
.prj { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 4vw, 64px); align-items: start; padding-top: 40px; }
.prj__preview { position: sticky; top: 132px; }
.prj__frame { border: 1px solid var(--ink); background: var(--soft); overflow: hidden; }
.prj__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: opacity .35s var(--ease); }
.prj__frame img.is-fading { opacity: 0; }
.prj__cap {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 14px;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.prj__item {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 24px; align-items: baseline;
  padding: 30px 0; border-bottom: 1px solid var(--line); cursor: pointer;
  transition: background .25s;
}
.prj__item:hover, .prj__item.is-active { background: var(--white); }
.prj__n { font-size: 13px; color: var(--muted); }
.prj__item h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 38px); line-height: 1.08; margin: 0; }
.prj__item p { margin: 8px 0 0; font-size: 15px; line-height: 1.45; color: var(--body); }
.prj__tag {
  display: flex; align-items: center; gap: 8px; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.prj__tag .dot { width: 5px; height: 5px; }

/* ══ REVIEWS ══ */
.rail__ctrl { display: flex; gap: 1px; background: var(--ink); border: 1px solid var(--ink); flex: 0 0 auto; }
.rail__ctrl button {
  background: var(--paper); border: 0; width: 52px; height: 52px; cursor: pointer; font-size: 16px;
  transition: background .2s, color .2s;
}
.rail__ctrl button:hover { background: var(--ink); color: var(--paper); }
.rail {
  display: flex; gap: 1px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--pad) 8px; background: var(--paper); margin-top: 40px;
  scrollbar-width: thin;
}
.rail::-webkit-scrollbar { height: 1px; background: var(--line); }
.rail::-webkit-scrollbar-thumb { background: var(--ink); }
.rev {
  flex: 0 0 min(420px, 82vw); scroll-snap-align: start; background: var(--white);
  padding: 40px 32px; margin: 0; display: flex; flex-direction: column;
  justify-content: space-between; min-height: 340px; border-right: 1px solid var(--line);
}
.rev__stars { font-size: 13px; letter-spacing: .3em; color: var(--gold); }
.rev blockquote { margin: 28px 0; font-family: var(--serif); font-size: 24px; line-height: 1.3; }
.rev figcaption { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding-top: 20px; }
.rev__ini {
  width: 40px; height: 40px; border: 1px solid var(--ink); flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 18px;
}
.rev figcaption b { display: block; font-size: 15px; font-weight: 500; }
.rev figcaption i { display: block; font-size: 14px; color: var(--muted); margin-top: 3px; font-style: normal; }

/* ══ CTA ══ */
.cta {
  background: var(--soft); padding: clamp(40px, 6vw, 88px) clamp(24px, 4.5vw, 64px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center;
}
.cta .h2 { font-size: clamp(30px, 4.2vw, 60px); line-height: 1.04; }
.cta p { margin: 0 0 28px; font-size: 18px; line-height: 1.5; color: var(--body); }
.cta__acts { display: flex; gap: 12px; flex-wrap: wrap; }

/* ══ CONTACT ══ */
.ct--center { max-width: 760px; margin-inline: auto; text-align: center; }
.ct--center .h2 { margin-bottom: 48px; }
.ct__dl { margin: 0; border-top: 1px solid var(--ink); text-align: left; }
.ct__dl > div {
  display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.ct__dl dt { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ct__dl dd { margin: 0; font-size: 16px; line-height: 1.5; }

/* ══ FOOTER ══ */
.ftr { background: var(--ink); color: var(--paper); margin-top: var(--sec); padding: clamp(48px, 7vw, 80px) 0 32px; }
.ftr a { color: var(--paper); }
.ftr a:hover { color: var(--gold); }
.ftr__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--body);
}
.ftr__logo { font-family: var(--serif); font-size: clamp(30px, 4vw, 56px); line-height: 1.05; }
.ftr__top p { margin: 20px 0 0; font-size: 16px; line-height: 1.5; color: var(--pale); max-width: 34ch; }
.ftr__k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.ftr__nav { display: grid; gap: 10px; font-size: 16px; }
.ftr__nav span { color: var(--pale); }
.ftr__bot {
  display: flex; justify-content: space-between; gap: 24px;
  padding-top: 28px; font-size: 13px; color: var(--muted);
}

/* ══ RESPONSIVE ══ */
@media (max-width: 1100px) {
  .hero__strip { grid-template-columns: 1fr 1fr; }
  .hero__strip img:last-child { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .ftr__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav {
    display: none; position: fixed; inset: 72px 0 auto 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px var(--pad) 24px; border-bottom: 1px solid var(--line);
    max-height: calc(100svh - 72px); overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 16px 0; width: 100%; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav a:last-child { border-bottom: 0; }
  .burger { display: flex; }
  .hdr__cta { display: none; }

  .hero { padding-top: 120px; }
  .hero__grid { grid-template-columns: 1fr; align-items: start; }
  .hero__acts { justify-content: flex-start; }
  .hero__bar { flex-direction: column; gap: 12px; align-items: flex-start; }
  .hero__meta { text-align: left; }

  .about__top { grid-template-columns: 1fr; }
  .quote-block { grid-template-columns: 1fr; }
  .quote-block img { min-height: 320px; }

  .cats { grid-template-columns: repeat(2, 1fr); }
  .svc { grid-template-columns: 1fr; }
  .svc__aside { position: static; }

  .prj { grid-template-columns: 1fr; }
  .prj__preview { display: none; }
  .prj__item { grid-template-columns: 40px 1fr; }
  .prj__tag { grid-column: 2; margin-top: 10px; }

  .cta { grid-template-columns: 1fr; }

  .sec__head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .rail__ctrl { align-self: flex-end; }
}

@media (max-width: 620px) {
  .cats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .ftr__top { grid-template-columns: 1fr; }
  .ct__dl > div { grid-template-columns: 1fr; gap: 6px; }
  .hero__strip { grid-template-columns: 1fr; }
  .hero__strip img { height: 52vh; min-height: 300px; }
  .hero__strip img:last-child { display: none; }
  .ftr__bot { flex-direction: column; gap: 8px; }
}
