:root {
  --paper: #f5f1ea;
  --sheet: #ffffff;
  --ink: #1c1a17;
  --muted: #6a645b;
  --line: #e3dbcd;
  --warm: #ede3d2;
  --accent: #2b6ce4;
  --accent-dark: #1f56bd;
  --bubble-out: #ddebff;
  --r: 18px;
  --shadow: 0 1px 2px rgba(28, 26, 23, 0.06), 0 8px 24px rgba(28, 26, 23, 0.07);
  color-scheme: light;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    400 17px/1.55 system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent-dark);
  text-underline-offset: 3px;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
}
h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
}
h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1em;
}
.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.narrow {
  max-width: 820px;
}
.muted {
  color: var(--muted);
}
.small,
.fine {
  font-size: 14px;
  color: var(--muted);
}
.fine {
  margin-top: 18px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--sheet);
  padding: 8px 12px;
  border-radius: 8px;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.btn:active {
  transform: translateY(1px);
}
.btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: none;
}
.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-line:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.btn-light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.btn-light:hover {
  background: var(--warm);
  border-color: var(--warm);
}
.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
}

/* шапка */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 241, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.logo {
  width: 34px;
  height: 34px;
  flex: none;
}
.nav {
  display: none;
  gap: 22px;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.nav a:hover {
  color: var(--accent-dark);
}
.lang {
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding: 8px 4px;
}
.top .btn-small span {
  display: none;
}
.top .btn-small {
  width: 44px;
  padding: 0;
}

/* первый экран */
.hero {
  padding: 40px 0 56px;
}
.hero-in {
  display: grid;
  gap: 36px;
  align-items: center;
}
.lead {
  font-size: clamp(18px, 2.2vw, 21px);
  color: #39352f;
  max-width: 40em;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.ticks li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  font-weight: 600;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4 7.8 12 13 6.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/18px no-repeat;
}
.ticks.big {
  flex-direction: column;
  gap: 12px;
}
.ticks.big li {
  font-size: 17px;
  font-weight: 500;
}

.chat {
  margin: 0;
  background: #e7eef5;
  border-radius: 26px;
  padding: 0 0 14px;
  box-shadow: var(--shadow);
  max-width: 460px;
  width: 100%;
  justify-self: center;
  overflow: hidden;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--sheet);
  padding: 12px 16px;
  border-bottom: 1px solid #dce3ea;
}
.chat-head b {
  display: block;
  font-size: 16px;
}
.chat-head small {
  color: var(--muted);
  font-size: 13px;
}
.ava {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.chat-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 14px 6px;
}
.msg {
  margin: 0;
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 15.5px;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}
.msg.in {
  background: var(--sheet);
  align-self: flex-start;
  border-bottom-left-radius: 6px;
}
.msg.out {
  background: var(--bubble-out);
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}
.chat figcaption {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
@media (prefers-reduced-motion: no-preference) {
  .js .msg {
    opacity: 0;
    transform: translateY(8px);
    animation: pop 0.4s ease forwards;
  }
  .js .msg:nth-child(2) {
    animation-delay: 0.9s;
  }
  .js .msg:nth-child(3) {
    animation-delay: 1.9s;
  }
}
@keyframes pop {
  to {
    opacity: 1;
    transform: none;
  }
}

/* блоки */
.block {
  padding: 56px 0;
}
.block.alt {
  background: var(--warm);
}
.sub {
  color: var(--muted);
  font-size: 18px;
  max-width: 46em;
  margin-top: -4px;
}

.svcs {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}
.svc {
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
}
.svc h3 {
  margin-top: 12px;
}
.svc h3 a {
  color: var(--ink);
  text-decoration: none;
}
.svc h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r);
}
.svc:hover {
  border-color: var(--ink);
}
.svc p {
  color: #47423b;
  font-size: 15.5px;
}
.ico {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svc-price {
  margin: auto 0 0;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
.svc-price b {
  font-size: 20px;
  color: var(--ink);
}
.svc-price span {
  font-size: 14px;
  color: var(--muted);
}
.svc .more {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.works-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 24px;
}
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0.5em;
}
.filter button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--sheet);
  color: var(--ink);
  cursor: pointer;
}
.filter button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.mosaic {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}
.work[hidden] {
  display: none;
}
.w-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
}
.frame {
  display: block;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--warm);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.w-open:hover .frame img {
  transform: scale(1.03);
}
.w-t {
  display: block;
  font-weight: 700;
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.3;
}
.w-c {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}

