/* Главная страница */
:root {
  --bg: #fbf8f3; --bg2: #f4eee5; --ink: #2b2321; --muted: #7a6d66; --line: #e7ddd1;
  --wine: #6b2d3a; --wine2: #57222e; --gold: #b8955a; --white: #fff;
  --serif-ui: 'Cormorant Garamond', Georgia, serif; --sans: 'Manrope', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.noscroll { overflow: hidden; }
a { color: inherit; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 22px; }
.ic { width: 20px; height: 20px; flex: none; }

/* ---- кнопки ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 30px; border-radius: 999px;
  background: var(--wine); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; letter-spacing: .01em;
  border: 1.5px solid var(--wine); transition: background .2s, transform .2s, box-shadow .2s; white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(107, 45, 58, .6);
}
.btn:hover { background: var(--wine2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #d8ccbe; box-shadow: none; }
.btn-ghost:hover { background: #fff; border-color: var(--ink); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-light { background: #fbf3e8; color: var(--wine); border-color: #fbf3e8; box-shadow: none; }
.btn-light:hover { background: #fff; }

/* ---- шапка ---- */
.hdr { position: sticky; top: 0; z-index: 30; background: rgba(251, 248, 243, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.hdr.scrolled { border-color: var(--line); }
.hdr-in { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { font-family: var(--serif-ui); font-weight: 600; font-size: 23px; letter-spacing: .3em; color: var(--wine); text-decoration: none; }
.nav { display: flex; gap: 30px; margin: 0 auto; }
.nav a { text-decoration: none; font-size: 15px; color: #4a3f3b; }
.nav a:hover { color: var(--wine); }
.hdr-right { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.lang a { text-decoration: none; padding: 2px; }
.lang a.on { color: var(--ink); font-weight: 700; }
.burger { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.burger span { width: 20px; height: 1.6px; background: var(--ink); transition: .25s; }
.menu-open .burger span:first-child { transform: translateY(3.8px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.8px) rotate(-45deg); }
.mnav { display: none; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--wine); background: #fff; transition: .2s; }
.socials a:hover { background: var(--wine); color: #fff; border-color: var(--wine); }

/* ---- герой ---- */
.hero { padding: 36px 0 80px; background: radial-gradient(ellipse 60% 50% at 80% 30%, #f3e8dc, transparent 70%), radial-gradient(ellipse 50% 40% at 10% 90%, #f1ebe0, transparent 70%); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-family: var(--serif-ui); font-weight: 500; font-size: clamp(46px, 6.6vw, 92px); line-height: .98; letter-spacing: -.015em; }
.hero h1 em { font-style: normal; color: var(--wine); }
.hero-sub { font-family: var(--serif-ui); font-size: clamp(22px, 2.3vw, 30px); color: #5a4e49; margin: 26px 0 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

.hero-demo { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.hero-stage { position: relative; width: min(100%, 470px); aspect-ratio: 1 / 1.12; }
.hero-phone { position: absolute; left: 12%; top: 0; width: 49%; z-index: 2; }
.hero-env { position: absolute; right: 0; top: 18%; width: 48%; aspect-ratio: .72; transform: rotate(5deg); z-index: 1; }
.hero-tap { font-size: 13px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }
.thumbs-wrap { display: flex; align-items: center; gap: 6px; width: 100%; max-width: 520px; margin-top: 22px; }
.thumbs { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 8px; flex: 1; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { flex: none; width: 82px; scroll-snap-align: start; text-align: center; }
.thumb-img { border-radius: 10px; overflow: hidden; border: 2px solid transparent; transition: .2s; box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .3); }
.thumb-img .cover { aspect-ratio: 390 / 600; }
.thumb span { display: block; font-size: 12px; margin-top: 6px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb.on .thumb-img { border-color: var(--wine); }
.thumb.on span { color: var(--ink); font-weight: 600; }
.arr { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #fff; border: 1px solid var(--line); font-size: 22px; line-height: 1; display: grid; place-items: center; padding-bottom: 3px; box-shadow: 0 2px 8px -4px rgba(0, 0, 0, .25); }
.arr:hover { border-color: var(--ink); }

/* ---- секции ---- */
.sec { padding: 96px 0; }
.sec-tint { background: var(--bg2); }
.h2 { font-family: var(--serif-ui); font-weight: 500; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.05; text-align: center; letter-spacing: -.01em; }
.lead { text-align: center; color: var(--muted); max-width: 580px; margin: 16px auto 0; font-size: 17px; }

.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 52px; }
.feat { background: #fff; border: 1px solid #efe6db; border-radius: 18px; padding: 24px 20px; }
.feat svg { width: 30px; height: 30px; fill: none; stroke: var(--wine); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.feat h3 { font-family: var(--serif-ui); font-size: 23px; font-weight: 600; line-height: 1.15; margin-bottom: 6px; }
.feat p { font-size: 14.5px; color: var(--muted); line-height: 1.5; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.steps li { text-align: center; padding: 0 12px; }
.steps b { display: block; font-family: var(--serif-ui); font-weight: 500; font-size: 60px; line-height: 1; color: var(--gold); }
.steps h3 { font-family: var(--serif-ui); font-size: 28px; font-weight: 600; margin: 12px 0 6px; }
.steps p { color: var(--muted); }

/* ---- галерея ---- */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 36px 0 34px; }
.filters button { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14.5px; font-weight: 500; transition: .2s; }
.filters button:hover { border-color: var(--ink); }
.filters button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 28px; }
.dcard { text-align: center; cursor: pointer; outline: none; min-width: 0; }
.dcard[hidden] { display: none; }
.dstage { position: relative; aspect-ratio: 1 / 1.02; border-radius: 18px; overflow: hidden; background: var(--stage, #f3ede3); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); transition: box-shadow .3s; isolation: isolate; }
.dstage::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 70% at 30% 40%, rgba(255, 255, 255, .28), transparent 70%); }
.dop { position: absolute; left: 12px; top: 12px; z-index: 4; padding: 5px 11px; border-radius: 99px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(6px); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: #3b302c; box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .3); }
.dcard:hover .dstage, .dcard:focus-visible .dstage { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05), 0 20px 40px -24px rgba(60, 30, 20, .45); }
.dcard:focus-visible .dstage { outline: 2px solid var(--wine); outline-offset: 3px; }
.dphone { position: absolute; left: 8%; top: 9%; width: 40%; z-index: 2; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.denv { position: absolute; right: 5%; top: 52%; width: 48%; aspect-ratio: .72; transform: translateY(-50%) rotate(3deg); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.dcard.dscene .denv { width: 44%; right: 6%; }
.dcard:hover .dphone { transform: translateY(-6px); }
.dcard:hover .denv { transform: translateY(-50%) translateX(6px) rotate(6deg); }
.dopen { position: absolute; right: 14px; bottom: 14px; z-index: 3; background: rgba(255, 255, 255, .92); padding: 7px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; opacity: 0; transform: translateY(6px); transition: .3s; }
.dcard:hover .dopen { opacity: 1; transform: none; }
.dcard > h3 { font-family: var(--serif-ui); font-size: 24px; font-weight: 600; margin-top: 14px; line-height: 1.2; }
.dcard > p { font-size: 14px; color: var(--muted); margin-top: 3px; padding: 0 8px; }

/* ---- свой дизайн ---- */
.own { background: var(--wine); color: #f6ebe2; padding: 70px 0; }
.own-in { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.own .h2 { text-align: left; color: #fff; }
.own p { margin-top: 10px; max-width: 560px; color: #ecd9cf; font-size: 17px; }

/* ---- заказ ---- */
.order-in { text-align: center; }
.contact-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 36px auto 0; max-width: 560px; text-align: left; }
.cbtn { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: .2s; }
.cbtn:hover { border-color: var(--wine); transform: translateY(-1px); }
.cbtn .ic { width: 26px; height: 26px; color: var(--wine); }
.cbtn span { font-weight: 600; display: flex; flex-direction: column; line-height: 1.25; }
.cbtn small { font-weight: 400; color: var(--muted); font-size: 13.5px; }

/* ---- подвал ---- */
.ftr { border-top: 1px solid var(--line); padding: 40px 0 50px; }
.ftr-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ftr p { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---- окно просмотра ---- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal-bg { position: absolute; inset: 0; background: rgba(32, 22, 20, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .25s; }
.modal-box { position: relative; display: flex; align-items: center; gap: 22px; animation: rise .35s cubic-bezier(.2, .7, .2, 1); }
.modal-phone { height: min(84vh, 780px); width: auto; }
.modal-info { width: 260px; color: #fff; }
.modal-info h3 { font-family: var(--serif-ui); font-size: 38px; font-weight: 500; line-height: 1.05; }
.modal-info p { color: #e6d9d0; margin: 10px 0 24px; }
.modal-info .btn { background: #fbf3e8; color: var(--wine); border-color: #fbf3e8; }
.modal-x { position: fixed; top: 16px; right: 18px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 28px; line-height: 1; z-index: 2; }
.modal-arr { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 28px; line-height: 1; padding-bottom: 4px; flex: none; }
.modal-arr:hover, .modal-x:hover { background: rgba(255, 255, 255, .26); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

/* ---- адаптив ---- */
@media (max-width: 1100px) {
  .feats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav, .hdr-right > .lang { display: none; }
  .burger { display: flex; }
  .hdr-in { gap: 12px; justify-content: space-between; height: 62px; }
  .hdr-right { gap: 6px; }
  .mnav { display: grid; gap: 4px; max-height: 0; overflow: hidden; transition: max-height .35s ease; padding: 0 22px; }
  .menu-open .mnav { max-height: 420px; padding-bottom: 20px; }
  .mnav > a { font-family: var(--serif-ui); font-size: 26px; text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line); }
  .mnav-row { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; }
  .mnav-row .lang { font-size: 16px; }

  .hero { padding: 18px 0 56px; }
  .hero-in { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-text { display: contents; }
  .hero h1 { order: 1; }
  .hero-sub { order: 2; }
  .hero-demo { order: 3; margin: 6px 0 0; }
  .hero-cta { order: 5; }
  .hero-note { order: 6; text-align: center; }
  .hero-stage { width: min(100%, 400px); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .contact-btns { grid-template-columns: 1fr; }
  .own-in { flex-direction: column; align-items: flex-start; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .modal-box { flex-direction: column; gap: 14px; }
  .modal-phone { height: min(70vh, 640px); }
  .modal-arr { position: absolute; top: calc(min(70vh, 640px) / 2 - 23px); }
  .modal-arr.prev { left: -58px; }
  .modal-arr.next { right: -58px; }
  .modal-info { width: auto; text-align: center; display: flex; align-items: center; gap: 14px; }
  .modal-info h3 { font-size: 26px; }
  .modal-info p { display: none; }
  .modal-info .btn { padding: 12px 22px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .sec { padding: 70px 0; }
  .hero h1 { font-size: 44px; }
  .hero-sub { margin: 14px 0 18px; font-size: 21px; }
  .hero-cta .btn { flex: 1; padding: 15px 18px; }
  .feats { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 36px; }
  .feat { padding: 18px 15px; border-radius: 14px; }
  .feat svg { width: 26px; height: 26px; margin-bottom: 12px; }
  .feat h3 { font-size: 20px; }
  .feat p { font-size: 13.5px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: 26px -18px 24px; padding: 0 18px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; }
  .dstage { border-radius: 14px; }
  .dcard > h3 { font-size: 19px; margin-top: 10px; }
  .dcard > p { font-size: 12.5px; line-height: 1.4; padding: 0; }
  .dopen { display: none; }
  .dop { font-size: 10.5px; padding: 4px 9px; left: 8px; top: 8px; }
  .own { padding: 56px 0; }
  .modal-phone { height: min(66vh, 600px); }
  .modal-arr { display: none; }
  .modal-x { top: 10px; right: 10px; }
}
