* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: #333;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.35;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 32px), 1200px);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #bfbfbf;
}

.topbar__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, auto) minmax(230px, 302px);
  align-items: center;
  min-height: 78px;
  padding: 11px 0;
  gap: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  font-size: 26px;
  line-height: 1.28;
}

.service-area { color: #267b23; font-size: 18px; font-weight: 700; text-align: right; }

.dot {
  color: #7dc473;
}

.phone-button,
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 32px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.phone-button {
  position: relative;
  justify-self: end;
  flex-direction: column;
  width: 100%;
  min-height: 58px;
  padding: 10px 0;
  overflow: hidden;
  background: #089508;
  border-radius: 10px;
  box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.25);
  gap: 4px;
}

.phone-button:hover {
  background: #087e08;
}

.phone-button::before {
  content: "";
  position: absolute;
  top: -45%;
  left: -45%;
  width: 34px;
  height: 190%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: rotate(24deg);
  animation: phone-shine 4s ease-in-out infinite;
}

.phone-button__label {
  position: relative;
  z-index: 1;
  font-size: 17px;
}

.phone-button__number {
  position: relative;
  z-index: 1;
  font-size: 25px;
  font-weight: 700;
}

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: 25px;
  padding-top: 17px;
}

.content {
  min-width: 0;
}

.gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  height: 350px;
  overflow: hidden;
  border-radius: 5px;
}
.gallery__main { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: scale-down; background: #f3f3f3; border-radius: 5px; }
.gallery__main[hidden], .gallery__arrow[hidden] { display: none; }
.gallery.is-single { grid-template-columns: minmax(0, 1fr); }

.gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 34px;
  height: 52px;
  transform: translateY(-50%);
  border: 0;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 42px;
  line-height: 1;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.gallery:hover .gallery__arrow {
  opacity: 1;
}

.gallery__arrow:hover {
  background: rgba(0, 0, 0, 0.38);
}

.gallery__arrow--prev {
  left: 0;
}

.gallery__arrow--next {
  right: 0;
}

.thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 4px;
  margin-top: 4px;
  height: 71px;
  overflow: hidden;
}

.thumb {
  padding: 0;
  border: 0;
  border-radius: 2px;
  opacity: 0.8;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.thumb.is-active,
.thumb:hover {
  opacity: 1;
}
.thumb.is-active { outline: 2px solid #05aaff; outline-offset: -2px; }

.card {
  margin-top: 17px;
  padding: 0 7px 8px;
  border: 1px solid #d4d4d4;
  border-radius: 10px;
  background: #fff;
  color: #333;
  box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.25);
}

.article h1 {
  margin: 7px 0 9px;
  font-family: Arial, sans-serif;
  font-size: 26px;
  line-height: 1.3;
}

.article {
  font-size: 16px;
}

.article p {
  margin: 0 0 14px;
}

.article strong {
  font-weight: 700;
}

.price-list {
  line-height: 1.45;
}

.sidebar {
  min-width: 0;
}

.cta {
  min-height: 44px;
  background: #05aaff;
  border-radius: 10px;
  box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.25);
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 16px;
  font-weight: 400;
}

.cta:hover {
  background: #0399e6;
}

.profile {
  padding: 16px 4px 12px;
  border-radius: 10px;
  color: #333;
}

.master {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  font-size: 16px;
}

.avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}

.master__name {
  display: inline-block;
  color: #0076a4;
  text-decoration: none;
  font-size: 16px;
  margin-bottom: 4px;
}

.muted {
  color: #555;
  font-size: 16px;
  margin-bottom: 4px;
}

.star {
  color: #aba000;
}

.check-card {
  display: grid;
  grid-template-columns: 31px 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  min-height: 57px;
  padding: 8px;
  border-radius: 10px;
  background: #c9edf9;
  color: #333;
  box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.25);
  font-size: 10px;
}

.check-card img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.check-card strong,
.check-card span {
  display: block;
}

.check-card strong {
  font-size: 14px;
}

.check-card span {
  font-size: 12px;
}

.info-card {
  margin-top: 12px;
  padding: 8px 14px;
  border: 1px solid #d4d4d4;
  border-radius: 10px;
  color: #333;
  box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.25);
  font-size: 16px;
}

.info-card div {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
}

.info-card span {
  color: #555;
}

.info-card strong {
  text-align: right;
  font-weight: 700;
}

.reviews {
  margin-top: 12px;
}

.reviews article {
  padding: 8px 14px 10px;
  border: 1px solid #d4d4d4;
  border-radius: 10px;
  margin-bottom: 8px;
  background: #fff;
  color: #333;
  box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.25);
  font-size: 16px;
}