.projects {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 14px;
}
.projects li {
  background: var(--sheet);
  border-radius: var(--r);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.projects p {
  color: #47423b;
  font-size: 15.5px;
}
.projects a {
  margin-top: auto;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

.route {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 14px;
  counter-reset: s;
}
.route li {
  counter-increment: s;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
}
.route li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  margin-bottom: 12px;
}
.route p {
  margin: 0;
  color: #47423b;
  font-size: 15.5px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  font-weight: 700;
  font-size: 18px;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 12px;
  font-size: 26px;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: 0 0 18px;
  color: #39352f;
}

.final {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0;
  text-align: center;
}
.final h2 {
  max-width: 20em;
  margin-left: auto;
  margin-right: auto;
}
.final p {
  color: #cfc8bc;
}
.final .cta {
  justify-content: center;
}

/* страница услуги */
.hero-svc {
  padding-bottom: 36px;
}
.hero-svc h1 {
  font-size: clamp(30px, 5vw, 50px);
  max-width: 18em;
}
.crumbs {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}
.crumbs a {
  color: var(--muted);
}
.big-price {
  margin-top: 18px;
}
.big-price b {
  font-size: 28px;
}
.big-price span {
  font-size: 16px;
}
.two {
  display: grid;
  gap: 32px;
}
.pricebox {
  background: var(--sheet);
  border-radius: var(--r);
  padding: 24px 20px;
  border: 1px solid var(--line);
  align-self: start;
}
.pricebox h2 {
  font-size: 24px;
}
.ex {
  width: 100%;
  border-collapse: collapse;
}
.ex th,
.ex td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 15.5px;
}
.ex th {
  font-weight: 500;
  padding-right: 16px;
}
.ex td {
  white-space: nowrap;
  font-weight: 800;
}
.others {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.others a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--sheet);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.others a:hover {
  border-color: var(--ink);
}

/* подвал */
.foot {
  padding: 32px 0 96px;
  font-size: 14px;
  border-top: 1px solid var(--line);
}
.foot-in {
  display: grid;
  gap: 14px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.foot a {
  color: var(--ink);
}

/* плавающая кнопка */
.fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(43, 108, 228, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.fab svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  margin-left: -2px;
}
.fab.on {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
html:not(.js) .fab {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* окно работы */
.modal {
  padding: 0;
  border: 0;
  border-radius: 22px;
  width: min(1080px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  background: var(--sheet);
  color: var(--ink);
  overflow: auto;
}
.modal::backdrop {
  background: rgba(20, 18, 15, 0.72);
}
.m-img {
  background: var(--warm);
}
.m-img img {
  width: 100%;
  height: auto;
}
.m-body {
  padding: 22px 20px 24px;
}
.m-cat {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 6px;
}
.m-body dl {
  margin: 12px 0 0;
}
.m-body dt {
  font-weight: 800;
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}
.m-body dd {
  margin: 2px 0 0;
}
.m-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 24px;
  }
  .svcs,
  .projects,
  .route {
    grid-template-columns: repeat(2, 1fr);
  }
  .mosaic {
    grid-template-columns: repeat(2, 1fr);
  }
  .top .btn-small span {
    display: inline;
  }
  .top .btn-small {
    width: auto;
    padding: 0 16px;
  }
  .foot-in {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .foot-in .small {
    grid-column: 1 / -1;
  }
}
@media (min-width: 980px) {
  body {
    font-size: 18px;
  }
  .nav {
    display: flex;
    margin-right: 8px;
  }
  .hero {
    padding: 72px 0 88px;
  }
  .hero-in {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
  }
  .block {
    padding: 80px 0;
  }
  .svcs {
    grid-template-columns: repeat(4, 1fr);
  }
  .projects {
    grid-template-columns: repeat(3, 1fr);
  }
  .route {
    grid-template-columns: repeat(4, 1fr);
  }
  .mosaic {
    grid-template-columns: repeat(4, 1fr);
  }
  .two {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }
  .modal[open] {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
  }
  .m-img {
    display: flex;
    align-items: center;
  }
  .m-body {
    padding: 32px 28px;
  }
}

@media (min-width: 980px) {
  .mosaic.two-up {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
  }
}
