:root {
  --ink: #111111;
  --muted: #6f7478;
  --line: #e8e8e8;
  --soft: #f8f8f6;
  --accent: #02c4b4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

#poptavka {
  scroll-margin-top: 190px;
}

body {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background: #ffffff;
  overflow-x: clip;
}

main {
  overflow-x: clip;
}

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

.navbar {
  min-height: 76px;
  backdrop-filter: blur(18px);
}

.navbar-brand img {
  width: 172px;
  height: auto;
}

.nav-link {
  color: var(--ink);
  font-size: .95rem;
}

.nav-link-static {
  cursor: default;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--accent);
}

.nav-services {
  position: relative;
}

.services-menu {
  position: absolute;
  top: 100%;
  left: -18px;
  z-index: 30;
  min-width: 250px;
  padding: 10px;
  margin: 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(17, 17, 17, .08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.nav-services:hover .services-menu,
.nav-services:focus-within .services-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.services-menu a {
  display: block;
  padding: 9px 10px;
  color: var(--ink);
  border-radius: 6px;
  font-size: .92rem;
}

.services-menu a:hover,
.services-menu a:focus {
  color: var(--accent);
  background: var(--soft);
}

.btn {
  border-radius: 999px;
  font-weight: 600;
}

.btn-dark {
  background: var(--ink);
  border-color: var(--ink);
}

.btn-outline-dark {
  border-color: var(--line);
}

.btn-outline-dark:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.section-pad {
  padding: 112px 0;
}

.bg-soft {
  background: var(--soft);
}

.eyebrow {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 700;
}

h3 {
  font-size: 1.18rem;
  font-weight: 700;
}

.lead {
  color: var(--muted);
  max-width: 610px;
  font-size: 1.2rem;
}

.hero {
  padding: 100px 0 36px;
}

.hero .container {
  max-width: 1600px;
}

.hero-frame {
  position: relative;
  height: clamp(520px, 41vw, 680px);
  min-height: 520px;
  overflow: hidden;
  background: var(--soft);
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .78) 22%, rgba(255, 255, 255, .18) 48%, rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
}

.home-hero-frame {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .68) 42%, rgba(255, 255, 255, .08)),
    url("../images/home-kuchyne-hero.jpg") center / cover no-repeat;
}

.home-hero-frame::before {
  content: none;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--soft);
}

.hero-copy {
  position: absolute;
  top: 50%;
  left: clamp(32px, 16vw, 250px);
  z-index: 2;
  max-width: 430px;
  transform: translateY(-50%);
}

.hero-copy h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 2.4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.16;
}

.hero-copy p {
  max-width: 360px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 1rem;
}

.hero-copy .btn {
  padding: .72rem 1.1rem;
  border-radius: 0;
  font-size: .95rem;
}

.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-head p:last-child {
  color: var(--muted);
  max-width: 640px;
  margin-top: 18px;
}

.home-services .container {
  max-width: 1480px;
}

.home-services-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.home-services-head p {
  margin: 0;
  color: #3f4448;
  font-size: 1.05rem;
  line-height: 1.7;
}

.home-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.home-service-card {
  display: block;
  min-height: 272px;
  padding: 18px 42px 34px;
  color: inherit;
  text-decoration: none;
}

.home-service-card:not(:nth-child(4n + 1)) {
  border-left: 1px solid var(--line);
}

.home-service-card:nth-child(n + 5) {
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.home-service-icon {
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 26px;
  color: #00636d;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-service-card h3 {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.22;
}

.home-service-card h3::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin: 20px 0 20px;
  background: var(--accent);
}

.home-service-card p {
  max-width: 270px;
  margin: 0;
  color: #555b60;
  font-size: 1rem;
  line-height: 1.65;
}

.home-service-card:hover,
.home-service-card:focus-visible {
  color: var(--ink);
}

.home-service-card:hover .home-service-icon,
.home-service-card:focus-visible .home-service-icon {
  color: var(--accent);
}

.home-services-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  max-width: 940px;
  margin: 58px auto 0;
}

.home-services-cta svg {
  width: 46px;
  height: 46px;
  color: #00636d;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-services-cta h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.home-services-cta p {
  margin: 0;
  color: var(--muted);
}

.home-services-cta .btn {
  min-width: 196px;
  padding: .74rem 1.15rem;
  color: #00636d;
  border-color: #00636d;
  border-radius: 8px;
}

