/* ===========================================================
   Mari Polonska — mono editorial
   =========================================================== */

@font-face {
  font-family: 'Mono Brand';
  src: url('assets/mono.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ECEBE9;
  --bg-soft: #F8F7F3;
  --ink: #1A1A1A;
  --ink-inv: #ECEAE3;
  --rule: rgba(26, 26, 26, 0.16);
  --gutter: clamp(20px, 4.4vw, 64px);
  --maxw: 1440px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Mono Brand', 'IBM Plex Mono', monospace;
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; }

/* ---------- image placeholder ---------- */
.ph { position: relative; overflow: hidden; background: #DDD8CA; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- hover underline ---------- */
.ul { position: relative; }
.ul::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: currentColor; transition: width .25s ease;
}
.ul:hover::after { width: 100%; }

/* ===========================================================
   Type system
   =========================================================== */
.t-display {
  font-family: 'Arimo', Arial, Helvetica, sans-serif;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700; letter-spacing: .01em; line-height: 1.08;
  text-transform: uppercase; margin: 0;
}
.t-head {
  font-family: 'Arimo', Arial, Helvetica, sans-serif;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700; letter-spacing: .02em; line-height: 1.25;
  text-transform: uppercase; margin: 0;
}
.t-body {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 400; line-height: 1.3; text-transform: uppercase; margin: 0;
}
.t-label {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}

/* ===========================================================
   Top bar
   =========================================================== */
.topbar {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; padding: 28px var(--gutter); flex-wrap: wrap;
}
.brand { font-size: clamp(16px, 1.8vw, 24px); letter-spacing: .2em; font-weight: 600; text-transform: uppercase; }
.nav { display: flex; gap: clamp(16px, 2vw, 28px); align-items: center; flex-wrap: wrap; font-size: clamp(14px, 1.5vw, 22px); letter-spacing: .12em; }
.nav__lang { display: inline-flex; gap: 8px; padding-left: clamp(4px, 1vw, 10px); }
.nav__lang-item { opacity: .45; transition: opacity .2s ease; }
.nav__lang-item:hover { opacity: 1; }
.nav__lang-item.is-active { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ===========================================================
   Hero
   =========================================================== */
.hero { padding: 8px var(--gutter) 0; }
.hero__img { height: clamp(360px, 46vw, 660px); }
.hero__caption {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; padding: 26px 2px 0; flex-wrap: wrap;
}
.hero__role { max-width: 320px; text-align: right; line-height: 1.3; letter-spacing: .04em; margin: 0 0 8px; }

/* ===========================================================
   Intro statement
   =========================================================== */
.intro { padding: clamp(56px, 8vw, 96px) var(--gutter) clamp(40px, 5vw, 64px); }
.intro__text { max-width: 930px; font-size: clamp(24px, 3.4vw, 39px); line-height: 1.2; }

/* ===========================================================
   About
   =========================================================== */
.about { padding: clamp(24px, 4vw, 40px) var(--gutter) clamp(56px, 7vw, 80px); }
.about__top { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 56px); align-items: start; }
.about__portrait { aspect-ratio: 3/4; width: 100%; }
.about__text { padding-top: 8px; max-width: 450px; margin-left: auto; width: 100%; }
.about__hi { font-size: clamp(38px, 5vw, 52px); line-height: 1; margin-bottom: 40px; }
.about__hi-row { display: flex; justify-content: space-between; }
.about__hi-name { display: block; padding-left: 34%; }
.about__p { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.35; letter-spacing: .03em; margin-bottom: 22px; text-align: justify; }
.about__p:last-child { margin-bottom: 0; }
.about__p--justify { text-align-last: justify; }

.about__bottom { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 56px); align-items: end; margin-top: 48px; }
.about__handle { align-self: end; padding-bottom: 8px; letter-spacing: .04em; }
.about__wide { aspect-ratio: 16/10; width: 100%; }

/* ===========================================================
   Section head (shared)
   =========================================================== */
.sec-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 20px; margin-bottom: clamp(28px, 4vw, 44px);
}

/* ===========================================================
   Philosophy
   =========================================================== */
.philosophy { padding: clamp(24px, 4vw, 40px) var(--gutter) clamp(56px, 8vw, 90px); background: var(--bg-soft); }
.philosophy__img { width: 100%; height: clamp(600px, 110vw, 1592px); object-fit: cover; }

/* ===========================================================
   Services
   =========================================================== */
.services { padding: 20px var(--gutter) clamp(56px, 8vw, 90px); }
.svc-item { }
/* header row (button, no divider lines) */
.row {
  display: grid; grid-template-columns: 44px 1fr 220px 90px;
  gap: 20px; padding: 26px 0; align-items: baseline;
  width: 100%; font: inherit; color: inherit; background: none; border: 0;
  text-align: left; cursor: pointer; appearance: none; -webkit-appearance: none;
  transition: opacity .2s ease;
}
.row:hover { opacity: .62; }
.row:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.row__title { font-weight: 600; }
.row__title, .row__desc { text-align: left; }
.row__desc { margin-top: 6px; opacity: .7; display: none; }
.svc-item.is-open .row__desc { display: block; }
.row__meta { letter-spacing: .1em; }
.row__price { font-weight: 600; text-align: right; }
.row__more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  letter-spacing: .14em; opacity: .55; transition: opacity .2s ease;
}
.row:hover .row__more { opacity: 1; }
.row__chev { display: inline-block; transition: transform .35s ease; }
.svc-item.is-open .row__more { opacity: 1; }
.svc-item.is-open .row__chev { transform: rotate(180deg); }

