/* ============ TOKENS ============ */
:root {
  --bg:        #F1ECE3;
  --surface:   #E8E1D4;
  --text:      #1A1815;
  --muted:     #6E6557;
  --line:      #D6CFC0;

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1280px;
  --gutter: 32px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ol, ul { list-style: none; }

/* ============ LAYOUT ============ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 120px 0;
}

.section--bordered {
  border-top: 1px solid var(--line);
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 64px;
}

.section__num {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.section__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section__cta {
  margin-top: 56px;
  text-align: center;
}

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 236, 227, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo--footer { font-size: 32px; margin-bottom: 16px; }

.nav {
  display: flex;
  gap: 36px;
}

.nav a {
  font-size: 14px;
  font-weight: 400;
  position: relative;
  padding: 4px 0;
  transition: opacity 0.3s var(--ease);
}

.nav a:hover { opacity: 0.55; }

/* ============ BUTTONS / LINKS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--text);
  border-radius: 0;
  transition: all 0.3s var(--ease);
}

.btn:hover {
  background: transparent;
  color: var(--text);
}

.btn--small {
  height: 40px;
  padding: 0 20px;
  font-size: 13px;
}

.link-arrow {
  display: inline-block;
  font-size: 15px;
  font-weight: 400;
  border-bottom: 1px solid var(--text);
  padding-bottom: 4px;
  transition: opacity 0.3s var(--ease);
}

.link-arrow:hover { opacity: 0.6; }

/* ============ HERO ============ */
.hero {
  padding: 140px 0 160px;
  border-bottom: 1px solid var(--line);
}

.hero__eyebrow {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(64px, 11vw, 180px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
}

.hero__subtitle {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 56px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* ============ SERVICES ============ */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service {
  background: var(--bg);
  padding: 48px 40px;
  transition: background 0.3s var(--ease);
}

.service:hover { background: var(--surface); }

.service h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.service p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 420px;
}

/* ============ WORKS ============ */
.works {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.work {
  display: block;
  transition: transform 0.4s var(--ease);
}

.work:hover { transform: translateY(-4px); }

.work__image {
  aspect-ratio: 4/5;
  background: var(--surface);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

/* Заглушки-градиенты вместо фото */
.work__image--1 { background: linear-gradient(135deg, #c4b8a4 0%, #8a7d68 100%); }
.work__image--2 { background: linear-gradient(135deg, #a89e8c 0%, #5e5444 100%); }
.work__image--3 { background: linear-gradient(135deg, #d4c4ad 0%, #7a6f5c 100%); }
.work__image--4 { background: linear-gradient(135deg, #b3a692 0%, #4a4030 100%); }

.work__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
}

.work__client { font-weight: 500; }
.work__type { color: var(--muted); }

/* ============ MODELS ============ */
.models {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.model { display: block; transition: opacity 0.3s var(--ease); }
.model:hover { opacity: 0.85; }

.model__image {
  aspect-ratio: 3/4;
  background-color: var(--surface);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  margin-bottom: 12px;
}

.model__info {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.model__name { font-weight: 500; }
.model__details { color: var(--muted); }

/* ============ PROCESS ============ */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}

.process__step {
  border-top: 1px solid var(--text);
  padding-top: 24px;
}

.process__num {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: block;
  margin-bottom: 16px;
}

.process__step h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.process__step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* ============ CLIENTS ============ */
.clients {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.client {
  background: var(--bg);
  padding: 48px 24px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--muted);
}

/* ============ CONTACT ============ */
.section--contact { background: var(--surface); }

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__lead {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 48px;
}

.contact__list li {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.contact__list li:last-child { border-bottom: 1px solid var(--line); }
.contact__list span:first-child { color: var(--muted); }
.contact__list a { border-bottom: 1px solid currentColor; padding-bottom: 2px; }

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact__form span {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.contact__form input,
.contact__form textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--text);
  padding: 12px 0;
  border-radius: 0;
  resize: none;
  outline: none;
  transition: border-color 0.2s var(--ease);
}

.contact__form input:focus,
.contact__form textarea:focus { border-bottom-width: 2px; }

.contact__form .btn { align-self: flex-start; margin-top: 16px; }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.footer__col p { font-size: 14px; color: var(--muted); }
.footer__col:last-child { text-align: right; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .hero { padding: 80px 0 100px; }

  .nav { display: none; }
  .header__inner { height: 64px; }

  .services { grid-template-columns: 1fr; }
  .works { grid-template-columns: 1fr; }
  .models { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; gap: 56px; }

  .section__head { flex-direction: column; gap: 12px; margin-bottom: 48px; }
  .footer__inner { flex-direction: column; }
  .footer__col:last-child { text-align: left; }
}


/* ============ HEADER ACTIONS / FAV ============ */
.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__fav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  line-height: 1;
  padding: 8px 4px;
  position: relative;
  transition: opacity 0.25s var(--ease);
}
.header__fav:hover { opacity: 0.6; }
.header__fav.active { color: var(--text); }
.header__fav span {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============ CATALOG HEAD ============ */
.catalog-head {
  padding: 80px 0 40px;
  border-bottom: 1px solid var(--line);
}
.catalog-head__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 16px 0 16px;
}
.catalog-head__subtitle {
  font-size: 16px;
  color: var(--muted);
}

/* ============ CATALOG ============ */
.catalog { padding: 56px 0 120px; }

.catalog__layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}

/* ----- Filters ----- */
.filters__sticky {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.filters__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--text);
}
.filters__head h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
}
.filters__reset {
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.filters__reset:hover { color: var(--text); }

.filter-group h3 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  cursor: pointer;
  display: inline-flex;
}
.chip input { display: none; }
.chip span {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.chip:hover span { border-color: var(--muted); }
.chip input:checked + span {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ----- Grid ----- */
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}

/* ----- Card ----- */
.card {
  display: flex;
  flex-direction: column;
}
.card__photo {
  position: relative;
  display: block;
  aspect-ratio: 3/4;
  background: var(--surface);
  background-size: cover;
  background-position: center top;
  margin-bottom: 16px;
  overflow: hidden;
  transition: opacity 0.3s var(--ease);
}
.card__photo:hover { opacity: 0.92; }

.card__fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(241, 236, 227, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
  transition: all 0.2s var(--ease);
}
.card__fav:hover { color: var(--text); transform: scale(1.05); }
.card__fav.is-active {
  background: var(--text);
  color: var(--bg);
}

.card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.card__name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.card__code {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

.card__specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  margin-bottom: 18px;
}
.card__specs > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}
.card__specs dt {
  color: var(--muted);
  font-size: 12px;
}
.card__specs dd {
  font-weight: 500;
  letter-spacing: -0.005em;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card__cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid var(--text);
  padding-bottom: 3px;
  align-self: flex-start;
  transition: opacity 0.25s var(--ease);
}
.card__cta:hover { opacity: 0.65; }

.catalog__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  color: var(--muted);
  font-size: 16px;
}
.catalog__empty .link-arrow { margin-left: 8px; }

/* ============ MODEL PROFILE PAGE ============ */
.profile { padding: 0; }

.profile__layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: calc(100vh - 72px);
}

.profile__side {
  padding: 56px 48px 56px 32px;
  border-right: 1px solid var(--line);
  position: sticky;
  top: 72px;
  align-self: start;
  height: calc(100vh - 72px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.profile__back {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 56px;
  transition: color 0.2s var(--ease);
}
.profile__back:hover { color: var(--text); }

.profile__code {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
}

.profile__name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(48px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.profile__params {
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
}
.profile__param {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.profile__param:last-child { border-bottom: 1px solid var(--line); }
.profile__param dt {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.profile__param dd {
  font-weight: 500;
  font-size: 15px;
}

.profile__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}
.btn--full { width: 100%; }
.btn-ghost {
  height: 48px;
  background: transparent;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: all 0.25s var(--ease);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text); }
.btn-ghost.is-active { color: var(--text); border-color: var(--text); background: var(--surface); }

.profile__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
}
.profile__photo {
  display: block;
  aspect-ratio: 3/4;
  background: var(--surface);
  background-size: cover;
  background-position: center;
  transition: opacity 0.3s var(--ease);
}
.profile__photo:hover { opacity: 0.92; }

/* ============ RESPONSIVE: catalog & profile ============ */
@media (max-width: 1100px) {
  .catalog__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .catalog__layout { grid-template-columns: 1fr; gap: 40px; }
  .filters__sticky { position: static; }
  .catalog__grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .card__specs { grid-template-columns: 1fr; gap: 4px; }

  .profile__layout { grid-template-columns: 1fr; }
  .profile__side {
    position: static; height: auto;
    padding: 40px 24px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .profile__name { margin-bottom: 32px; }
  .profile__gallery { grid-template-columns: 1fr; }

  .header__actions { gap: 12px; }
  .header__fav { font-size: 18px; }
}

@media (max-width: 560px) {
  .catalog__grid { grid-template-columns: 1fr; }
}
