@font-face { font-family: "Lora"; src: url("fonts/lora-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/lora-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-var-cyr.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-var-lat.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #faf5ef;
  --ink: #2b2422;
  --accent: #1e4a45;
  --soft: #f1e8df;
  --line: rgba(43, 36, 34, .12);
  --muted: rgba(43, 36, 34, .64);
  --r: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 "Manrope", -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1200px, 100% - 40px); margin: 0 auto; }

/* шапка */
.top { position: sticky; top: 0; z-index: 10; background: rgba(250, 245, 239, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font: 400 28px/1 "Lora", serif; letter-spacing: .14em; color: var(--accent); }
.logo__sub { font-size: 12px; letter-spacing: .04em; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; background: var(--accent); color: #fff; font: 600 17px/1 "Manrope", sans-serif; padding: 18px 28px; border-radius: 999px; transition: transform .15s, background .15s; }
.btn:hover { background: #173b37; }
.btn:active { transform: scale(.98); }
.btn--small { padding: 12px 20px; font-size: 15px; }
.btn--wide { width: 100%; }

/* первый экран */
.hero { padding: 36px 0 72px; }
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { margin: 0 0 18px; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 0; font: 400 clamp(44px, 4.8vw, 66px)/1.02 "Lora", serif; letter-spacing: -.02em; }
h1 em { font-style: italic; color: var(--accent); }
.lead { margin: 18px 0 24px; font-size: 18px; color: var(--muted); max-width: 34em; }

.order { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; box-shadow: 0 18px 40px -28px rgba(43, 36, 34, .35); max-width: 600px; scroll-margin-top: 96px; }
.order__title { margin: 0 0 12px; font-weight: 700; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 500 14px/1 "Manrope", sans-serif; padding: 10px 13px; border-radius: 999px; cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--accent); }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.order__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.field--full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field input { font: 500 16px/1.2 "Manrope", sans-serif; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-height: 48px; width: 100%; }
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.order__note { margin: 10px 0 0; font-size: 14px; color: var(--muted); text-align: center; }

.hero__photos { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 620px; }
.ph { margin: 0; overflow: hidden; position: relative; background: var(--soft); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--main { grid-row: 1 / 3; border-radius: 999px 999px var(--r) var(--r); }
.ph--b { border-radius: var(--r); }
.ph--c { border-radius: var(--r) var(--r) var(--r) 120px; }
.ph--b img { object-position: 50% 30%; }
.ph--c img { object-position: 60% 30%; }
.ph figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(250, 245, 239, .94); padding: 9px 16px; border-radius: 999px; font: italic 400 17px/1 "Lora", serif; color: var(--ink); }
.hero__real { position: absolute; right: 0; bottom: -34px; margin: 0; font-size: 13px; color: var(--muted); }

/* композиции */
.kompo { padding: 72px 0 96px; background: var(--soft); scroll-margin-top: 40px; }
.kompo__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
h2 { margin: 0; font: 400 clamp(34px, 3.6vw, 48px)/1.08 "Lora", serif; letter-spacing: -.01em; }
.kompo__head p { margin: 0; max-width: 26em; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.card { background: var(--bg); border-radius: var(--r); padding: 10px 10px 16px; display: flex; flex-direction: column; }
.card img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; width: 100%; height: auto; }
.card h3 { margin: 14px 6px 4px; font: 400 21px/1.2 "Lora", serif; }
.card p { margin: 0 6px 14px; font-size: 14px; color: var(--muted); line-height: 1.4; flex: 1; }
.card__btn { margin: 0 6px; border: 1px solid var(--accent); background: transparent; color: var(--accent); font: 600 15px/1 "Manrope", sans-serif; padding: 12px; border-radius: 999px; cursor: pointer; transition: all .15s; }
.card__btn:hover { background: var(--accent); color: #fff; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 16px; font-size: 15px; max-width: min(460px, calc(100% - 32px)); text-align: center; transition: all .25s; z-index: 20; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero { padding: 28px 0 56px; }
  .hero__in { grid-template-columns: 1fr; gap: 36px; }
  .hero__photos { height: 520px; order: -1; }
  .hero__real { position: static; grid-column: 1 / 3; text-align: right; margin-top: -4px; }
  .order { max-width: none; }
  .kompo__head { flex-direction: column; align-items: start; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .top__in { height: 62px; gap: 16px; }
  .logo__name { font-size: 24px; }
  .nav { display: none; }
  .btn--small { margin-left: auto; }
  .hero__photos { height: 370px; gap: 10px; grid-template-columns: 1.3fr 1fr; }
  .ph figcaption { left: 10px; bottom: 10px; font-size: 15px; padding: 8px 12px; }
  .eyebrow { font-size: 12px; margin-bottom: 12px; }
  h1 { font-size: 40px; }
  .lead { font-size: 17px; margin: 16px 0 22px; }
  .order { padding: 18px; }
  .order__row { grid-template-columns: 1fr; }
  .kompo { padding: 52px 0 64px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { padding: 8px 8px 12px; }
  .card h3 { font-size: 18px; margin: 10px 4px 2px; }
  .card p { margin: 0 4px 10px; font-size: 13px; }
  .card__btn { margin: 0 4px; font-size: 14px; padding: 10px; }
  .card:last-child { grid-column: 1 / -1; }
  .card:last-child img { aspect-ratio: 4 / 3; object-position: 50% 35%; }
}