.home-services-cta .btn:hover,
.home-services-cta .btn:focus-visible {
  color: #ffffff;
  background: #00636d;
  border-color: #00636d;
}

.service-card {
  display: block;
  min-height: 270px;
  height: 100%;
  padding: 30px;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.service-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 34px;
  color: var(--accent);
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.service-card p {
  color: var(--muted);
  margin: 16px 0 0;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(2, 196, 180, .45);
  box-shadow: 0 22px 60px rgba(17, 17, 17, .07);
}

.reference-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.reference-strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 34px;
  background: #ffffff;
  filter: grayscale(1);
  opacity: .7;
  transition: filter .2s ease, opacity .2s ease;
}

.reference-strip img:hover {
  filter: grayscale(0);
  opacity: 1;
}

.studio-photo {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: 8px;
}

.process-list {
  display: grid;
  gap: 18px;
}

.process-list div {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.process-list span {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.process-list p {
  margin: 0;
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-card,
.showroom,
.inquiry-form {
  display: block;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.contact-card {
  color: var(--ink);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 12px 0 0;
}

.contact-list .contact-card .contact-links a {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.contact-list .contact-card .contact-links a:hover {
  color: var(--accent);
}

.contact-note {
  margin: 10px 0 0;
  color: var(--muted);
}

.contact-list span,
.showroom span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.showroom p {
  color: var(--muted);
}

.inquiry-form {
  padding: 34px;
  background: var(--soft);
}

.form-label {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
}

.form-control,
.form-select {
  min-height: 52px;
  border-color: var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem rgba(2, 196, 180, .15);
}

.form-status {
  color: var(--muted);
  font-weight: 600;
}

.form-status.is-loading {
  color: var(--muted);
}

.form-status.is-success {
  color: #167348;
}

.form-status.is-error {
  color: #b42318;
}

footer {
  color: var(--muted);
  background: #ffffff;
}

.footer-links {
  row-gap: 10px;
}

footer a:hover {
  color: var(--accent);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--ink);
  border: 0;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding: 20px 0;
  }

  .services-menu {
    position: static;
    min-width: 0;
    padding: 4px 0 4px 16px;
    margin: 0;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .services-menu a {
    padding: 7px 0;
    border-radius: 0;
  }

  .services-menu a:hover,
  .services-menu a:focus {
    background: transparent;
  }

  .section-pad {
    padding: 82px 0;
  }

  .hero {
    padding-top: 92px;
  }

  .hero-frame {
    height: 560px;
    min-height: 560px;
  }

  .hero-copy {
    left: 42px;
  }

  .reference-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-service-card {
    min-height: 250px;
    padding: 24px 28px 30px;
  }

  .home-service-card:not(:nth-child(4n + 1)) {
    border-left: 0;
  }

  .home-service-card:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .home-service-card:nth-child(n + 3) {
    padding-top: 34px;
    border-top: 1px solid var(--line);
  }

  .home-services-cta {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .home-services-cta .btn {
    grid-column: 2;
    width: fit-content;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand img {
    width: 142px;
  }

  .hero {
    padding-top: 86px;
  }

  .hero-frame {
    height: 500px;
    min-height: 500px;
  }

  .hero-frame::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .86) 42%, rgba(255, 255, 255, .28) 100%);
  }

  .home-hero-frame {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .76)),
      url("../images/home-kuchyne-hero.jpg") center / cover no-repeat;
  }

  .hero-copy {
    left: 24px;
    right: 24px;
    max-width: none;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .service-card {
    min-height: auto;
    padding: 24px;
  }

  .home-services-head {
    margin-bottom: 34px;
  }

  .home-services-grid {
    grid-template-columns: 1fr;
  }

  .home-service-card {
    min-height: 0;
    padding: 0 0 28px;
    border-left: 0;
  }

  .home-service-card:not(:nth-child(4n + 1)),
  .home-service-card:nth-child(even) {
    border-left: 0;
  }

  .home-service-card:nth-child(n + 2) {
    padding-top: 28px;
    border-top: 1px solid var(--line);
  }

  .home-service-card p {
    max-width: none;
  }

  .home-services-cta {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 38px;
  }

  .home-services-cta .btn {
    grid-column: auto;
    width: 100%;
  }

  .reference-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reference-strip img {
    padding: 24px;
  }

  .studio-photo {
    min-height: 360px;
  }

  .inquiry-form {
    padding: 24px;
  }
}

.service-detail {
  background: #ffffff;
}

.service-hero {
  padding: 132px 0 56px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.service-hero-plain {
  padding-bottom: 72px;
}

.service-hero-narrow {
  max-width: 760px;
}

.contact-hero,
.about-hero,
.reference-hero {
  position: relative;
  height: 520px;
  display: flex;
  align-items: flex-end;
  padding: 150px 0 76px;
  overflow: hidden;
  color: var(--ink);
}

.contact-hero {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .68) 45%, rgba(255, 255, 255, .16)),
    url("../images/kontakt-showroom-hero.png") center / cover no-repeat;
}

.contact-hero .service-hero-narrow {
  max-width: 620px;
}

.contact-hero .service-breadcrumb,
.contact-hero .service-lead {
  color: rgba(17, 17, 17, .72);
}

.contact-page .contact-hero h1 {
  max-width: 620px;
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.6vw, 3.8rem);
}

