@font-face {
  font-family: Montserrat;
  src: url("/assets/fonts/montserrat-cyrillic-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Montserrat;
  src: url("/assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --text: #f6f7f8;
  --muted: #cbd8df;
  --deep: #032631;
  --silver: #dae6ec;
  --hexagon: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  --hexagon-frame: linear-gradient(145deg, #a7c7d8, #557e94 40%, #3b697f 74%, #79a3b8);
  --layout-max: 1600px;
  --u: calc(min(100cqw, var(--layout-max)) / 946);
  font-family: Montserrat, "Segoe UI", Arial, sans-serif;
  background: #021b24;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  background: linear-gradient(100deg, #012e3d, #022934 52%, #012b38);
}

h1, h2, p { margin: 0; }

a { color: inherit; text-decoration: none; }

button, input, textarea { font: inherit; }

button { color: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid #bdeaff;
  outline-offset: 5px;
}

.skip-link {
  position: absolute;
  z-index: 2;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  background: #0b3442;
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.layout { margin-inline: auto; }

.outline-button {
  display: inline-grid;
  place-items: center;
  min-height: 2.75rem;
  padding: .5em 1.15em;
  border: 1px solid var(--silver);
  border-radius: .18em;
  background: #06263285;
  font-weight: 650;
  text-align: center;
  transition: background-color 160ms ease, color 160ms ease;
}

.outline-button:hover { color: #051f2b; background: var(--silver); }

.outline-button:active { transform: translateY(1px); }

@media (min-width: 761px) {
  .layout { width: calc(830 * var(--u)); }
}

@media (max-width: 760px) {
  .layout { width: min(100% - 2rem, 34rem); }
}

@media (min-width: 761px) {
  .panorama {
    --panorama-blur: 8px;
    --panorama-feather: clamp(1.25rem, 3vw, 4rem);
    overflow: clip;
  }

  /* Боковые переходы первого экрана и подвала используют одну степень размытия. */
  .panorama::after {
    position: absolute;
    z-index: -3;
    inset: -8px;
    background:
      linear-gradient(180deg, var(--panorama-top), #0625304d 52%, var(--panorama-bottom)),
      var(--panorama-image) center / cover no-repeat;
    filter: blur(var(--panorama-blur));
    opacity: .88;
    pointer-events: none;
    content: "";
  }

  .panorama__photo {
    width: 100%;
    max-width: var(--layout-max);
    margin-inline: auto;
    mask-image: linear-gradient(
      90deg, transparent, #000 var(--panorama-feather), #000 calc(100% - var(--panorama-feather)), transparent
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

.hero {
  --panorama-image: url("/assets/images/hero/desktop.webp");
  --panorama-top: #041923;
  --panorama-bottom: #022c39;
  position: relative;
  isolation: isolate;
}

.hero__photo {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  pointer-events: none;
}

.hero__photo img { display: block; width: 100%; height: 100%; object-fit: fill; }

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  width: max-content;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.brand__mark {
  display: block;
  flex: none;
  width: 2.8em;
  aspect-ratio: 69 / 37;
  background: url("/assets/images/brand/mark.webp") center / contain no-repeat;
}

.header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header nav :is(a, button) {
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1.3;
  text-underline-offset: .3em;
}

.header nav :is(a, button):hover { text-decoration: underline; }

.header nav :is(a, button):active {
  color: #bdeaff;
  transform: translateY(1px);
}

.hero__intro { text-align: center; }

.hero h1 {
  font-weight: 300;
  text-transform: uppercase;
  line-height: 1.12;
}

.hero h1 strong { font-weight: 750; }

.hero__description { font-weight: 400; }

.hero__minimum {
  margin: clamp(.85rem, 1.2vw, 1.2rem) auto 0;
  font-size: clamp(.88rem, 1.28vw, 1.2rem);
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 1px 5px #02151d, 0 1px 10px #02151d;
}

.price-button {
  scroll-margin-top: 28vh;
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: .42em;
  background: linear-gradient(180deg, #fff 0%, #a8b6be 7%, #596970 28%, #f5fbff 55%, #62757f 87%, #b4c0c7 100%);
  box-shadow: 0 0 0 1px #9aadb4, 0 .24em .48em #021219a8, 0 0 .34em #e6f6ff72;
  font-weight: 700;
  line-height: 1;
  transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.price-button::before {
  position: absolute;
  z-index: -1;
  inset: .1em;
  border-radius: .3em;
  background: linear-gradient(172deg, #124058, #062633 52%, #021823);
  box-shadow: inset 0 1px 2px #02212b, inset 0 -1px 5px #020b16;
  content: "";
}

.price-button:hover {
  filter: brightness(1.14);
  box-shadow: 0 0 0 1px #d0e5ef, 0 .24em .48em #021219a8, 0 0 .55em #e6f6ff70;
}

.price-button:active { transform: translateY(2px); }

.price-button__label { position: relative; white-space: nowrap; }

.price-button__ribbon {
  position: absolute;
  z-index: -2;
  display: block;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.price-button__ribbon--left {
  width: 36.2%;
  right: calc(100% - 1px);
  top: 22%;
  aspect-ratio: 147 / 43;
  background-image: url("/assets/images/brand/ribbon-left.webp");
}

.price-button__ribbon--right {
  width: 30.8%;
  left: calc(100% - 1px);
  top: 32%;
  aspect-ratio: 125 / 35;
  background-image: url("/assets/images/brand/ribbon-right.webp");
}

@media (min-width: 761px) {
  .hero { height: calc(740 * var(--u)); }

  .header { width: calc(820 * var(--u)); height: calc(96 * var(--u)); }

  .brand { font-size: calc(24 * var(--u)); }

  .brand span:last-child {
    letter-spacing: .015em;
    transform: scaleX(1.14);
    transform-origin: left;
  }

  .header nav { width: calc(405 * var(--u)); font-size: calc(17 * var(--u)); }

  .hero__intro { padding-top: calc(29 * var(--u)); }

  .hero h1 {
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    font-size: calc(56 * var(--u));
    transform: translateX(calc(5 * var(--u))) scaleX(1.035);
  }

  .hero__description {
    margin-top: calc(6 * var(--u));
    font-size: calc(22.4 * var(--u));
    line-height: calc(29 * var(--u));
  }

  .price-button {
    width: calc(405 * var(--u));
    height: calc(63 * var(--u));
    margin-top: calc(34 * var(--u));
    font-size: calc(26.5 * var(--u));
  }

}

@media (max-width: 760px) {
  .hero {
    min-height: clamp(35rem, 105vw, 42rem);
  }

  .hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, #03161f52, transparent 65%, #022d3b 100%);
    pointer-events: none;
    content: "";
  }

  .hero__photo img { object-fit: cover; }

  .header {
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem 1.75rem;
    min-height: 5.5rem;
    padding-block: 1rem;
  }

  .brand { font-size: 1.12rem; }

  .header nav {
    justify-content: center;
    gap: clamp(.85rem, 4vw, 1.4rem);
    font-size: .88rem;
  }

  .header nav :is(a, button) { padding-block: .3rem; }

  .hero__intro { padding: clamp(2rem, 8vw, 3.6rem) 1rem 0; }

  .hero h1 { font-size: clamp(1.9rem, 6.4vw, 3rem); line-height: 1.13; }

  .hero h1 strong { display: block; }

  .hero__description {
    max-width: 28rem;
    margin: .75rem auto 0;
    font-size: clamp(1rem, 3.5vw, 1.26rem);
    line-height: 1.45;
    text-wrap: balance;
  }

  .price-button {
    width: min(71vw, 21rem);
    min-height: 3.1rem;
    margin-top: 1.65rem;
    font-size: clamp(.94rem, 3.7vw, 1.27rem);
  }

  .price-button__ribbon--left, .price-button__ribbon--right { width: 16%; background-size: 100% 100%; }

  .price-button__ribbon--left { top: 32%; }

  .price-button__ribbon--right { top: 36%; }

}

.catalog h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .95em;
  font-weight: 650;
  letter-spacing: .15em;
  text-align: center;
  text-transform: uppercase;
}

.catalog h2::before, .catalog h2::after {
  flex: none;
  width: 2.75em;
  height: 1px;
  background: #bfcbd18f;
  content: "";
}

.honeycomb { list-style: none; padding: 0; }

.tile {
  --frame-width: 1.5px;
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  aspect-ratio: 268 / 319;
  padding: 0;
  border: 0;
  background: var(--hexagon-frame);
  clip-path: var(--hexagon);
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.tile__image, .tile::after {
  position: absolute;
  inset: var(--frame-width);
  clip-path: var(--hexagon);
}

.tile__image {
  z-index: -2;
  display: block;
  width: calc(100% - 2 * var(--frame-width));
  height: calc(100% - 2 * var(--frame-width));
  object-fit: cover;
}

.tile::after {
  z-index: -1;
  background: #aadcfa30;
  opacity: 0;
  transition: opacity 170ms ease;
  content: "";
}

.tile:active::after, .tile:focus-visible::after { opacity: 1; }

@media (hover: hover) {
  .tile:hover::after { opacity: 1; }
}

.tile:focus-visible .tile__label {
  text-decoration: underline;
  text-underline-offset: .23em;
}

.tile__label {
  position: absolute;
  top: 78.2%;
  left: 50%;
  display: block;
  width: 92%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  line-height: 1.17;
  white-space: pre-line;
  text-shadow: 0 1px 6px #00141b, 0 0 10px #00141b;
  text-transform: uppercase;
}

/* Координаты сот на десктопе соответствуют исходной композиции 946 × 1663. */
.honeycomb__fasteners { --source-x: 57; --source-y: 813; }
.honeycomb__brackets { --source-x: 339; --source-y: 813; }
.honeycomb__housings { --source-x: 621; --source-y: 813; }
.honeycomb__bushings { --source-x: 196; --source-y: 1069; }
.honeycomb__custom { --source-x: 480; --source-y: 1069; }

@media (min-width: 761px) {
  .catalog { padding-top: calc(10 * var(--u)); }

  .catalog h2 { font-size: calc(33.1 * var(--u)); line-height: calc(40 * var(--u)); }

  .honeycomb {
    position: relative;
    height: calc(575 * var(--u));
    margin: calc(23 * var(--u)) 0 0;
  }

  .honeycomb li {
    position: absolute;
    top: calc((var(--source-y) - 813) * var(--u));
    left: calc((var(--source-x) - 58) * var(--u));
    width: calc(268 * var(--u));
  }


  .tile__label { font-size: calc(19 * var(--u)); }
}

@media (max-width: 760px) {
  .catalog { padding-top: .8rem; }

  .catalog h2 { gap: .65em; font-size: clamp(1.08rem, 4.5vw, 1.55rem); }

  .catalog h2::before, .catalog h2::after { width: clamp(1.1rem, 9vw, 2.5rem); }

  .honeycomb {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: .7rem;
    row-gap: .25rem;
    margin: 1.2rem 0 0;
  }

  .honeycomb li:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - .7rem) / 2);
  }

  .tile__label { font-size: clamp(.75rem, 3.2vw, 1.1rem); }
}

.footer {
  --panorama-image: url("/assets/images/footer/workshop.webp");
  --panorama-top: #022c39;
  --panorama-bottom: #031c26;
  position: relative;
  isolation: isolate;
}

.footer__continuation { display: none; }

.footer__photo {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.footer__content { border-top: 1px solid #d9e5ed; }

.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer h2 {
  font-weight: 650;
  line-height: 1.2;
  text-transform: uppercase;
}

@media (min-width: 761px) {
  .footer { min-height: calc(230 * var(--u)); margin-top: calc(45 * var(--u)); }

  .footer__row { padding-top: calc(29 * var(--u)); }

  .footer h2 {
    font-size: calc(24 * var(--u));
    transform: scaleX(1.085);
    transform-origin: left;
  }

  .footer .outline-button {
    min-width: calc(190 * var(--u));
    min-height: calc(45 * var(--u));
    padding: 0 .75em;
    font-size: calc(18 * var(--u));
  }

  .brand--footer { margin-top: calc(20 * var(--u)); font-size: calc(22.4 * var(--u)); }
}

@media (width > 1600px) {
  .footer__continuation {
    position: absolute;
    z-index: -2;
    inset: 0 auto 0 0;
    display: block;
    width: calc((100% - var(--layout-max)) / 2 + var(--panorama-feather));
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    filter: brightness(.88) blur(var(--panorama-blur));
    mask-image:
      linear-gradient(90deg, #000 calc(100% - var(--panorama-feather)), transparent),
      linear-gradient(180deg, transparent, #000 37%);
    mask-composite: intersect;
    pointer-events: none;
  }

  .footer__continuation--right {
    inset-inline: auto 0;
    object-position: right bottom;
    transform: scaleX(-1);
  }
}

@media (max-width: 760px) {
  .footer {
    min-height: 14rem;
    margin-top: 2rem;
  }

  .footer__photo { object-fit: cover; object-position: 62% bottom; }

  .footer::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, #022e3b, transparent 72%);
    pointer-events: none;
    content: "";
  }

  .footer__row { flex-wrap: wrap; padding-top: 1.15rem; }

  .footer h2 { font-size: clamp(1rem, 3.9vw, 1.4rem); }

  .footer .outline-button { font-size: .95rem; }

  .brand--footer { margin-top: 1.25rem; }
}

.detail-dialog {
  position: fixed;
  inset: 0;
  container-type: inline-size;
  width: min(43rem, calc(100vw - 1.75rem), calc((100dvh - 1.75rem) * 268 / 319));
  height: max-content;
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  color: var(--text);
}

.detail-dialog::backdrop { background: #00121cdb; }

.detail-dialog__card {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 268 / 319;
  pointer-events: none;
  transform-origin: top left;
}

.detail-dialog__card::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: var(--hexagon-frame);
  clip-path: var(--hexagon);
  content: "";
}

.detail-dialog__visual {
  position: absolute;
  z-index: -1;
  inset: 2px;
  background-color: #092b39;
  background-position: center;
  background-size: cover;
  clip-path: var(--hexagon);
  pointer-events: auto;
}

.detail-dialog__visual::after {
  display: block;
  height: 100%;
  background: linear-gradient(180deg, transparent 32%, #041b2470 50%, #041b24e8 74%, #02131e);
  content: "";
}

.detail-dialog__copy {
  position: absolute;
  /* Нижние диагонали начинаются на 75% высоты соты. */
  inset: auto 13% 23%;
  display: grid;
  gap: clamp(.35rem, 1.55cqw, .8rem);
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
  pointer-events: auto;
  text-shadow: 0 2px 12px #00131b;
}

.detail-dialog__copy h2 {
  font-size: clamp(1.1rem, 7.8cqw, 3.6rem);
  font-weight: 750;
  line-height: 1.05;
  text-transform: uppercase;
}

.detail-dialog__copy p {
  color: #e1edf3;
  font-size: clamp(.82rem, 3.65cqw, 1.25rem);
  line-height: 1.32;
}

.detail-dialog__close {
  position: absolute;
  top: 3%;
  right: 2%;
}

.detail-dialog__close button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid #8aa9ba;
  border-radius: 50%;
  background: #082631;
  font-size: 1.65rem;
  line-height: 1;
}

.detail-dialog__close button:hover { background: #1b4c61; }

@media (max-height: 350px) {
  .detail-dialog__copy h2 { font-size: clamp(.9rem, 7.8cqw, 1.75rem); }
  .detail-dialog__copy p { font-size: clamp(.72rem, 3.9cqw, 1rem); }
}

@media (prefers-reduced-motion: no-preference) {
  .detail-dialog[open]::backdrop { animation: detail-fade-in 240ms ease-out; }
  .detail-dialog[open] .detail-dialog__copy,
  .detail-dialog[open] .detail-dialog__close { animation: detail-fade-in 330ms ease-out; }

  @keyframes detail-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

.production, .quote {
  max-width: 71rem;
  margin-top: clamp(2.75rem, 7vw, 6.5rem);
}

.production {
  padding-top: clamp(1.3rem, 4vw, 3rem);
  border-top: 1px solid #91bbcd7a;
}

.production__intro {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1.25rem, 4.5vw, 3.75rem);
}

.production h2, .quote h2 {
  font-size: clamp(1.75rem, 4.6vw, 3.6rem);
  font-weight: 650;
  line-height: 1.12;
  text-wrap: balance;
}

.production p, .quote p {
  margin-top: .85rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.65;
}

.production__photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid #86b2c67a;
  background: #0b2934;
}

.production__photo img {
  display: block;
  width: 100%;
  height: auto;
}

.production__photo figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 1.25rem .75rem .7rem;
  color: #f3f8fb;
  background: linear-gradient(transparent, #031820f0);
  font-size: .8rem;
  line-height: 1.35;
}

.production__specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  margin: 1.6rem 0 0;
}

.production__specs div {
  padding: 1rem;
  border-top: 1px solid #91bbcd7a;
  background: #041f2b75;
}

.production__specs dt {
  font-size: clamp(1.35rem, 2.9vw, 2.5rem);
  font-weight: 650;
  line-height: 1.15;
}

.production__specs div:last-child dt { font-size: clamp(1.15rem, 2.45vw, 2rem); }

.production__specs dd { margin: .4rem 0 0; color: var(--muted); line-height: 1.4; }

.quote {
  padding: clamp(1.2rem, 3.5vw, 2.6rem);
  border: 1px solid #91bbcd7a;
  background: #05242e;
}

.quote h2 { font-size: clamp(1.45rem, 3.5vw, 2.7rem); }

.quote__minimum { margin-top: .5rem; }

.quote__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.1rem, 4vw, 2.5rem);
  margin-top: clamp(1.1rem, 3vw, 2rem);
}

.quote__option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .85rem;
  padding-top: .95rem;
  border-top: 1px solid #91bbcd7a;
}

.quote__option h3 {
  margin: 0;
  font-size: clamp(1.08rem, 2.15vw, 1.55rem);
  line-height: 1.25;
}

.quote__option p { flex: 1; margin: 0; }

@media (max-width: 760px) {
  .production__intro, .quote__options { grid-template-columns: minmax(0, 1fr); }
  .production__intro { gap: 1.1rem; }
  .production__specs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .production__specs div { padding: .65rem .45rem; }
  .production__specs dt, .production__specs div:last-child dt { font-size: clamp(1rem, 4.2vw, 1.35rem); }
  .production__specs dd { font-size: .82rem; }
}

:is(.page-contacts, .page-privacy, .page-works, .page-faq, .page-calculator, .page-panel)::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: clamp(30rem, 62vw, 52rem);
  background:
    linear-gradient(180deg, #0419239c, #06232e66 48%, #06232e8a),
    url("/assets/images/contacts/workshop-background.webp") center 61% / cover no-repeat;
  mask-image: linear-gradient(#000 0% 60%, transparent 100%);
  pointer-events: none;
  content: "";
}

.inner-header {
  background: linear-gradient(180deg, #041923, #06232f00);
}

.interior {
  max-width: 71rem;
  padding-block: clamp(2rem, 6vw, 5.5rem);
}

.interior__intro { margin-bottom: clamp(1.7rem, 4vw, 3rem); }

.interior h1 {
  max-width: 18ch;
  font-size: clamp(2.25rem, 7vw, 5rem);
  font-weight: 350;
  line-height: 1.08;
  text-wrap: balance;
}

.interior__intro--policy h1 {
  max-width: 22ch;
  font-size: clamp(1.9rem, 5.9vw, 3.9rem);
}

.interior__intro p {
  margin-top: .75rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.5;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  gap: clamp(1rem, 3vw, 2.5rem);
}

.contact-card, .company-card {
  padding: clamp(1.2rem, 3vw, 2.2rem);
  border: 1px solid #739bb06b;
  background: #062630;
}

.contact-card h2, .company-card h2, .policy-copy h2 {
  font-size: clamp(1.2rem, 2.6vw, 1.85rem);
  line-height: 1.2;
}

.contact-card__details { display: grid; gap: 1.15rem; margin: 1.5rem 0; }

.contact-card__details dt, .company-card dt {
  margin-bottom: .3rem;
  color: var(--muted);
  font-size: .875rem;
}

.contact-card__details dd, .company-card dd {
  margin: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact-card__details a {
  color: #e9f7ff;
  font-size: clamp(1rem, 2vw, 1.32rem);
  font-weight: 650;
}

.contact-card__details a:hover, .company-footer a:hover { text-decoration: underline; }

.contact-card__actions {
  display: grid;
  justify-items: start;
  gap: .55rem;
}

.contact-card__messenger {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: .6rem;
  transition: filter 160ms ease;
}

.contact-card__messenger img { display: block; }

.contact-card__messenger:hover { filter: brightness(1.15); }

.contact-map {
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid #739bb06b;
  background: #062630;
}

.contact-map__image { flex: 1; display: block; min-height: 0; }

.contact-map__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
}

.contact-map figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem;
  padding: .8rem 1rem;
  font-size: .9rem;
}

.contact-map figcaption a, .text-link, .policy-copy p a {
  text-decoration: underline;
  text-underline-offset: .22em;
  overflow-wrap: anywhere;
}

.contact-map__credit { color: var(--muted); font-size: .76rem; }

.company-card { margin-top: clamp(1rem, 3vw, 2.5rem); }

.company-card dl {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem clamp(1.2rem, 4vw, 3rem);
  margin: 1.2rem 0;
}

.company-card > a { display: inline-block; }

.policy-copy { max-width: 48rem; }

.policy-copy section { margin-bottom: 1.7rem; }

.policy-copy p {
  margin: .65rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.company-footer { border-top: 1px solid #85b4c438; background: #041b24; }

.company-footer__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .85rem 2rem;
  padding-block: 1.15rem;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.45;
}

.company-footer__company, .company-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .9rem;
}

.company-footer__company strong { color: var(--text); }

.company-footer__notice {
  padding-bottom: .65rem;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.45;
  text-align: center;
}

.company-footer__copyright {
  padding: 0 1rem 1rem;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 940px) {
  .company-footer__row { flex-wrap: wrap; }
}

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-map__image img { min-height: auto; height: auto; }
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem clamp(1rem, 3vw, 2rem);
  max-width: 71rem;
  padding-top: 1.1rem;
  margin-top: clamp(1.45rem, 4vw, 2.7rem);
  border-top: 1px solid #91bbcd65;
}

.resource-links a { color: #e3f3fa; }

.work-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.85rem, 2.3vw, 1.65rem);
  padding: 0;
  margin: 0;
  list-style: none;
}

.work-card {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid #739bb085;
  background: #062630;
}

.work-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.work-card span {
  display: block;
  padding: .85rem 1rem 1rem;
  font-weight: 650;
  line-height: 1.45;
}

.work-card:hover span { text-decoration: underline; }

.work-preview {
  width: min(64rem, calc(100% - 1.5rem));
  max-width: none;
  max-height: calc(100dvh - 1.5rem);
  padding: 0;
  border: 1px solid #7997a8;
  background: #041b25;
  color: var(--text);
}

.work-preview::backdrop { background: #00121de0; }

.work-preview figure { margin: 0; }

.work-preview__photo img {
  display: block;
  width: 100%;
  height: min(76dvh, 48rem);
  object-fit: contain;
}

.work-preview figcaption {
  padding: .85rem 1rem;
  text-align: center;
}

.work-preview__close { position: absolute; inset: .5rem .5rem auto auto; }

.work-preview__close button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  place-items: center;
  border: 1px solid #7798aa;
  border-radius: 50%;
  background: #082631;
  font-size: 1.65rem;
}

.faq-group { max-width: 53rem; }

.faq-group + .faq-group { margin-top: clamp(1.8rem, 5vw, 3.5rem); }

.faq-group h2 {
  margin-bottom: .75rem;
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.2;
}

.faq-item {
  border-bottom: 1px solid #86aebe6b;
  background: #041c2762;
}

.faq-item:first-of-type { border-top: 1px solid #86aebe6b; }

.faq-item summary {
  padding: .85rem 1rem;
  cursor: pointer;
  font-weight: 650;
  line-height: 1.45;
}

.faq-item summary::marker { color: #abdeef; }

.faq-item p {
  color: var(--muted);
  line-height: 1.65;
}

.faq-item p { padding: 0 1rem 1rem; }

.faq-item a { text-decoration: underline; text-underline-offset: .18em; }

@media (max-width: 940px) {
  .work-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 450px) {
  .work-gallery { grid-template-columns: minmax(0, 1fr); }
}


.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, .45fr);
  align-items: start;
  gap: clamp(1rem, 3vw, 2rem);
}

.order-box {
  min-width: 0;
  padding: clamp(1rem, 3vw, 1.8rem);
  border: 1px solid #739bb085;
  background: #062630;
}

.order-box h2 { font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.17; }
.order-box h3 { font-size: 1.2rem; }
.order-box p { line-height: 1.55; }
.order-box :is(h2, h3) + p { margin-top: .55rem; }
.order-fields + .order-fields { margin-top: 1.15rem; }

.order-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  margin: 0;
  padding: 0;
  gap: 1rem;
  border: 0;
}

.order-fields legend { padding: 0; margin-bottom: .85rem; font-size: 1.2rem; font-weight: 650; }
.order-wide { grid-column: 1 / -1; }

.order-input {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 0;
  font-size: .9rem;
}

.order-input > :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: .5rem .65rem;
  border: 1px solid #7d9fae;
  border-radius: 0;
  background: #041d28;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  color-scheme: dark;
}

.order-input textarea { resize: vertical; }
.order-input small { color: var(--muted); line-height: 1.45; }
.order-input input::placeholder, .order-input textarea::placeholder { color: #b0c5d0; }

.order-input input[type="file"] { font-size: .85rem; }

.order-check {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin-top: 1rem;
  font-size: .9rem;
  line-height: 1.5;
}

.order-check input { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin-top: .1rem; accent-color: #9cdeed; }
.order-box [hidden], .order-layout [hidden], .page-panel [hidden] { display: none; }

.order-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .7rem 1rem;
  margin-top: 1rem;
}

.order-box button.outline-button { min-height: 2.75rem; cursor: pointer; }
.order-box button:disabled { opacity: .63; cursor: wait; }
.order-message { margin-top: .8rem; color: #ffe0aa; }
.order-notes { display: grid; gap: .7rem; margin: .8rem 0 0; padding-left: 1.15rem; color: var(--muted); line-height: 1.55; }
.order-result { grid-column: 1; grid-row: 1; }
.order-metrics { display: grid; gap: .35rem; margin-top: .8rem; }
.order-metrics > div { display: flex; flex-wrap: wrap; gap: .2rem .55rem; }
.order-metrics dt { color: var(--muted); }
.order-metrics dd { margin: 0; overflow-wrap: anywhere; }
.order-amount { margin-top: .8rem; font-size: 1.55rem; font-weight: 650; }

.page-panel .interior { padding-block-start: clamp(1.7rem, 3.8vw, 3.8rem); }
.page-panel .interior__intro { margin-bottom: 1.3rem; }
.page-panel h1 { margin-top: .5rem; font-size: clamp(2.15rem, 5vw, 3.7rem); }

.panel-signin { max-width: 35rem; }
.panel-signin > button, .panel-form > button { margin-top: 1rem; }
.panel-form, .panel-filters { margin-top: 1rem; }

.panel-tariff {
  gap: .6rem;
  padding: clamp(.85rem, 2vw, 1.25rem);
  border: 1px solid #739bb085;
  background: #041d28;
}
.panel-tariff-label {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .3rem .65rem;
  color: var(--text);
  font-size: 1rem;
}
.panel-tariff-label > span { color: #b7deeb; font-weight: 650; }

.panel-bar, .panel-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.panel-bar {
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.panel-nav a {
  padding: .65rem .85rem;
  border: 1px solid transparent;
  border-radius: .2rem;
  color: var(--muted);
  font-weight: 650;
}
.panel-nav a:hover { color: var(--text); border-color: #739bb085; }
.panel-nav [aria-current="page"] { color: var(--text); background: #103645; border-color: #739bb085; }

.panel-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .85rem 1rem;
}
.panel-period-tabs { display: flex; flex-wrap: wrap; gap: .45rem; }
.panel-period-tabs button {
  min-height: 2.75rem;
  padding: .55rem .8rem;
  border: 1px solid #739bb085;
  border-radius: .2rem;
  background: #041d28;
  color: var(--muted);
  font: inherit;
  font-size: .9rem;
  font-weight: 650;
  cursor: pointer;
}
.panel-period-tabs button:hover, .panel-period-tabs [aria-pressed="true"] { color: var(--text); border-color: #9cdeed; }
.panel-period-tabs [aria-pressed="true"] { background: #103645; }
.panel-filter-dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 1 1 21rem;
  min-width: min(100%, 21rem);
  max-width: 28rem;
  gap: .75rem;
  margin: 0;
  padding: 0;
  border: 0;
}
.panel-filters .order-check { margin: 0; align-items: center; }
.panel-filters .order-check input { margin-top: 0; }
.panel-filter-actions {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem 1.1rem;
}
.panel-text-button { padding: .3rem 0; border: 0; background: none; cursor: pointer; }
.panel-text-button:disabled { opacity: .63; cursor: wait; }

.panel-orders-list { display: grid; gap: .55rem; margin: 1.15rem 0 0; padding: 0; list-style: none; }
.panel-order-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
  gap: .5rem 1rem;
  padding: .85rem .95rem;
  border: 1px solid #739bb085;
  background: #041d28;
}
.panel-order-link:hover { border-color: #a4d5e7; background: #0a2b38; }
.panel-order-link strong, .panel-order-link small { display: block; overflow-wrap: anywhere; }
.panel-order-link small { margin-top: .35rem; color: var(--muted); line-height: 1.4; }
.panel-order-link small span { margin-right: .55rem; }
.panel-order-badge {
  padding: .25rem .55rem;
  border: 1px solid #bb884c;
  border-radius: .2rem;
  color: #ffe0aa;
  font-size: .79rem;
  line-height: 1.3;
}
.panel-order-badge--processed { border-color: #609e97; color: #b6e4da; }
#panel-more { margin-top: 1rem; }

.panel-order h2 { margin-top: .7rem; }
.panel-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
  margin-block: 1.25rem;
}
.panel-calculation { margin-block: 1.25rem; padding-top: 1.1rem; border-top: 1px solid #739bb085; }
.panel-calculation details { margin-top: 1rem; }
.panel-calculation summary { cursor: pointer; }
.panel-order__photo {
  display: block;
  width: min(100%, 22rem);
  max-height: 22rem;
  margin-top: .85rem;
  object-fit: contain;
  object-position: left;
}
#panel-delivery { margin-top: .85rem; }
.panel-delete { color: #ffd1c2; }
#panel-order-state { align-items: end; }

@media (max-width: 620px) {
  .panel-card-grid, .panel-order-link { grid-template-columns: minmax(0, 1fr); }
  .panel-order-badge { justify-self: start; }
}

@media (max-width: 420px) {
  .panel-filter-dates { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .order-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .order-fields { grid-template-columns: minmax(0, 1fr); }
}

