:root {
  color-scheme: light;
  --paper: #f4f4f2;
  --ink: #121618;
  --muted: #535959;
  --signal: #ff7a1f;
  --edge: clamp(1.15rem, 5vw, 6rem);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --cut: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 system-ui, sans-serif; }
h1, h2, p, figure { margin: 0; }
p, dd, .service-scope li { text-wrap: pretty; }
a { color: inherit; text-underline-offset: .26em; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
img { display: block; max-width: 100%; }
.wrap { max-width: 100rem; margin-inline: auto; padding-inline: var(--edge); }
.skip { position: absolute; z-index: 2; inset: .75rem auto auto .75rem; background: var(--paper); padding: .7rem; transform: translateY(-150%); }
.skip:focus { transform: none; }
.header-band { background: var(--ink); color: var(--paper); }
.header { min-height: 5.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; }
.brand { display: grid; align-items: center; width: clamp(9rem, 18vw, 15rem); min-height: 44px; }
.brand img { height: auto; }
.header nav { display: flex; flex-wrap: wrap; gap: .25rem 1.6rem; }
.header nav a, .header-phone { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.header-phone { white-space: nowrap; font-weight: 650; }
.hero { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); background: var(--signal); }
.hero-copy { align-self: center; padding: clamp(2.3rem, 6vw, 7rem) 1rem clamp(2.3rem, 6vw, 7rem) max(var(--edge), calc((100vw - 100rem) / 2 + var(--edge))); }
h1, h2 { font-weight: 730; line-height: 1.02; letter-spacing: -.065em; }
h1 { font-size: clamp(2.7rem, 5.6vw, 6.5rem); }
h2 { font-size: clamp(2.25rem, 4.6vw, 4.6rem); }
.hero-copy p { max-width: 33ch; margin: 1.35rem 0 1.6rem; font-size: clamp(1.05rem, 1.5vw, 1.35rem); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: .85rem; width: fit-content; padding: .95rem 1.1rem; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 650; clip-path: var(--cut); }
.button:focus-visible { outline-offset: -6px; }
.button:active { transform: translateY(1px); }
.hero-image { position: relative; min-height: 30rem; background: var(--ink); clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%, 0 15%); }
.hero-image img { width: 100%; height: 100%; position: absolute; object-fit: cover; }
figcaption { position: absolute; bottom: .7rem; right: .7rem; background: var(--ink); color: var(--paper); padding: .25rem .5rem; font-size: .8125rem; }
.services { padding-block: clamp(3.5rem, 8vw, 7rem); }
.intro { margin-top: 1.1rem; color: var(--muted); max-width: 49ch; font-size: 1.1rem; }
.contact-band { background: var(--ink); color: var(--paper); }
.contact { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.contact p { margin-top: 1.2rem; font-size: 1.13rem; }
.contact-actions { display: grid; justify-items: start; gap: .8rem; }
.contact-phone { font-size: 1.5rem; font-weight: 650; }
.contact .button { background: var(--signal); color: var(--ink); }
.footer { padding-block: 1.1rem; font-weight: 650; }

@media (hover: hover) and (pointer: fine) {
  .button { transition: transform 160ms var(--ease-out); }
  .button:hover { transform: translateY(-2px); }
  .header a:hover { text-decoration: underline; }
}

@media (min-width: 48rem) and (prefers-reduced-motion: no-preference) {
  .hero-image img { animation: settle 300ms var(--ease-out) both; }
  @keyframes settle { from { transform: scale(1.035); } }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:hover, .button:active { transform: none; }
}

@media (max-width: 47.99rem) {
  .header { min-height: 4.1rem; flex-wrap: wrap; gap: 0 .75rem; }
  .header nav { gap: .6rem; }
  .header-phone { display: none; }
  .hero, .contact { grid-template-columns: 1fr; }
  .hero-copy { padding-inline: var(--edge); }
  .hero-image { min-height: 0; aspect-ratio: 1.45; clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%, 0 14%); }
}

.service-hero { background: var(--signal); }
.service-hero .wrap { padding-block: clamp(3rem, 8vw, 7rem); }
.service-hero p { max-width: 48ch; margin: 1.2rem 0 1.5rem; font-size: 1.15rem; }
.service-article { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3rem, 7vw, 6rem); }
.service-article h2 { font-size: clamp(1.85rem, 3.1vw, 3.4rem); }
.service-article h2 + p { margin-top: 1.25rem; }
.service-article dd { margin: .25rem 0 1.25rem; }
.service-article dt { font-size: 1.13rem; font-weight: 650; }

@media (max-width: 47.99rem) {
  .service-article { grid-template-columns: 1fr; }
  .service-hero h1 { font-size: clamp(2rem, 8.7vw, 4rem); }
}

.price-list { padding-block: clamp(2.5rem, 6vw, 6rem); }
.price-list table { width: min(100%, 52rem); border-collapse: collapse; margin-bottom: 2.25rem; }
.price-list caption { text-align: left; font-weight: 730; font-size: clamp(1.3rem, 3vw, 2rem); margin-bottom: .5rem; }
.price-list th, .price-list td { padding: .7rem 0; border-bottom: 1px solid #d1d3cf; }
.price-list th { text-align: left; font-weight: 550; padding-right: .75rem; }
.price-list td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.service-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}
.service-catalog-extra { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .75rem; }
.service-catalog li { display: flex; }
.service-catalog a {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  width: 100%;
  padding: clamp(1rem, 2.5vw, 1.8rem);
  background: #e8e9e7;
  text-decoration: none;
}
.service-catalog h3 {
  display: flex;
  justify-content: space-between;
  gap: .6rem;
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.2;
}
.service-catalog h3 [aria-hidden] { flex: none; }
.service-price { margin-top: auto; padding-top: .4rem; font-weight: 650; }
.service-note { margin-top: 1rem; color: var(--muted); }