/* ===========================================================
   Service accordion panel
   =========================================================== */
.svc-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .4s ease;
}
.svc-panel > .svc-panel__inner { overflow: hidden; min-height: 0; }
.svc-item.is-open .svc-panel { grid-template-rows: 1fr; }
.svc-panel__inner > :first-child { padding-top: 6px; }
.svc-panel__inner { padding-left: 64px; max-width: 760px; }

.svc__facts {
  display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 0 0 32px;
  padding-bottom: 24px;
}
.svc__facts dt { opacity: .55; margin-bottom: 5px; }
.svc__facts dd { margin: 0; font-weight: 600; font-size: clamp(18px, 1.9vw, 20px); }
.svc__block { margin-bottom: 30px; }
.svc__block h4 { margin: 0 0 14px; opacity: .6; }
.svc__block p { margin: 0 0 12px; font-size: clamp(18px, 1.9vw, 20px); line-height: 1.6; }
.svc__block p:last-child { margin-bottom: 0; }
.svc__block ul { margin: 0; padding: 0; list-style: none; }
.svc__block li { position: relative; padding-left: 22px; margin-bottom: 9px; font-size: clamp(18px, 1.9vw, 20px); line-height: 1.5; }
.svc__block ul li::before { content: "—"; position: absolute; left: 0; opacity: .5; }
.svc__note { font-style: italic; opacity: .7; }
.svc__steps {
  display: flex; flex-wrap: wrap; gap: 10px 8px; margin: 0 0 16px; padding: 0;
  list-style: none; counter-reset: step;
}
.svc__steps li {
  font-family: 'Arimo', sans-serif; text-transform: uppercase; letter-spacing: .04em;
  font-size: clamp(15px, 1.6vw, 17px); font-weight: 600;
}
.svc__steps li:not(:last-child)::after { content: " →"; opacity: .4; margin-left: 6px; }
.svc__cta { display: inline-block; margin-top: 8px; margin-bottom: 44px; letter-spacing: .12em; }

/* ===========================================================
   Guide
   =========================================================== */
.guide {
  padding: 20px var(--gutter) clamp(56px, 7vw, 80px);
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 56px); align-items: center;
}
.guide__img { aspect-ratio: 4/3; width: 100%; }
.guide__text { max-width: 560px; }
.guide__eyebrow { margin-bottom: 20px; opacity: .6; }
.guide__title { font-size: clamp(24px, 3vw, 32px); line-height: 1.12; margin-bottom: 22px; }
.guide__p { margin-bottom: 16px; }
.guide__p + .guide__p { margin-bottom: 32px; }
.guide__meta { display: flex; gap: clamp(24px, 4vw, 44px); align-items: flex-end; flex-wrap: wrap; }
.guide__meta-label { opacity: .55; }
.guide__meta-val { font-weight: 600; margin-top: 4px; }
.btn { background: var(--ink); color: var(--ink-inv); padding: 15px 26px; transition: opacity .2s ease; }
.btn:hover { opacity: .82; }
.guide__btn { margin-left: auto; }

/* ===========================================================
   For brands
   =========================================================== */
.brands { padding: 20px var(--gutter) 60px; }
.brands__img { height: clamp(420px, 50vw, 720px); margin-bottom: clamp(40px, 5vw, 64px); }
.brands__text { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.brands__title { align-self: start; }
.brands__body { max-width: 520px; }
.brands__body p + p { margin-top: 28px; }

/* ===========================================================
   Contact
   =========================================================== */
.contact { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 8vw, 90px) var(--gutter) 56px; }
.contact__links { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.contact__links a { font-weight: 500; }
.contact__copy { margin-top: 40px; opacity: .55; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 900px) {
  .about__top,
  .about__bottom,
  .guide,
  .brands__text { grid-template-columns: 1fr; }

  .about__text { max-width: none; }
  .about__handle { padding-bottom: 20px; }
  .guide__text { max-width: none; }
  .guide__btn { margin-left: 0; }

  .row { grid-template-columns: 40px 1fr auto; gap: 12px 16px; }
  .row__meta { grid-column: 2 / 4; margin-top: 4px; letter-spacing: .08em; opacity: .7; }
  .row__price { grid-row: 1; grid-column: 3; }
  .svc-panel__inner { padding-left: 0; }
}

@media (max-width: 560px) {
  .topbar { padding-top: 20px; padding-bottom: 8px; }
  .nav { gap: 14px; }
  .hero__caption { align-items: flex-start; }
  .hero__role { text-align: left; }
  .about__hi-name { padding-left: 0; }
  .contact__links { flex-direction: column; align-items: flex-start; gap: 16px; }
}