.about-hero {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .68) 45%, rgba(255, 255, 255, .16)),
    url("../images/o-nas-hero-interier-rapotin.jpg") center / cover no-repeat;
}

.reference-hero {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .68) 45%, rgba(255, 255, 255, .16)),
    url("../images/reference-hero.jpg") center / cover no-repeat;
}

.about-hero .service-hero-narrow,
.reference-hero .service-hero-narrow {
  max-width: 620px;
}

.about-hero .service-breadcrumb,
.about-hero .service-lead,
.reference-hero .service-breadcrumb,
.reference-hero .service-lead {
  color: rgba(17, 17, 17, .72);
}

.about-page .about-hero h1,
.references-page .reference-hero h1 {
  max-width: 620px;
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.6vw, 3.8rem);
}

.service-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: .9rem;
}

.service-breadcrumb a:hover {
  color: var(--accent);
}

.service-detail h1 {
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.service-lead {
  max-width: 640px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
}

.service-hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #ffffff;
}

.service-content .container {
  display: grid;
  gap: 54px;
}

.service-text {
  max-width: 900px;
}

.service-text p {
  color: var(--muted);
  font-size: 1.08rem;
}

.service-text p:last-child {
  margin-bottom: 0;
}

.service-text h2,
.service-panel h2,
.service-split h2,
.service-gallery h2 {
  margin-bottom: 22px;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
}

.service-panel,
.service-note,
.machine-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.service-panel {
  padding: 34px;
}

.service-offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.service-offer-grid > div {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.service-offer-grid h3,
.service-note h3,
.machine-grid h2 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.service-offer-grid p,
.service-note p,
.machine-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.service-list li {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  font-weight: 700;
}

.service-list-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-list-wide li {
  font-weight: 400;
}

.paint-offer-panel {
  padding: 0;
  border: 0;
}

.paint-offer-panel h2 {
  margin-bottom: 34px;
}

.paint-offer-panel h2::after,
.surface-harmony-copy h2::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 24px;
  background: var(--accent);
}

.paint-offer-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.paint-offer-list-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.paint-offer-list li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-height: 118px;
  padding: 0 30px;
  border-right: 1px solid var(--line);
}

.paint-offer-list li:first-child {
  padding-left: 0;
}

.paint-offer-list li:last-child {
  padding-right: 0;
  border-right: 0;
}

.paint-offer-list svg {
  width: 50px;
  height: 50px;
  color: #00636d;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.paint-offer-list h3 {
  margin-bottom: 16px;
  font-size: 1.08rem;
  line-height: 1.28;
}

.paint-offer-list p {
  margin: 0;
  color: var(--muted);
}

.service-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 32px;
  align-items: start;
}

.service-split p {
  color: var(--muted);
  font-size: 1.04rem;
}

.service-note {
  padding: 28px;
  background: var(--soft);
}

.surface-harmony {
  display: grid;
  grid-template-columns: minmax(310px, .78fr) minmax(0, 1.22fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  margin: -8px -999px -112px;
  padding: 68px 999px 28px;
  background: var(--soft);
}

.surface-harmony-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 3.4vw, 3.15rem);
}

.surface-harmony-copy h2::before {
  margin: 0 0 26px;
}

.surface-harmony-copy p {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.06rem;
}

.surface-harmony-copy .btn {
  margin-top: 10px;
  padding: .78rem 1.18rem;
  border-radius: 6px;
}

.surface-harmony-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.92 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #ffffff;
}

.about-content .service-note {
  display: block;
  color: inherit;
  text-decoration: none;
}

.about-content .service-note img {
  display: block;
  width: min(210px, 100%);
  height: auto;
  margin-bottom: 18px;
}

