/* ════════════════════════════════════════
   LUMIYA TATTOO ATELIER — дополнения (28.09 – 08.10.2026)
   Подключается после atelier.css. Исходник atelier.css к правкам не прикладывался,
   поэтому новые стили лежат отдельным файлом — в atelier.css ничего не потерялось.
   Цвета — из брендбука Atelier: графит #2B2A28, орех #5F4833, шампань #EAD5AF,
   обводка #D8D3CA, фон до загрузки #EFECE5, radius 2px.
   ════════════════════════════════════════ */

/* ── 1. Анонс-полоса вверху: тёплый шампань, как свет подсветки, без фактуры дерева ── */
.atelier .ann-bar{
  background-color: #F0E4CE;              /* шампань из брендбука, смягчённая к фону страницы */
  background-image: none;
  border-bottom: 1px solid rgba(206, 163, 95, .55);   /* тонкая линия «света» */
}
.atelier .ann-bar .ann-link,
.atelier .ann-bar .ann-title,
.atelier .ann-bar .ann-close{ color: var(--walnut, #5F4833); }
.atelier .ann-bar .ann-subtitle{ color: #6B5A49; opacity: 1; }
.atelier .ann-bar :focus-visible{ outline-color: var(--walnut, #5F4833); }

/* ── 2. Подвал: размытое фото зала с затемнением ──
   Фото — /assets/atelier/photo/fon-podval.jpg (уже размыто, весит ~30 КБ).
   Затемнение 64% держит контраст текста шампанью не ниже 4,5:1 на любом кадре. */
.atelier .site-footer,
.atelier .photo-foot{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--graphite, #2B2A28);
  background-image: none;
  border-top-color: var(--graphite, #2B2A28);
}
.atelier .site-footer{ padding-top: 56px; }
.atelier .site-footer::before,
.atelier .photo-foot::before{
  content: "";
  position: absolute;
  inset: -40px;
  height: auto;
  background: url("/assets/atelier/photo/fon-podval.jpg") center / cover no-repeat;
  filter: blur(10px);
  z-index: -2;
}
.atelier .site-footer::after,
.atelier .photo-foot::after{
  content: "";
  position: absolute;
  inset: 0;
  height: auto;
  background: rgba(43, 42, 40, .64);
  z-index: -1;
}

/* ── 3. Старая карта-плашка (.map-frame) — осталась только на заглушке soon.html ── */
.atelier .map-card{
  margin: clamp(26px, 4vw, 40px) 0 clamp(30px, 4vw, 44px);
}
.atelier .map-frame{
  position: relative;
  width: 100%;
  height: clamp(300px, 32vw, 400px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #EFECE5;
  border: 1px solid #D8D3CA;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}
.atelier .map-frame-mark{ width: 64px; height: auto; margin-bottom: 4px; opacity: .2; pointer-events: none; }
.atelier .map-load,
.atelier .map-load-note{ position: relative; }
.atelier .map-load-note{ font-size: 12px; line-height: 16px; color: var(--deep, #4A4742); }
.atelier .map-frame iframe{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.atelier .map-frame.is-loaded{ cursor: auto; }
.atelier .map-frame.is-loaded > :not(iframe){ display: none; }
.atelier .map-links{ display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; margin: 16px 0 0; }

/* ── 4. Карта студии — тот же блок, что на lumiya.ru (.studio-block, js/script.js),
   в цветах Atelier: орех вместо винного ── */
.atelier .studio-map-pin{ stroke: var(--walnut, #5F4833); }
.atelier .studio-routes button{
  font: inherit;
  color: var(--deep, #4A4742);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--stone, #D8D3CA);
  padding: 0 0 2px;
  cursor: pointer;
  transition: color .3s, border-color .3s;
}
.atelier .studio-routes button:hover{ color: var(--graphite, #2B2A28); border-color: var(--taupe, #A59E94); }
.atelier #location .studio-block{ margin-top: clamp(4px, 1.4vw, 14px); }
.atelier #location .studio-address span{ display: inline-block; margin-top: 2px; }
.atelier #location .location-list{
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  margin-top: clamp(30px, 4.4vw, 44px);
  text-align: left;
}
.atelier #location .location-note{ margin-inline: auto; text-align: center; }

/* ── 5. «Расходники»: группы в сетке (/atelier/masters) ── */
.atelier .supplies-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 34px) clamp(24px, 4vw, 56px);
  margin-top: clamp(26px, 3.5vw, 40px);
}
.atelier .supplies-group{ border-top: 1px solid #D8D3CA; padding-top: 16px; }
.atelier .supplies-group .price-label{ margin: 0 0 8px; }
.atelier .supplies-items{ margin: 0; line-height: 1.7; }
@media (max-width: 1023px){
  .atelier .supplies-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px){
  .atelier .supplies-grid{ grid-template-columns: 1fr; }
  .atelier .map-frame{ height: 320px; }
}

/* ── 6. Фото-ряд из 2–3 вертикальных кадров (чистота) ──
   На телефоне ряд листается пальцем, следующий кадр выглядывает справа. */
.atelier .at-photos{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(28px, 4vw, 40px);
}
.atelier .at-photos--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
.atelier .at-photos figure{ margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.atelier .at-photos img{ width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── 7. Фото-мозаика (08.10): широкий кадр + вертикальный, следующий ряд — зеркально.
   Порядок в HTML: широкий, вертикальный, вертикальный, широкий.
   Телефон: широкий во всю ширину → два вертикальных рядом → широкий. ── */
.atelier .at-mosaic{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 14px);
  margin-top: clamp(28px, 4vw, 44px);
}
.atelier .at-mosaic .ph{ margin: 0; position: relative; }
.atelier .at-mosaic img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.atelier .at-mosaic .m-wide{ grid-column: span 2; aspect-ratio: 4 / 3; }
.atelier .at-mosaic .m-tall{ aspect-ratio: 3 / 4; }
@media (min-width: 900px){
  .atelier .at-mosaic{ grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .atelier .at-mosaic .m-wide{ grid-column: span 4; }
  .atelier .at-mosaic .m-tall{ grid-column: span 2; aspect-ratio: auto; }
  .atelier .at-mosaic .m-tall img{ position: absolute; inset: 0; }
}

/* ── 8. «Для мастеров» на /atelier: размытое фото стола мастера с тёплым затемнением ── */
.atelier #masters.on-wood{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #3B3029;
  background-image: none;
}
.atelier #masters.on-wood::before,
.atelier #masters.on-wood::after{
  content: "";
  position: absolute;
  width: auto;
  height: auto;
  border: 0;
  box-shadow: none;
  transform: none;
  opacity: 1;
}
.atelier #masters.on-wood::before{
  inset: -40px;
  background: url("/assets/atelier/photo/fon-dlya-masterov.jpg") center / cover no-repeat;
  filter: blur(8px);
  z-index: -2;
}
.atelier #masters.on-wood::after{
  inset: 0;
  background: rgba(52, 41, 32, .66);       /* тёплое затемнение — текст шампанью читается */
  z-index: -1;
}
.atelier #masters .masters-grid{ grid-template-columns: minmax(0, 1fr); max-width: 760px; }

/* ── 9. Галерея-лента (.at-gallery, /atelier/masters — расходники): пальцем и стрелками, по кругу ── */
.atelier .at-gallery-track{
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.atelier .at-gallery-track::-webkit-scrollbar{ display: none; }
.atelier .at-gallery-track > figure{
  flex: 0 0 calc((100% - 28px) / 3);
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  scroll-snap-align: start;
}
.atelier .at-gallery-track img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.atelier .at-gallery-nav{ display: flex; justify-content: center; gap: 24px; margin-top: 18px; }
.atelier .at-gallery.is-static .at-gallery-nav{ display: none; }
.atelier .at-gallery-btn{
  min-width: 44px;
  min-height: 44px;
  padding: 0 6px;
  background: none;
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--graphite, #2B2A28);
  cursor: pointer;
}
.atelier .at-gallery-btn:hover{ color: var(--walnut, #5F4833); }
.atelier .at-gallery-track:focus-visible{ outline: 2px solid var(--walnut, #5F4833); outline-offset: 2px; }

/* ── 10. Окно «Как добраться»: схема и шаги ── */
.atelier .at-route-map{
  max-width: 440px;
  margin: 0 auto 22px;
  border: 1px solid #D8D3CA;
  border-radius: 2px;
  overflow: hidden;
  background: #EFECE5;
}
.atelier .at-route-svg{ display: block; width: 100%; height: auto; }
.atelier .at-route-steps{ margin-bottom: 14px; }
.atelier .at-route-open{ margin-top: 20px; }
.atelier button.link-inline{
  padding: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* ── 11. Первый экран /atelier (08.10): горизонтальное фото зала.
   Телефон: логотип → фото во всю ширину → заголовок, текст и кнопки.
   Компьютер: текст слева, фото справа — крупнее текста, весь блок помещается в первый экран. ── */
.atelier .hero-title{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(27px, 3.4vw, 40px);
  line-height: 1.18;
  color: var(--graphite, #2B2A28);
  max-width: 15em;
}
.atelier .hero--wide .hero-line{ max-width: 34em; }
.atelier .hero--wide .hero-photo{
  aspect-ratio: 4 / 3;
  width: 100%;
  max-width: 680px;
  margin-top: 0;
}
.atelier .hero--wide .hero-photo img{ object-position: 50% 55%; }
@media (max-width: 899px){
  /* текстовый столбец «раскрывается», чтобы фото встало сразу после логотипа */
  .atelier .hero--wide .hero-main{ display: contents; }
  .atelier .hero--wide .hero-logo{ order: 1; }
  .atelier .hero--wide .hero-tag{ order: 2; margin-top: -10px; }
  .atelier .hero--wide .hero-photo{ order: 3; }
  .atelier .hero--wide .hero-title{ order: 4; }
  .atelier .hero--wide .hero-line{ order: 5; }
  .atelier .hero--wide .hero-actions{ order: 6; }
  .atelier .hero--wide .hero-note{ order: 7; }
  .atelier .hero--wide .hero-grid{ gap: 26px; }
}
@media (max-width: 700px){
  .atelier .hero--wide{ padding-top: 36px; }
  .atelier .hero--wide .hero-logo img{ width: min(290px, 100%); margin-inline: auto; }
}
@media (min-width: 900px){
  .atelier .hero--wide{
    min-height: 0;
    padding-block: clamp(48px, 7vh, 88px) clamp(64px, 9vh, 110px);
  }
  .atelier .hero--wide .wrap{ max-width: 1360px; }
  .atelier .hero--wide .hero-grid{
    grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
    gap: clamp(36px, 4.4vw, 72px);
  }
  .atelier .hero--wide .hero-logo img{ width: clamp(260px, 100%, 400px); }
  .atelier .hero--wide .hero-actions .btn{ padding-inline: 28px; }
  .atelier .hero--wide .hero-photo{ max-width: none; justify-self: stretch; }
}

/* ── 12. «Работы»: направления слева, лента работ справа ── */
.atelier .at-works{
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  margin-top: clamp(26px, 3.6vw, 40px);
}
.atelier .at-works .works-carousel{ margin-top: 0; width: 100%; max-width: 480px; }
.atelier .at-styles{ max-width: 620px; }
.atelier .at-styles .style-row{ padding-block: clamp(14px, 2vw, 18px); }
.atelier .at-styles .style-name{ font-size: clamp(22px, 2.6vw, 27px); line-height: 1.2; }
.atelier .at-styles .style-desc{ color: var(--deep, #4A4742); }
@media (min-width: 760px){
  .atelier .at-styles .style-row{ grid-template-columns: minmax(150px, 4fr) 7fr; }
}
@media (min-width: 900px){
  .atelier .at-works{ grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; }
  .atelier .at-works .works-carousel{ justify-self: end; }
}
.atelier .works-caption a{ border-bottom: 1px solid var(--stone, #D8D3CA); }

/* ── 13. Цены как на lumiya.ru, но в цветах Atelier (орех вместо винного) ── */
.atelier .price-updated{ color: var(--walnut, #5F4833); }
.atelier .day-mini-price,
.atelier .tday-price{ color: var(--walnut, #5F4833); }
.atelier .tday-card::before{ background: var(--walnut, #5F4833); }
.atelier .day-mini-actions{ margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; }
.atelier .price-intro{ margin-top: clamp(14px, 2vw, 18px); max-width: 40em; font-size: 14.5px; line-height: 1.7; color: var(--deep, #4A4742); }
.atelier #prices .section-actions{ margin-top: clamp(28px, 4vw, 40px); }

@media (max-width: 1023px){
  .atelier .at-gallery-track > figure{ flex-basis: calc((100% - 14px) / 2); }
}
@media (max-width: 639px){
  .atelier .at-photos{
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .atelier .at-photos::-webkit-scrollbar{ display: none; }
  .atelier .at-photos figure{ flex: 0 0 74%; scroll-snap-align: start; }
  .atelier .at-gallery-track > figure{ flex-basis: 82%; }
}

/* ── 14. Шапка /atelier: на ноутбуках 900–1199 px прячем второстепенные пункты,
   чтобы меню не наезжало на монограмму («Записаться» всегда видна справа) ── */
@media (max-width: 1199px){
  .atelier .nav-links .nav-x{ display: none; }
}

/* ── 15. Первый экран /atelier/masters: на компьютере весь блок помещается в первый экран ── */
.atelier .nowrap{ white-space: nowrap; }
@media (min-width: 900px){
  .atelier .hero--masters{
    min-height: 0;
    padding-block: clamp(48px, 7vh, 88px) clamp(64px, 9vh, 110px);
  }
  .atelier .hero--masters h1.h-section{ font-size: clamp(38px, 4.2vw, 54px); }
}
@media (min-width: 900px){
  .atelier .hero--masters .hero-actions .btn{ padding-inline: 28px; }
}
