/* ============ ITALIA STILE ============ */

:root {
  --ink:        #1a1815;
  --ink-soft:   #6f6961;
  --mute:       #a29a8f;
  --line:       #ddd6cc;
  --line-soft:  #ebe5db;
  --paper:      #f5f1ec;
  --white:      #ffffff;
  --accent:     #a8563c;
  --max:        1520px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }

/* мелкий разреженный текст — основной приём типографики */
.caps {
  font-size: 11px; font-weight: 400; letter-spacing: .22em;
  text-transform: uppercase;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 34px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font-size: 11.5px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: transparent; color: var(--ink); }
.btn-light { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-block { width: 100%; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper); border-bottom: 1px solid var(--line-soft);
}
.header-in {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 84px; gap: 20px;
}

.nav-left, .nav-right { display: flex; align-items: center; gap: 30px; }
.nav-right { justify-content: flex-end; }
.nav-left a, .nav-right a, .nav-right button {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-soft); transition: color .2s;
}
.nav-left a:hover, .nav-right a:hover, .nav-right button:hover { color: var(--ink); }
.nav-right .link-accent { color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px; }

.logo { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.logo-mark { width: 26px; height: 26px; }
.logo-mark svg { width: 100%; height: 100%; }
.logo-name {
  font-size: 22px; font-weight: 300; letter-spacing: .42em;
  text-transform: uppercase; line-height: 1; padding-left: .42em;
}
.logo-sub { font-size: 8.5px; letter-spacing: .3em; color: var(--mute); text-transform: uppercase; padding-left: .3em; }

.icon-btn { width: 20px; height: 20px; color: var(--ink-soft); }
.icon-btn svg { width: 100%; height: 100%; }

.burger { display: none; width: 22px; }
.burger i { display: block; height: 1px; background: var(--ink); margin: 5px 0; }

/* строка поиска — раскрывается */
.searchbar { display: none; border-top: 1px solid var(--line-soft); padding: 0 40px; }
.searchbar.open { display: block; }
.searchbar input {
  width: 100%; height: 62px; border: none; background: transparent; outline: none;
  font-size: 17px; font-weight: 300; letter-spacing: .02em; color: var(--ink);
}
.searchbar input::placeholder { color: var(--mute); }

.mobile-nav { display: none; border-top: 1px solid var(--line-soft); padding: 6px 24px 22px; }
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 14px 0; font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; border-bottom: 1px solid var(--line-soft);
}

/* ---------- Баннер ---------- */
.hero { position: relative; height: calc(100vh - 84px); min-height: 520px; max-height: 780px; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,15,12,.5) 0%, rgba(18,15,12,.12) 40%, transparent 70%);
}
.hero-content {
  position: absolute; left: 0; right: 0; bottom: 58px; z-index: 2; color: #fff;
}
.hero-content .caps { opacity: .8; margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(30px, 4.6vw, 58px); font-weight: 200; line-height: 1.06;
  letter-spacing: .01em; margin-bottom: 26px; max-width: 15ch;
}
.hero h1 em { font-style: italic; font-weight: 300; }

/* ---------- Плитки категорий ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.tile { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; background: var(--white); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.6,.2,1); }
.tile:hover img { transform: scale(1.045); }
.tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,15,12,.42) 0%, transparent 46%);
}
.tile-label { position: absolute; left: 30px; bottom: 28px; z-index: 2; color: #fff; }
.tile-label b { display: block; font-size: 21px; font-weight: 300; letter-spacing: .12em; text-transform: uppercase; }
.tile-label span { display: block; font-size: 10.5px; letter-spacing: .18em; opacity: .8; margin-top: 7px; text-transform: uppercase; }

/* ---------- Секции ---------- */
.section { padding: 92px 0; scroll-margin-top: 84px; }
.section-tight { padding: 58px 0; }
.section-head { margin-bottom: 38px; }
.section-head .caps { color: var(--mute); display: block; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 200; letter-spacing: .04em; }

/* ---------- Фильтры — текстом, без плашек ---------- */
.filters { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 42px; }
.chip {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute);
  padding-bottom: 6px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.chip:hover { color: var(--ink); }
.chip.active { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- Сетка товаров ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px 34px; }

.card { text-align: left; cursor: pointer; display: block; }
.card-img { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--white); margin-bottom: 16px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.6,.2,1); }
.card:hover .card-img img { transform: scale(1.04); }
.card-img .ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--white); color: #e0d9cd; font-size: 30px; font-weight: 300; letter-spacing: .3em;
}

.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  padding: 5px 9px; border: 1px solid rgba(26,24,21,.35); color: var(--ink); background: rgba(255,255,255,.72);
}

.dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.dots i { width: 4px; height: 4px; border-radius: 50%; background: rgba(26,24,21,.2); }
.dots i.on { background: rgba(26,24,21,.6); }

.card-title { font-size: 14.5px; font-weight: 400; line-height: 1.35; margin-bottom: 5px; }
.card-meta { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 9px; }
.price { font-size: 14.5px; font-weight: 400; letter-spacing: .04em; }
.price.ask { color: var(--ink-soft); }
.price-old { font-size: 13px; color: var(--mute); text-decoration: line-through; margin-left: 9px; }
.price-off { font-size: 13px; color: var(--accent); margin-left: 8px; }

