:root {
  --bg: #090909;
  --line: #313132;
  --faint: #212122;
  --muted: #aaa9a8;
  --field-bg: #101011;
  --focus-edge: #a89472;
  --mast: #090909;
  --panel: #151516;
  --accent: #e6ba78;
  --btn: #e6ba78;
  --cover: #090909;
  --shelf: #0e0e0f;
  --measure: 1440px;
}
:root[data-theme="light"] {
  --bg: #fffefa;
  --mast: #fffefa;
  --panel: #f4f2ee;
  --accent: #ab2c25;
  --btn: #b43128;
  --cover: #f7f5f1;
  --shelf: #f6f4f0;
  --field-bg: #fffefa;
  --focus-edge: #98655d;
}
.top {
  min-height: 74px;
  gap: clamp(22px, 3.8vw, 72px);
}
.mast-search {
  display: flex;
  align-items: center;
  width: clamp(145px, 13vw, 224px);
  background: var(--panel);
  border-radius: 7px;
}
.mast-search button {
  padding: 9px 5px 9px 11px;
}
.mast-search .icon {
  width: 17px;
  height: 17px;
}
.menu-search { display: none; }
@media (max-width: 760px) {
  .mobile-menu .drop {
    width: min(300px, calc(100vw - 32px));
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
  }
  .menu-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    margin-bottom: 5px;
    background: var(--field-bg);
  }
  .menu-search:focus-within { border-color: var(--focus-edge); }
  .menu-search > input[type="search"] {
    min-width: 0;
    flex: 1;
    height: 42px;
    font-size: 16px;
    padding: 6px 10px;
    border: 0;
    background: transparent;
  }
  .menu-search > button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
  }
}
.mast-search input[type="search"] {
  background: transparent;
  border: 0;
  min-width: 0;
  font-size: 13px;
  padding: 8px 8px 8px 2px;
}
.primary a,
.tool {
  font-weight: 650;
}
.btn {
  border-radius: 7px;
  min-height: 47px;
  padding-inline: 20px;
  gap: 15px;
}
.drop,
.empty,
.terms,
.auth-form,
.summary {
  border-radius: 10px;
}
.studio-cover {
  background: var(--cover);
  overflow: hidden;
}
.studio-cover-grid {
  position: relative;
  display: grid;
  grid-template-columns: 48% 52%;
  align-items: center;
  min-height: clamp(475px, 35.8vw, 625px);
  max-width: var(--measure);
}
.cover-copy {
  isolation: isolate;
  z-index: 1;
  padding: 48px 0 56px;
}
.studio-signature {
  font-size: clamp(12px, 0.94vw, 15px);
  font-weight: 680;
  letter-spacing: 0.015em;
  color: var(--accent);
  line-height: 1.55;
}
.cover-copy h1,
.service-intro h1,
.catalog-title h1,
.order-heading h1 {
  font-size: clamp(58px, 5.55vw, 103px);
  font-weight: 750;
  line-height: 1.035;
  letter-spacing: -0.063em;
  text-wrap: balance;
}
.cover-copy h1 {
  margin: 17px 0 20px;
}
.cover-copy h1 span {
  color: var(--accent);
}
.cover-lead {
  max-width: 42ch;
  font-size: clamp(15px, 1.08vw, 18px);
  line-height: 1.65;
  color: var(--muted);
}
.cover-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 27px;
}
.quiet-action,
.studio-link,
.excerpt-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 690;
  font-size: 14px;
  min-height: 42px;
}
.quiet-action {
  padding: 0 3px;
}
.quiet-action:hover,
.studio-link:hover {
  color: var(--accent);
}
.studio-link .icon,
.quiet-action .icon,
.excerpt-link .icon {
  width: 16px;
  height: 16px;
}
.direction-section,
.focus-section,
.process-spread,
.studio-faq {
  max-width: var(--measure);
}
.direction-section {
  padding-block: clamp(45px, 4.4vw, 82px) clamp(27px, 2.4vw, 48px);
}
.studio-section-title,
.catalog-title,
.catalog-results-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
}
.studio-section-title h2,
.process-intro h2,
.studio-faq h2,
.service-details h2,
.catalog-results-title h2 {
  font-size: clamp(34px, 3.35vw, 62px);
  font-weight: 710;
  line-height: 1.08;
  letter-spacing: -0.057em;
  margin: 0;
}
.object-shelf {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(4px, 0.9vw, 16px);
  margin-top: 24px;
}
.object-choice {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
  padding: 6px 6px 16px;
  position: relative;
}
.object-choice img {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(82px, 8vw, 150px);
  object-fit: contain;
  transition: transform 0.19s ease-out;
}
.object-choice span {
  font-size: clamp(13px, 1vw, 17px);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.object-choice:hover,
.object-choice[aria-current],
.object-choice[aria-selected="true"] {
  color: var(--accent);
}
.object-choice:hover img {
  transform: translateY(-4px);
}
.object-choice[aria-current]::after,
.object-choice[aria-selected="true"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 16%;
  right: 16%;
  height: 2px;
  background: var(--accent);
}
.focus-section {
  padding-block: clamp(32px, 3vw, 60px) clamp(56px, 6vw, 102px);
}
.focus-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.65vw, 28px);
  margin-top: 24px;
}
.focus-story {
  isolation: isolate;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(252px, 20vw, 385px);
  overflow: hidden;
  border-radius: 12px;
}
.focus-story > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.3s ease-out;
}
.focus-story:hover > img {
  transform: scale(1.02);
}
.focus-story::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}
.sound-story {
  color: #f7f5f0;
  background: #121212;
}
.sound-story::before {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.72),
    rgba(0, 0, 0, 0.28) 55%,
    transparent
  );
}
.print-story {
  color: #241e19;
  background: #ede2d7;
}
.print-story::before {
  background: linear-gradient(
    90deg,
    rgba(247, 243, 235, 0.98),
    rgba(247, 243, 235, 0.76) 43%,
    transparent 72%
  );
}
.focus-story > div {
  padding: clamp(22px, 2.25vw, 40px);
  width: 100%;
}
.focus-story small {
  font-size: 12px;
  font-weight: 670;
}
.focus-story h3 {
  margin: 11px 0 15px;
  font-size: clamp(30px, 2.65vw, 49px);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -0.055em;
}
.focus-story span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
}
.focus-story .icon {
  width: 15px;
  height: 15px;
}
.sound-story .icon {
  filter: invert(1);
}
.print-story .icon {
  filter: none;
}
.studio-process {
  border-block: 1px solid var(--line);
  background: var(--shelf);
}
.process-spread,
.service-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 7vw, 125px);
  padding-block: clamp(50px, 5.5vw, 95px);
}
.journey-lines {
  padding: 0;
  margin: 23px 0 0;
  list-style: none;
  counter-reset: journey;
}
.journey-lines li {
  display: flex;
  align-items: baseline;
  gap: 17px;
  padding: 14px 0;
  counter-increment: journey;
  border-top: 1px solid var(--line);
}
.journey-lines li::before {
  content: counter(journey, decimal-leading-zero);
  color: var(--accent);
  font-size: 12px;
  font-weight: 720;
  flex: 0 0 22px;
}
.journey-lines h3 {
  font-size: 19px;
  letter-spacing: -0.035em;
  font-weight: 690;
}
.journey-lines p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 47ch;
  margin-top: 4px;
}
.order-excerpt {
  display: block;
  padding: clamp(24px, 3.2vw, 55px);
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 13px;
}
.excerpt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.order-excerpt > strong {
  display: block;
  font-size: clamp(27px, 2.65vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  margin: 22px 0;
}
.sample-chat {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 0;
  border-block: 1px solid var(--line);
}
.sample-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 40px;
}
.sample-avatar img {
  width: 29px;
  height: auto;
  object-fit: contain;
  transform: translateY(-9%);
}
.sample-chat p {
  font-size: 14px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.sample-chat b {
  display: block;
  font-weight: 680;
  margin-bottom: 3px;
  color: var(--text);
}
.excerpt-link {
  color: var(--accent);
  margin-top: 10px;
}
.studio-faq {
  padding-block: clamp(45px, 5.5vw, 96px);
  align-items: start;
}
.studio-faq .studio-link {
  margin-top: 12px;
}
.foot nav {
  gap: clamp(13px, 1.5vw, 27px);
}
/* Каталог и страница услуги используют те же предметные изображения, что и главная. */
.studio-catalog,
.studio-service,
.order-page {
  max-width: var(--measure);
}
.catalog-title {
  align-items: center;
  margin: clamp(28px, 3vw, 56px) 0;
}
.catalog-title h1,
.service-intro h1,
.order-heading h1 {
  font-size: clamp(41px, 4.5vw, 77px);
}
.studio-search {
  width: min(380px, 44%);
  border-radius: 8px;
}
.studio-search button {
  border-radius: 5px;
}
.studio-catalog .object-shelf {
  padding-block: 4px 8px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.catalog-results-title {
  align-items: center;
  margin-bottom: 17px;
}
.catalog-results-title h2 {
  font-size: clamp(24px, 2.1vw, 36px);
}
.catalog-results-title small {
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--muted);
  vertical-align: top;
}
.service-index a {
  padding-block: 17px;
}
.service-index strong {
  font-weight: 680;
}
.service-mast {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 5%;
  padding-block: clamp(32px, 4.2vw, 78px);
}
.service-intro h1 {
  margin: 12px 0 17px;
  max-width: 17ch;
}
.service-object {
  display: grid;
  place-items: center;
  position: relative;
}
.service-object img {
  width: min(100%, 410px);
  height: auto;
}
.service-details {
  align-items: start;
  border-top: 1px solid var(--line);
  padding-block: clamp(28px, 3vw, 55px) 0;
}
.service-details dl {
  margin: 0;
}
.service-details dt {
  font-size: 14px;
  font-weight: 720;
  margin-bottom: 5px;
}
.service-details dd {
  margin: 0 0 15px;
  max-width: 52ch;
  color: var(--muted);
}
.service-details h2 {
  font-size: clamp(27px, 2.4vw, 40px);
}
.order-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding-block: clamp(28px, 3.4vw, 59px);
}
.order-heading h1 {
  max-width: 22ch;
  margin: 12px 0 16px;
  overflow-wrap: anywhere;
}
.order-object {
  width: clamp(135px, 17vw, 265px);
  height: auto;
  object-fit: contain;
}
.order-page .chat {
  padding: clamp(16px, 1.8vw, 29px);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.order-page .msg {
  border-radius: 10px;
}
.order-page .msg.system {
  border-radius: 0;
}
.order-page .terms h2 {
  margin-top: 0;
}
.page-head h1,
.auth-copy h1 {
  font-weight: 710;
  letter-spacing: -0.055em;
}
.auth-copy em {
  font: inherit;
  color: var(--accent);
  letter-spacing: inherit;
}
@media (min-width: 1650px) {
  .studio-cover-grid {
    min-height: 560px;
  }
}
@media (max-width: 1130px) {
  .mast-search {
    display: none;
  }
  .studio-cover-grid {
    min-height: 440px;
  }
  .cover-copy h1 {
    font-size: clamp(53px, 6.1vw, 75px);
  }
}
@media (max-width: 870px) {
  .studio-cover-grid {
    min-height: 407px;
  }
  .cover-lead {
    font-size: 14px;
  }
  .cover-copy {
    padding: 32px 0;
  }
  .object-choice {
    padding-inline: 1px;
  }
  .focus-story h3 {
    font-size: 31px;
  }
  .process-spread {
    gap: 28px;
  }
  .order-excerpt {
    padding: 22px;
  }
}
@media (min-width: 761px) and (max-width: 1023px) {
  .primary { display: none; }
  .mobile-menu { display: block; }
  .mast-search { display: flex; width: clamp(170px, 29vw, 244px); }
}
@media (min-width: 1024px) and (max-width: 1240px) {
  .top { gap: clamp(12px, 1.3vw, 17px); }
  .primary { gap: clamp(12px, 1.45vw, 18px); }
  .tools { gap: 8px; }
  .mast-search { display: flex; width: clamp(115px, 11vw, 140px); }
  .basket { padding-left: 10px; }
}
@media (max-width: 700px) {
  .top {
    min-height: 61px;
  }
  .studio-cover-grid {
    display: flex;
    flex-direction: column;
    min-height: 0;
    align-items: stretch;
  }
  .cover-copy {
    padding: 32px 0 0;
  }
  .cover-copy h1 {
    font-size: clamp(43px, 9vw, 62px);
    line-height: 1.04;
    margin: 12px 0;
  }
  .cover-lead {
    font-size: 14px;
    line-height: 1.56;
    max-width: 44ch;
  }
  .cover-actions {
    margin-top: 17px;
    gap: 10px;
  }
  .cover-actions .btn {
    padding-inline: 13px;
    gap: 8px;
  }
  .cover-actions .quiet-action {
    gap: 5px;
    padding-inline: 0;
  }
  .cover-actions .btn,
  .quiet-action {
    font-size: 13px;
    min-height: 44px;
  }
  .direction-section {
    padding: 32px 0 16px;
  }
  .studio-section-title,
  .catalog-results-title {
    gap: 9px;
    align-items: center;
  }
  .studio-section-title h2,
  .studio-faq h2,
  .process-intro h2 {
    font-size: clamp(29px, 6.7vw, 38px);
  }
  .studio-link {
    font-size: 12px;
    white-space: nowrap;
    gap: 5px;
  }
  .object-shelf {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 6px;
    margin-top: 15px;
  }
  .object-choice {
    gap: 3px;
    padding: 0 1px 9px;
  }
  .object-choice img {
    max-height: 89px;
  }
  .object-choice span {
    font-size: 12px;
    letter-spacing: -0.025em;
    min-height: 1.35em;
  }
  .focus-section {
    padding: 27px 0 36px;
  }
  .focus-pair {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
  }
  .focus-story {
    min-height: 205px;
    border-radius: 9px;
  }
  .focus-story > div {
    padding: 23px 20px;
  }
  .focus-story h3 {
    font-size: 33px;
    margin: 8px 0;
  }
  .process-spread,
  .service-details {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 34px;
  }
  .journey-lines {
    margin-top: 18px;
  }
  .journey-lines li {
    padding: 12px 0;
    gap: 10px;
  }
  .journey-lines h3 {
    font-size: 17px;
  }
  .studio-faq {
    display: block;
    padding-block: 34px;
  }
  .studio-faq .faq-list {
    margin-top: 13px;
  }
  .catalog-title {
    display: grid;
    gap: 14px;
    margin: 24px 0 17px;
  }
  .studio-search {
    width: 100%;
  }
  .studio-catalog .object-shelf {
    margin-bottom: 20px;
  }
  .catalog-results-title h2 {
    font-size: 23px;
  }
  .service-mast {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 25px 0 21px;
  }
  .service-intro h1,
  .catalog-title h1,
  .order-heading h1 {
    font-size: clamp(36px, 8vw, 50px);
  }
  .service-object img {
    width: 210px;
  }
  .service-details {
    padding-bottom: 0;
  }
  .order-heading {
    gap: 10px;
    align-items: flex-start;
    padding: 24px 0;
  }
  .order-heading h1 {
    font-size: clamp(30px, 6.6vw, 43px);
  }
  .order-object {
    width: 70px;
    margin-top: 30px;
  }
}
@media (max-width: 370px) {
  .cover-actions .btn {
    padding-inline: 13px;
  }
  .cover-actions {
    gap: 11px;
  }
  .order-object {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .object-choice:hover img,
  .focus-story:hover > img {
    transform: none;
  }
}

.picker-list {
  border-block: 1px solid var(--line);
}
.picker-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(245px, 100%), 1fr));
  column-gap: clamp(18px, 3vw, 48px);
}
.picker-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  height: 100%;
  min-height: 65px;
  padding: 13px 3px;
  font-size: clamp(14px, 1.12vw, 18px);
  font-weight: 650;
  letter-spacing: -0.025em;
}
.picker-list a:hover,
.picker-list a:focus-visible {
  color: var(--accent);
}
.picker-list .icon {
  width: 15px;
  height: 15px;
  opacity: 0.72;
}
.object-choice:focus-visible img {
  transform: translateY(-4px);
}
.primary a {
  position: relative;
  white-space: nowrap;
}
.primary a::after {
  content: "";
  position: absolute;
  inset: auto 0 4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease-out;
}
.primary a:is(:hover, :focus-visible, [aria-current])::after {
  transform: scaleX(1);
}
@media (prefers-reduced-motion: no-preference) {
  .studio-cover .cover-copy {
    animation: studio-type-in 0.56s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .picker-list:not([hidden]) a {
    animation: studio-type-in 0.24s ease-out;
  }
  .studio-link .icon,
  .quiet-action .icon,
  .picker-list .icon {
    transition: transform 0.18s ease-out;
  }
  .studio-link:hover .icon {
    transform: translateX(3px);
  }
  .picker-list a:hover .icon,
  .quiet-action:hover .icon {
    transform: translate(2px, -2px);
  }
  @keyframes studio-type-in {
    from {
      transform: translateY(8px);
    }
    to {
      transform: none;
    }
  }
}
@media (max-width: 700px) {
  .picker-list ul {
    display: block;
  }
  .picker-list li + li {
    border-top: 1px solid var(--line);
  }
  .picker-list a {
    min-height: 47px;
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .object-choice:focus-visible img {
    transform: none;
  }
}