@media (hover: hover) and (pointer: fine) {
  .service-catalog a:hover h3 { text-decoration: underline; }
}

@media (max-width: 59.99rem) {
  .service-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 35.99rem) {
  .service-catalog { grid-template-columns: 1fr; }
}

.home-hero .hero-copy {
  z-index: 1;
  padding-right: clamp(1.25rem, 3vw, 3.5rem);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1.4rem; }
.hero-services, .hero-address, .catalog-heading > a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  width: fit-content;
  font-weight: 650;
}
.hero-address { margin-top: .65rem; }
.catalog-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1.5rem; }
.service-catalog a { background: #e5e7e4; }
.service-catalog h3 [aria-hidden] { color: var(--muted); }
.service-price { font-variant-numeric: tabular-nums; }
#contacts .contact-actions { align-self: center; }
#contacts .contact-phone { display: inline-flex; align-items: center; min-height: 44px; }

@media (hover: hover) and (pointer: fine) {
  .service-catalog a:hover { background: #dce0db; }
  .service-catalog h3 [aria-hidden] { transition: transform 160ms var(--ease-out); }
  .service-catalog a:hover h3 span { transform: translate(2px, -2px); }
}

@media (prefers-reduced-motion: reduce) {
  .service-catalog h3 [aria-hidden] { transition: none; }
  .service-catalog a:hover h3 span { transform: none; }
}

@media (max-width: 47.99rem) {
  .home-hero .hero-copy { padding-right: var(--edge); }
  .hero-address { margin-top: .25rem; }
}

.service-hero:has(.service-quote) > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.8rem, 5vw, 5rem);
}
.service-heading h1 { font-size: clamp(2.2rem, 4.8vw, 5rem); text-wrap: balance; }
.service-heading p { margin-bottom: 0; }
.service-back, .service-full-price {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 44px;
  font-weight: 650;
}
.service-back { margin-top: .65rem; }
.service-quote {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(1.15rem, 3vw, 2rem);
}
.service-quote h2 { font-size: clamp(1.25rem, 2.1vw, 1.7rem); letter-spacing: -.03em; }
.service-quote dl { margin: .85rem 0 0; }
.service-quote dl div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .2rem .8rem;
  padding-block: .45rem;
}
.service-quote dd { margin: 0; font-weight: 730; white-space: nowrap; }
.service-quote p { margin: .85rem 0 1.1rem; font-size: 1rem; color: var(--muted); }
.service-full-price { margin-left: .7rem; }

@media (max-width: 47.99rem) {
  .service-hero:has(.service-quote) > .wrap { grid-template-columns: 1fr; padding-block: 1.5rem 2.1rem; }
  .service-heading h1 { font-size: clamp(2.2rem, 8.5vw, 4rem); }
  .service-full-price { margin-left: 0; }
  .service-quote .button { display: flex; width: 100%; }
}

.waiting { padding-bottom: clamp(3rem, 7vw, 6.5rem); }
.waiting-panel {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(1.5rem, 5vw, 4.5rem);
  background: #e5e7e4;
  clip-path: var(--cut);
}
.waiting-intro h2 { font-size: clamp(2.2rem, 4.25vw, 4.2rem); }
.waiting-intro p { max-width: 32ch; margin-top: 1rem; font-size: 1.12rem; }
.waiting-amenities { display: grid; gap: 1.15rem; align-content: center; margin: 0; }
.waiting-amenities > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); align-items: baseline; gap: .2rem 1rem; }
.waiting-amenities dt { font-size: 1.15rem; font-weight: 700; }
.waiting-amenities dd { margin: 0; color: var(--muted); }

@media (max-width: 47.99rem) {
  .waiting-panel, .waiting-amenities > div { grid-template-columns: 1fr; }
  .waiting-panel { gap: 1.5rem; }
}

.telegram-button {
  background: var(--paper);
  color: var(--ink);
}
.service-quote .telegram-button {
  background: #e5e7e4;
  margin-top: .55rem;
}
.contact .telegram-button {
  background: var(--paper);
  color: var(--ink);
}

@media (max-width: 47.99rem) {
  .hero-actions > .button { width: 100%; max-width: 23rem; }
}

.about-service { padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.about-service h2 { font-size: clamp(2.1rem, 4vw, 4rem); }
.about-service p { max-width: 64ch; margin-top: 1rem; font-size: 1.12rem; }
.service-scope { grid-column: 1 / -1; }
.service-scope ul { max-width: 70ch; margin: 1rem 0 0; padding-left: 1.25rem; }
.service-scope li + li { margin-top: .55rem; }

.contact-with-photo { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; }
.contact-with-photo .contact-actions { margin-top: 1rem; }
.contact-entrance img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.7;
  object-fit: cover;
  object-position: center 40%;
  clip-path: var(--cut);
}
.contact-entrance figcaption {
  position: static;
  padding: .65rem 0 0;
  font-size: .9rem;
}
@media (max-width: 47.99rem) {
  .contact-with-photo { grid-template-columns: 1fr; }
}