.reviews h3 {
  margin: 0 0 2px;
  color: #666;
  font-size: 16px;
  font-weight: 400;
}

.reviews h3 span {
  color: #aba000;
}

.reviews time {
  display: block;
  margin-bottom: 8px;
  color: #555;
}

.reviews p {
  margin: 0;
}

.footer {
  padding: 18px 0 35px;
  color: #333;
  font-size: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 70px 16px 16px;
}

.modal.is-open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  padding: 18px 20px 16px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #333;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.modal h2 {
  margin: 22px 20px 18px;
  text-align: center;
  font-size: 18px;
  font-weight: 400;
}

.modal label {
  display: block;
  margin-bottom: 12px;
  color: #333;
}

.modal label span {
  color: #d50000;
}

.modal input {
  width: 100%;
  height: 44px;
  margin-top: 5px;
  border: 1px solid #cfcfcf;
  border-radius: 5px;
  padding: 6px 9px;
}

.cta--wide {
  min-height: 40px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
}

.modal p {
  margin: 12px 0 0;
  color: #777;
  text-align: center;
  font-size: 11px;
}

body.modal-open {
  overflow: hidden;
}

@keyframes phone-shine {
  0%,
  68% {
    left: -45%;
    opacity: 0;
  }

  72% {
    opacity: 1;
  }

  86% {
    left: 115%;
    opacity: 1;
  }

  100% {
    left: 115%;
    opacity: 0;
  }
}

@media (max-width: 820px) {
  .container {
    width: calc(100% - 24px);
  }
}

@media (max-width: 700px) {
  .topbar__inner,
  .page {
    grid-template-columns: 1fr;
  }

  .topbar__inner {
    gap: 10px;
    justify-items: center;
    padding: 12px 0;
  }

  .brand {
    text-align: center;
  }

  .brand {
    align-items: center;
  }

  .phone-button {
    justify-self: center;
    width: min(100%, 302px);
  }

  .page {
    padding-top: 12px;
  }

  .content,
  .sidebar {
    width: 100%;
  }

  .gallery {
    height: 58vw;
    max-height: 350px;
  }

  .thumbs {
    height: 58px;
  }

  .sidebar {
    order: -1;
  }

  .profile {
    padding-left: 0;
    padding-right: 0;
  }
}

.brand, .footer, .info-card, .article, .master { overflow-wrap: anywhere; }
.sidebar { min-width: 0; }
:focus-visible { outline: 3px solid #05aaff; outline-offset: 3px; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status[data-state="success"] { color: #267b23 !important; }
.form-status[data-state="error"] { color: #a02020 !important; }
.mobile-actions { display: none; }
.form-status { color: #333 !important; font-size: 14px !important; }
.modal__close { width: 44px; height: 44px; }

@media (max-width: 1000px) and (min-width: 701px) {
  .topbar__inner { grid-template-columns: minmax(0,1fr) minmax(230px,302px); }
  .brand { grid-column: 1 / -1; font-size: 24px; }
}
@media (max-width: 700px) {
  .topbar { position: static; }
  .topbar__inner { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; }
  .brand { grid-column: 1 / -1; font-size: clamp(18px,5vw,23px); }
  .phone-button { width: 100%; min-height: 54px; }
  .phone-button__label { font-size: 12px; }
  .phone-button__number { font-size: clamp(13px,4vw,20px); }
  .page { gap: 12px; }
  .content, .sidebar { display: contents; }
  .gallery { order: 1; height: auto; max-height: none; aspect-ratio: 875 / 350; gap: 6px; }
  .service-area { font-size: 16px; }
  .thumbs { order: 2; height: 60px; margin: -8px 0 0; grid-auto-columns: 68px; overflow-x: auto; overflow-y: hidden; padding-bottom: 8px; }
  .sidebar > .cta { order: 3; }
  .profile { order: 4; padding: 0; }
  .check-card { order: 5; margin: 0; }
  .article { order: 6; margin: 0; padding: 12px; }
  .info-card { order: 7; margin: 0; }
  .reviews { order: 8; margin: 0; }
  .gallery__arrow { opacity: 1; width: 44px; }
  .mobile-actions { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #ddd; box-shadow: 0 -2px 12px rgba(0,0,0,.1); }
  .mobile-actions > * { flex: 1; width: 0; min-height: 44px; }
  .mobile-actions a { background: #089508; }
  .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .modal { align-items: center; padding: 16px; }
  .modal__dialog { max-height: calc(100dvh - 32px); }
  .modal h2 { margin: 32px 12px 18px; }
}
@media (hover: none) { .gallery__arrow { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before { animation: none !important; transition: none !important; }
}