.about-content .service-note:hover,
.about-content .service-note:focus {
  border-color: rgba(34, 34, 34, .28);
}

.service-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: var(--soft);
}

.machine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.machine-grid article {
  padding: 30px;
}

.machine-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}

.machine-link:hover,
.machine-link:focus {
  color: var(--accent);
}

.machine-image {
  object-fit: contain;
  padding: 28px;
  background: #ffffff;
}

.machine-specs {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.machine-specs h2 {
  margin-bottom: 22px;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
}

.machine-specs dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.machine-specs dl > div {
  padding: 18px;
  background: var(--soft);
}

.machine-specs dt {
  margin-bottom: 6px;
  font-weight: 700;
}

.machine-specs dd {
  margin: 0;
  color: var(--muted);
}

.service-cta {
  padding: 58px 0;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.service-cta .container {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.service-cta h2 {
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.service-cta p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.service-cta-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.about-content {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  gap: 34px;
  align-items: start;
  margin-bottom: 54px;
}

.about-reference-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.about-reference-grid > img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 32px;
  background: #ffffff;
  filter: grayscale(1);
  opacity: .78;
}

.about-reference-feature {
  display: flex;
  grid-column: span 2;
  min-height: 100%;
  align-items: center;
  gap: 24px;
  padding: 30px;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
}

.about-reference-feature img {
  display: block;
  width: min(190px, 42%);
  height: auto;
  flex: 0 0 auto;
}

.about-reference-feature h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.about-reference-feature p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.reference-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  margin: 0 0 34px;
}

.reference-gallery-item {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  cursor: pointer;
}

.reference-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reference-gallery-item:hover,
.reference-gallery-item:focus-visible {
  border-color: rgba(28, 24, 20, .38);
}

.reference-lightbox[hidden] {
  display: none;
}

.reference-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 17, 17, .84);
}

.reference-lightbox img {
  display: block;
  max-width: min(1120px, 100%);
  max-height: calc(100vh - 88px);
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
}

.reference-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
  background: rgba(17, 17, 17, .7);
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.reference-lightbox-close:hover,
.reference-lightbox-close:focus-visible {
  background: rgba(17, 17, 17, .9);
}

.has-lightbox-open {
  overflow: hidden;
}