.empty { grid-column: 1/-1; text-align: center; padding: 70px 20px; color: var(--mute); font-size: 14px; }

/* ---------- О материале ---------- */
.about-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 90px; align-items: center; }
.about-split h2 { font-size: clamp(24px, 2.8vw, 36px); font-weight: 200; letter-spacing: .03em; margin-bottom: 22px; line-height: 1.2; }
.about-split p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 16px; max-width: 46ch; }
.about-list { list-style: none; margin-top: 30px; border-top: 1px solid var(--line); }
.about-list li {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.about-list li span:first-child { color: var(--ink-soft); }
.about-photo { aspect-ratio: 4/5; overflow: hidden; background: var(--white); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Порядок заказа ---------- */
.order { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.order div { background: var(--paper); padding: 34px 30px 36px; }
.order .caps { color: var(--mute); display: block; margin-bottom: 14px; }
.order h4 { font-size: 17px; font-weight: 400; letter-spacing: .02em; margin-bottom: 8px; }
.order p { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; }
.cta img { width: 100%; height: 100%; min-height: 460px; object-fit: cover; }
.cta::after { content: ''; position: absolute; inset: 0; background: rgba(18,15,12,.42); }
.cta-inner {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; color: #fff; padding: 30px;
}
.cta-inner .caps { opacity: .8; margin-bottom: 16px; }
.cta-inner h2 { font-size: clamp(26px, 3.4vw, 42px); font-weight: 200; letter-spacing: .03em; margin-bottom: 28px; max-width: 18ch; }

/* ---------- Подвал ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 54px; }
.footer .logo { align-items: flex-start; }
.footer p.about { font-size: 13.5px; color: var(--ink-soft); margin-top: 20px; max-width: 34ch; }
.footer h5 { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin-bottom: 18px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { font-size: 13.5px; color: var(--ink-soft); transition: color .2s; }
.footer ul a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--line-soft); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: .1em; color: var(--mute); text-transform: uppercase;
}

/* ---------- Модальное окно ---------- */
.modal-bg {
  position: fixed; inset: 0; z-index: 100; background: rgba(18,15,12,.4);
  display: none; align-items: center; justify-content: center; padding: 32px;
}
.modal-bg.open { display: flex; }
.modal {
  background: var(--paper); max-width: 1080px; width: 100%;
  max-height: 92vh; overflow: auto; position: relative;
}
.modal-close { position: absolute; top: 20px; right: 20px; z-index: 5; width: 18px; height: 18px; color: var(--ink); }
.modal-close svg { width: 100%; height: 100%; }
.modal-grid { display: grid; grid-template-columns: 1.1fr 1fr; }

.modal-media { background: var(--white); }
.modal-media .main { aspect-ratio: 3/4; position: relative; overflow: hidden; }
.modal-media .main img { width: 100%; height: 100%; object-fit: cover; }
.modal-media .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #e0d9cd; font-size: 40px; font-weight: 300; letter-spacing: .3em; }
.thumbs { display: flex; gap: 2px; padding: 2px 0 0; flex-wrap: wrap; }
.thumbs img { width: 74px; height: 92px; object-fit: cover; cursor: pointer; opacity: .5; transition: opacity .25s; }
.thumbs img.active, .thumbs img:hover { opacity: 1; }

.modal-info { padding: 56px 54px 44px; display: flex; flex-direction: column; }
.modal-info .caps { color: var(--mute); margin-bottom: 14px; }
.modal-info h3 { font-size: 30px; font-weight: 200; letter-spacing: .03em; line-height: 1.15; margin-bottom: 8px; }
.modal-info .sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 22px; }
.modal-price { margin-bottom: 26px; font-size: 19px; }
.modal-price .price { font-size: 19px; }
.modal-desc { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 30px; max-width: 42ch; }
.spec-list { margin-bottom: 36px; border-top: 1px solid var(--line); }
.spec-row { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.spec-row span:first-child { color: var(--ink-soft); }
.modal-actions { margin-top: auto; }
.modal-note { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); text-align: center; margin-top: 14px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1240px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 46px 26px; }
  .about-split { gap: 54px; }
}

@media (max-width: 960px) {
  .wrap { padding: 0 24px; }
  .searchbar { padding: 0 24px; }
  .nav-left { display: none; }
  .burger { display: block; }
  .header-in { height: 68px; grid-template-columns: 1fr auto 1fr; }
  .nav-right .hide-sm { display: none; }
  .tiles { grid-template-columns: 1fr; gap: 2px; }
  .tile { aspect-ratio: 16/10; }
  .about-split { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { aspect-ratio: 16/11; }
  .order { grid-template-columns: 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-info { padding: 34px 26px 34px; }
  .modal-bg { padding: 0; align-items: flex-end; }
  .modal { max-height: 94vh; }
  .section { padding: 62px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 620px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 34px 14px; }
  .hero { height: 76vh; min-height: 430px; }
  .hero-content { bottom: 38px; }
  .logo-name { font-size: 16px; letter-spacing: .34em; }
  .logo-sub { font-size: 7.5px; }
  .card-title { font-size: 13px; }
  .price { font-size: 13px; }
  .filters { gap: 20px; margin-bottom: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .thumbs img { width: 58px; height: 72px; }
}

