/* Локальные вариативные шрифты — без обращения к Google (latin + cyrillic) */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/portfolio/assets/fonts/PlayfairDisplay-500-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/portfolio/assets/fonts/PlayfairDisplay-500-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(/portfolio/assets/fonts/Raleway-300-600-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(/portfolio/assets/fonts/Raleway-300-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* LUNÉ — светлый editorial-стиль: серифный заголовок, кремовый фон, тонкие линии */

* {
  box-sizing: border-box;
}

:root {
  --cream: #f7f2ec;
  --paper: #fffdfb;
  --ink: #211b18;
  --ink-2: #6b5f57;
  --line: #e5dbd1;
  --accent: #a8674f;
  --accent-soft: #f0e2da;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Raleway,system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -.01em;
}

p {
  margin: 0;
}

.wrap {
  width: min(1180px, 90%);
  margin: 0 auto;
}

.eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.lead {
  color: var(--ink-2);
  max-width: 46ch;
}

/* шапка */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 242, 236, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.bar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  letter-spacing: .12em;
  text-decoration: none;
  line-height: 1;
}

.logo span {
  display: block;
  font-family: Raleway,sans-serif;
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 5px;
}

.menu {
  display: flex;
  gap: 28px;
}

.menu a {
  font-size: 14px;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--ink-2);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: .25s;
}

.menu a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* кнопки */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  letter-spacing: .04em;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: .25s;
}

.pill:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.pill.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.pill.ghost:hover {
  background: var(--accent-soft);
  color: var(--ink);
  border-color: var(--accent);
}

/* герой */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
  padding: 84px 0 72px;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 66px);
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero .lead {
  margin-top: 22px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.facts {
  display: flex;
  gap: 34px;
  margin: 44px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.facts div {
  min-width: 110px;
}

.facts dt {
  font-family: "Playfair Display", serif;
  font-size: 30px;
  line-height: 1;
}

.facts dd {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
}

.hero-photo {
  position: relative;
  margin: 0;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 260px 260px 18px 18px;
  filter: saturate(.95);
}

.hero-photo figcaption {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* бегущая строка */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 16px 0;
  margin-top: 40px;
}

.ticker-row {
  display: flex;
  gap: 28px;
  align-items: center;
  width: max-content;
  animation: slide 34s linear infinite;
}

.ticker-row span {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-style: italic;
  color: var(--ink);
}

.ticker-row i {
  color: var(--accent);
  font-style: normal;
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* секции */
.section {
  padding: 86px 0;
}

.alt {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.head {
  margin-bottom: 44px;
  max-width: 640px;
}

.head h2 {
  font-size: clamp(28px, 3.6vw, 44px);
}

/* прайс */
.price {
  list-style: none;
  margin: 0;
  padding: 0;
}

.price li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.price li:first-child {
  border-top: 1px solid var(--line);
}

.p-name {
  font-size: 20px;
  flex: 0 1 auto;
}

.p-name span {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 3px;
}

.p-dots {
  flex: 1;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-4px);
  min-width: 30px;
}

.p-cost {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  white-space: nowrap;
}

.note {
  margin-top: 26px;
  font-size: 14px;
  color: var(--ink-2);
}

/* галерея */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 18px;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--accent-soft);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .3, 1);
}

.gallery figure:hover img {
  transform: scale(1.06);
}

.g-tall {
  grid-row: span 2;
}

/* причины */
.reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.reasons li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.reasons li:last-child {
  border-bottom: 1px solid var(--line);
}

.num {
  font-family: "Playfair Display", serif;
  font-size: 34px;
  color: var(--accent);
  line-height: 1;
}

.reasons h3 {
  font-size: 23px;
  margin-bottom: 8px;
}

.reasons p {
  color: var(--ink-2);
  max-width: 62ch;
}

/* отзывы */
.quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

blockquote {
  position: relative;
  margin: 0;
  padding: 44px 32px 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}

blockquote::before {
  content: "“";
  position: absolute;
  top: 4px;
  left: 24px;
  font-family: "Playfair Display", serif;
  font-size: 78px;
  color: var(--accent-soft);
  line-height: 1;
}

blockquote p {
  position: relative;
  font-size: 17px;
}

cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* запись */
.book {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px;
  padding: 52px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.book h2 {
  font-size: clamp(26px, 3vw, 38px);
  margin-bottom: 18px;
}

.info {
  list-style: none;
  margin: 0;
  padding: 0;
  align-self: center;
}

.info li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.info li:first-child {
  border-top: 1px solid var(--line);
}

.info b {
  color: var(--ink-2);
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
  padding-top: 3px;
}

.info span {
  text-align: right;
}

.info a {
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

/* подвал */
.foot {
  border-top: 1px solid var(--line);
  padding: 26px 0 90px;
  font-size: 13px;
  letter-spacing: .06em;
}

.foot-in {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dim {
  color: var(--ink-2);
}

/* липкая панель на телефоне */
.sticky {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  gap: 10px;
  padding: 12px 5%;
  background: rgba(247, 242, 236, .95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}

.sticky .pill {
  flex: 1;
}

/* адаптив */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 48px 0 40px;
  }

  .hero-photo img {
    aspect-ratio: 3 / 3.4;
    border-radius: 180px 180px 18px 18px;
  }

  .menu {
    display: none;
  }

  .book {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 30px;
  }

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

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .section {
    padding: 58px 0;
  }

  .sticky {
    display: flex;
  }

  .bar .pill {
    display: none;
  }
}

@media (max-width: 620px) {
  .price li {
    flex-wrap: wrap;
  }

  .p-dots {
    display: none;
  }

  .p-cost {
    margin-left: auto;
  }

  .reasons li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .g-tall {
    grid-row: span 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-row {
    animation: none;
  }

  * {
    transition-duration: .001ms !important;
  }
}