.google-reviews {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 28px;
  align-items: center;
  margin-top: 42px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.google-reviews h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.google-reviews p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.google-review-score {
  min-width: 170px;
  text-align: center;
}

.google-review-score span {
  display: block;
  color: var(--ink);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.google-review-score strong {
  display: block;
  margin: 8px 0 4px;
  color: #f5a623;
  font-size: 1rem;
  letter-spacing: 1px;
}

.google-review-score p {
  font-size: .9rem;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.partner-card {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #ffffff;
  text-decoration: none;
  transition: background .2s ease;
}

.partner-card:hover,
.partner-card:focus {
  background: #fbfbfa;
}

.partner-logo-image {
  display: block;
  width: auto;
  max-width: 178px;
  max-height: 62px;
  object-fit: contain;
  opacity: .92;
  transition: opacity .2s ease;
}

.partner-card:hover .partner-logo-image,
.partner-card:focus .partner-logo-image {
  opacity: 1;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 32px;
}

.contact-page-panel,
.billing-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.contact-page-panel p,
.billing-panel dd {
  color: var(--muted);
}

.contact-map {
  display: block;
  width: 100%;
  height: 320px;
  margin-top: 22px;
  border: 0;
  border-radius: 8px;
}

.contact-section-title {
  margin: 0 0 16px;
}

.contact-form + .billing-title {
  margin-top: 74px;
}

.billing-title + .billing-panel {
  margin-bottom: 0;
}

.billing-title {
  margin-bottom: 38px;
  font-size: clamp(2.3rem, 5vw, 4.1rem);
}

.billing-title::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 22px;
  background: var(--accent);
}

.billing-panel {
  margin-bottom: 32px;
  padding: 44px 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.billing-panel dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  background: #ffffff;
}

.billing-panel dl > div {
  min-height: 190px;
  padding: 14px 40px 0;
}

.billing-panel dl > div + div {
  border-left: 1px solid var(--line);
}

.billing-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  margin: 0 0 34px;
  color: #00636d;
  border-radius: 50%;
  background: #f3f3f1;
}

.billing-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.billing-panel dt {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 700;
}

.billing-panel dd {
  margin: 0;
  color: #5f6670;
  font-size: 1.04rem;
  line-height: 1.55;
}

.billing-id-stack {
  display: grid;
  gap: 16px;
}

.billing-id-stack dt {
  margin-bottom: 8px;
}

.billing-account {
  white-space: nowrap;
}

.contact-form {
  max-width: none;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.download-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.download-card h2 {
  margin-bottom: 16px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.download-card p {
  color: var(--muted);
}

.download-links {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.download-links a {
  width: fit-content;
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}

.download-links a:hover,
.download-links a:focus {
  color: var(--accent);
}

.legal-page .service-hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 4rem);
}

.legal-content {
  max-width: 980px;
  color: var(--muted);
}

.legal-content > p:first-child {
  padding: 26px;
  color: var(--ink);
  text-align: left !important;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.legal-content h4 {
  margin: 42px 0 16px;
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.25;
}

.legal-content ol {
  display: grid;
  gap: 10px;
  padding-left: 24px;
}

.legal-content li {
  padding-left: 4px;
}

.legal-content a {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}

.legal-content a:hover,
.legal-content a:focus {
  color: var(--accent);
}

@media (max-width: 991.98px) {
  .service-hero {
    padding-top: 116px;
  }

  .contact-hero,
  .about-hero,
  .reference-hero {
    height: 460px;
    padding: 126px 0 58px;
  }

  .service-offer-grid,
  .service-list,
  .service-list-wide,
  .paint-offer-list,
  .service-split,
  .surface-harmony,
  .machine-grid {
    grid-template-columns: 1fr;
  }

  .paint-offer-list {
    gap: 24px;
  }

  .paint-offer-list li {
    min-height: 0;
    padding: 0 0 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .paint-offer-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .surface-harmony {
    margin-bottom: -82px;
    padding-top: 58px;
  }

  .service-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .machine-specs dl {
    grid-template-columns: 1fr;
  }

  .service-cta .container {
    display: block;
  }

  .service-cta-actions {
    margin-top: 22px;
  }

  .about-content,
  .contact-page-grid,
  .billing-panel dl,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .billing-panel {
    padding: 30px;
  }

  .billing-panel dl > div {
    min-height: 0;
    padding: 0 0 28px;
  }

  .billing-panel dl > div + div {
    padding-top: 28px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .billing-panel dl > div:last-child {
    padding-bottom: 0;
  }

  .billing-icon {
    margin-bottom: 20px;
  }

  .billing-account {
    white-space: normal;
  }

  .about-reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reference-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .google-reviews {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .google-review-score {
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  .service-hero {
    padding-top: 104px;
  }

  .contact-hero {
    height: 420px;
    padding: 112px 0 46px;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .72)),
      url("../images/kontakt-showroom-hero.png") center / cover no-repeat;
  }

  .about-hero {
    height: 420px;
    padding: 112px 0 46px;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .72)),
      url("../images/o-nas-hero-interier-rapotin.jpg") center / cover no-repeat;
  }

  .reference-hero {
    height: 420px;
    padding: 112px 0 46px;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .72)),
      url("../images/reference-hero.jpg") center / cover no-repeat;
  }

  .service-panel,
  .service-note,
  .machine-grid article {
    padding: 24px;
  }

  .billing-title {
    margin-bottom: 28px;
  }

  .billing-panel {
    padding: 24px;
  }

  .billing-icon {
    width: 60px;
    height: 60px;
  }

  .billing-icon svg {
    width: 30px;
    height: 30px;
  }

  .paint-offer-panel {
    padding: 0;
  }

  .paint-offer-list li {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
  }

  .paint-offer-list svg {
    width: 42px;
    height: 42px;
  }

  .surface-harmony {
    margin-bottom: -82px;
    padding-top: 48px;
    padding-bottom: 24px;
  }

  .surface-harmony-image {
    aspect-ratio: 4 / 3;
  }

  .service-gallery-grid {
    grid-template-columns: 1fr;
  }

  .about-reference-grid {
    grid-template-columns: 1fr;
  }

  .about-reference-feature {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
  }

  .about-reference-feature img {
    width: 190px;
    max-width: 100%;
  }

  .partner-grid {
    grid-template-columns: 1fr;
  }

  .reference-gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .reference-lightbox {
    padding: 14px;
  }

  .reference-lightbox img {
    max-height: calc(100vh - 72px);
  }

  .reference-lightbox-close {
    top: 14px;
    right: 14px;
  }
}
