/* ============================================================
   Шёлк — студия флористики, Казань
   Дизайн-система: тёплый off-white, пыльно-розовый, шалфейно-зелёный.
   Display — Georgia/serif, текст — system humanist sans.
   ============================================================ */

:root {
  /* палитра */
  --paper:        #f7f1ea;   /* тёплый off-white фон */
  --paper-deep:   #efe5d9;   /* секции потемнее */
  --ink:          #2f2a26;   /* основной текст */
  --ink-soft:     #6a5f56;   /* приглушённый текст */
  --rose:         #c98a8a;   /* пыльно-розовый акцент */
  --rose-deep:    #a85f63;   /* насыщённый розовый */
  --sage:         #7c8a6e;   /* шалфейно-зелёный */
  --sage-deep:    #59634c;
  --line:         #ddcfc1;   /* линии-разделители */
  --shadow:       rgba(74, 52, 44, 0.14);

  /* типографика */
  --display: Georgia, "Times New Roman", "Iowan Old Style", "Apple Garamond", serif;
  --body: "Segoe UI", "Helvetica Neue", system-ui, -apple-system, "Trebuchet MS", sans-serif;

  /* ритм */
  --gut: clamp(1.1rem, 4vw, 2.6rem);
  --band: clamp(3.4rem, 9vw, 7rem);
  --radius: 4px;
  --bar-h: 72px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(120% 80% at 85% -10%, rgba(201,138,138,.16), transparent 60%),
    radial-gradient(90% 70% at -10% 0%, rgba(124,138,110,.12), transparent 55%);
  line-height: 1.65;
  font-size: clamp(1rem, 0.5vw + 0.92rem, 1.08rem);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 1rem; }
a { color: inherit; }

.overline {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--rose-deep);
  margin: 0 0 1.1rem;
}

/* ---------- скип-ссылка ---------- */
.jump-to-body {
  position: absolute;
  left: 1rem; top: -120%;
  background: var(--ink);
  color: var(--paper);
  padding: .7rem 1.2rem;
  border-radius: var(--radius);
  z-index: 200;
  transition: top .2s var(--ease);
}
.jump-to-body:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   ВЕРХНЯЯ ПАНЕЛЬ
   ============================================================ */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 241, 234, 0.72);
  backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.top-bar[data-pinned] {
  background: rgba(247, 241, 234, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 26px -22px var(--shadow);
}
.bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: var(--bar-h);
  padding: 0 var(--gut);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.mark {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1;
  margin-right: auto;
}
.mark-word {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.mark-note {
  font-size: .64rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: .28rem;
}
.nav-line ul {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0; padding: 0;
}
.nav-line a {
  text-decoration: none;
  font-size: .92rem;
  color: var(--ink-soft);
  position: relative;
  padding: .3rem 0;
  transition: color .2s var(--ease);
}
.nav-line a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--rose-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-line a:hover { color: var(--ink); }
.nav-line a:hover::after { transform: scaleX(1); }

.call-link {
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: .55rem 1.1rem;
  border-radius: 999px;
  transition: background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.call-link:hover { background: var(--ink); color: var(--paper); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none;
  cursor: pointer; padding: 0;
}
.burger span {
  display: block;
  height: 2px; width: 26px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* выдвижное меню */
.drawer {
  position: fixed;
  inset: var(--bar-h) 0 auto 0;
  z-index: 99;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 40px -30px var(--shadow);
  animation: dropIn .28s var(--ease);
}
.drawer[hidden] { display: none; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.drawer ul { list-style: none; margin: 0; padding: .6rem var(--gut) 1.4rem; }
.drawer li { border-bottom: 1px solid var(--line); }
.drawer li:last-child { border-bottom: none; }
.drawer a {
  display: block;
  padding: 1rem .2rem;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--ink);
}

/* ============================================================
   ОБЁРТКА СЕКЦИЙ
   ============================================================ */
section { padding-inline: var(--gut); }
.band-head { max-width: 1180px; margin: 0 auto var(--gut); }
.band-head h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); }

/* ---------- ОТКРЫВАЮЩИЙ ЭКРАН ---------- */
.opening {
  max-width: 1180px;
  margin: 0 auto;
  padding-block: clamp(2.4rem, 6vw, 4.6rem) var(--band);
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(1.6rem, 5vw, 4rem);
  align-items: center;
}
.opening h1 {
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  margin-bottom: 1.4rem;
}
.opening h1 em {
  font-style: italic;
  color: var(--rose-deep);
}
.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 30ch;
  margin-bottom: 2rem;
}
.opening-actions {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  margin-bottom: 2.6rem;
}
.opening-facts {
  display: flex;
  gap: clamp(1.4rem, 4vw, 2.8rem);
  margin: 0;
  flex-wrap: wrap;
}
.opening-facts div { display: flex; flex-direction: column; }
.opening-facts dt {
  font-family: var(--display);
  font-size: 1.9rem;
  color: var(--sage-deep);
}
.opening-facts dd {
  margin: 0;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
  max-width: 14ch;
}
.opening-photo {
  margin: 0;
  position: relative;
}
.opening-photo img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 40px 70px -42px var(--shadow);
}
.opening-photo::before {
  content: "";
  position: absolute;
  inset: -14px -14px 24px 24px;
  border: 1px solid var(--rose);
  border-radius: 3px;
  z-index: -1;
}
.opening-photo figcaption {
  font-size: .8rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: .9rem;
  text-align: right;
}

/* ---------- КНОПКИ ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body);
  font-weight: 600;
  font-size: .96rem;
  text-decoration: none;
  padding: .82rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-solid {
  background: var(--rose-deep);
  color: #fff7f3;
  box-shadow: 0 16px 30px -18px var(--rose-deep);
}
.btn-solid:hover { transform: translateY(-2px); background: #934f54; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-wide { width: 100%; }

/* ---------- ПОЛОСА-КЛЮЧЕВЫЕ-СЛОВА ---------- */
.strip {
  background: var(--sage-deep);
  color: var(--paper);
  padding-block: 1.1rem;
  overflow: hidden;
}
.strip-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem 2.2rem;
  margin: 0 auto;
  padding: 0;
  max-width: 1180px;
}
.strip-row li {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.35rem);
  display: flex;
  align-items: center;
}
.strip-row li::before {
  content: "❧";
  margin-right: 1.1rem;
  color: var(--rose);
  font-style: normal;
}

/* ---------- ИСТОРИЯ ---------- */
.story {
  max-width: 1180px;
  margin: 0 auto;
  padding-block: var(--band);
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(1.8rem, 5vw, 4.2rem);
  align-items: center;
}
.story-photo { margin: 0; }
.story-photo img {
  width: 100%;
  aspect-ratio: 3 / 3.4;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 36px 60px -44px var(--shadow);
}
.story-text h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 1.3rem; max-width: 18ch; }
.story-text p { color: var(--ink-soft); max-width: 52ch; }
.story-text blockquote {
  margin: 1.8rem 0 0;
  padding-left: 1.4rem;
  border-left: 2px solid var(--rose);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.4;
}
.story-text cite {
  display: block;
  margin-top: .8rem;
  font-family: var(--body);
  font-style: normal;
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--ink-soft);
}

/* ---------- УСЛУГИ ---------- */
.offer {
  background: var(--paper-deep);
  padding-block: var(--band);
}
.offer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.offer-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2rem 1.7rem 1.8rem;
  position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.offer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 44px -30px var(--shadow);
  border-color: var(--rose);
}
.offer-num {
  font-family: var(--display);
  font-size: 1rem;
  color: var(--rose-deep);
  letter-spacing: .1em;
}
.offer-card h3 { font-size: 1.45rem; margin: .7rem 0 .8rem; }
.offer-card p { color: var(--ink-soft); font-size: .95rem; }
.offer-card .from {
  margin-top: 1.1rem;
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--sage-deep);
}

/* ---------- ВИТРИНА (мозаика) ---------- */
.gallery { padding-block: var(--band); }
.gallery-mosaic {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
.tile {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 24px 44px -34px var(--shadow);
}
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.tile:hover img { transform: scale(1.06); }
.tile figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.1rem .9rem;
  color: #fff;
  font-size: .85rem;
  font-style: italic;
  background: linear-gradient(to top, rgba(47,42,38,.78), transparent);
}
.tile-tall { grid-row: span 2; }
.tile-wide { grid-column: span 2; }

/* ---------- ПРОЦЕСС ---------- */
.process {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--band);
}
.process .overline { color: var(--rose); }
.process .band-head h2 { color: var(--paper); }
.process-steps {
  list-style: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}
.process-steps li {
  padding-top: 1.4rem;
  border-top: 1px solid rgba(247,241,234,.24);
}
.step-tag {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rose);
}
.process-steps h3 {
  color: var(--paper);
  font-size: 1.5rem;
  margin: .6rem 0 .7rem;
}
.process-steps p {
  color: rgba(247,241,234,.78);
  font-size: .94rem;
  margin: 0;
}

/* ---------- ИНТЕРЬЕР / ПРИГЛАШЕНИЕ ---------- */
.interior-note {
  max-width: 1180px;
  margin: 0 auto;
  padding-block: var(--band);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: center;
}
.interior-note figure { margin: 0; }
.interior-note img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 36px 60px -44px var(--shadow);
}
.interior-text h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1.1rem; }
.interior-text p { color: var(--ink-soft); margin-bottom: 1.6rem; }

/* ---------- ОТЗЫВЫ ---------- */
.voices {
  background: var(--paper-deep);
  padding-block: var(--band);
}
.voices-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
}
.voice {
  margin: 0;
  background: var(--paper);
  border-radius: 3px;
  padding: 1.9rem 1.7rem;
  border-top: 3px solid var(--rose);
  box-shadow: 0 22px 40px -34px var(--shadow);
}
.voice blockquote {
  margin: 0 0 1.2rem;
  font-size: 1.02rem;
  line-height: 1.55;
}
.voice blockquote::before { content: "“"; font-family: var(--display); font-size: 2.6rem; color: var(--rose); line-height: 0; vertical-align: -0.4em; margin-right: .15em; }
.voice figcaption {
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---------- ЧАСТЫЕ ВОПРОСЫ ---------- */
.asked { padding-block: var(--band); }
.asked-list {
  max-width: 820px;
  margin: 0 auto;
}
.ask {
  border-bottom: 1px solid var(--line);
}
.ask summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: var(--ink);
  padding: 1.4rem 2.4rem 1.4rem 0;
  position: relative;
  transition: color .2s var(--ease);
}
.ask summary::-webkit-details-marker { display: none; }
.ask summary::after {
  content: "+";
  position: absolute;
  right: .2rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--body);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--rose-deep);
  transition: transform .3s var(--ease);
}
.ask[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.ask summary:hover { color: var(--rose-deep); }
.ask p {
  color: var(--ink-soft);
  font-size: .98rem;
  max-width: 64ch;
  padding-bottom: 1.4rem;
  margin: 0;
}

/* ---------- ЗАЯВКА ---------- */
.apply {
  max-width: 1180px;
  margin: 0 auto;
  padding-block: var(--band);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: start;
}
.apply-text h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 1.1rem; max-width: 16ch; }
.apply-text p { color: var(--ink-soft); margin-bottom: 1.8rem; max-width: 44ch; }
.apply-contacts { list-style: none; margin: 0; padding: 0; }
.apply-contacts li {
  display: flex;
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .96rem;
}
.apply-contacts span {
  flex: 0 0 5.5rem;
  text-transform: uppercase;
  font-size: .68rem;
  letter-spacing: .18em;
  color: var(--rose-deep);
  padding-top: .25rem;
}
.apply-contacts a { text-decoration: none; }
.apply-contacts a:hover { color: var(--rose-deep); }

.apply-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2rem 1.8rem;
  box-shadow: 0 30px 56px -42px var(--shadow);
}
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: .45rem;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .75rem .85rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--rose-deep);
  box-shadow: 0 0 0 3px rgba(168,95,99,.18);
}
.field input[aria-invalid="true"] { border-color: var(--rose-deep); background: #fbeeee; }
.err {
  display: none;
  color: var(--rose-deep);
  font-size: .78rem;
  margin-top: .4rem;
}
.err.show { display: block; }
.form-done {
  margin: 1rem 0 0;
  padding: .9rem 1rem;
  background: rgba(124,138,110,.16);
  border-left: 3px solid var(--sage-deep);
  color: var(--sage-deep);
  font-size: .92rem;
}

/* ---------- ПОДВАЛ ---------- */
.foot {
  background: var(--ink);
  color: rgba(247,241,234,.82);
  padding: clamp(2.6rem, 6vw, 4rem) var(--gut) 1.6rem;
}
.foot-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(247,241,234,.16);
}
.foot-mark .mark-word { color: var(--paper); font-size: 1.8rem; }
.foot-mark p { max-width: 34ch; margin-top: .8rem; font-size: .9rem; }
.foot-col h4 {
  color: var(--paper);
  font-family: var(--body);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-bottom: 1rem;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: .6rem; font-size: .92rem; }
.foot-col a { text-decoration: none; transition: color .2s var(--ease); }
.foot-col a:hover { color: var(--rose); }
.foot-base {
  max-width: 1180px;
  margin: 1.6rem auto 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  font-size: .8rem;
  color: rgba(247,241,234,.55);
}

/* ============================================================
   SCROLL-REVEAL
   ============================================================ */
[data-lift] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-lift].is-shown { opacity: 1; transform: none; }
.no-js [data-lift] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-lift] { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 920px) {
  .nav-line, .call-link { display: none; }
  .burger { display: flex; }
  .opening { grid-template-columns: 1fr; }
  .opening-photo { order: -1; }
  .opening-photo::before { inset: -10px -10px 16px 16px; }
  .story { grid-template-columns: 1fr; }
  .story-photo { max-width: 460px; }
  .interior-note { grid-template-columns: 1fr; }
  .apply { grid-template-columns: 1fr; }
  .gallery-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .tile-wide { grid-column: span 2; }
}

@media (max-width: 560px) {
  .gallery-mosaic { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .tile-tall, .tile-wide { grid-row: auto; grid-column: auto; }
  .foot-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .opening-facts { gap: 1.4rem 2rem; }
  .apply-contacts li { flex-direction: column; gap: .2rem; }
  .apply-contacts span { padding-top: 0; }
}
