:root {
  --ink: #171513;
  --muted: #645f57;
  --line: #ded8cc;
  --stone: #e7e1d6;
  --porcelain: #faf8f2;
  --tile: #d7e3e4;
  --tile-strong: #8aa4a6;
  --accent: #f3c747;
  --accent-dark: #9a6b00;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(25, 22, 18, 0.12);
  --radius: 8px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--porcelain);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: 840px;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 20;
  width: auto;
  height: auto;
  clip: auto;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--white);
  border: 2px solid var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 248, 242, 0.94);
  border-bottom: 1px solid rgba(23, 21, 19, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 150px;
  height: 56px;
  background: url("../img/pltka-logo2.png") center / contain no-repeat;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
  color: var(--muted);
  font-size: 15px;
}

.site-nav a {
  padding-block: 8px;
}

.nav-actions {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-callback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  white-space: nowrap;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--accent-dark);
}

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  white-space: nowrap;
}

.header-call {
  color: var(--ink);
  background: #ae9570;
  border: 1px solid #ae9570;
}

.header-callback {
  color: var(--ink);
  background: #ae9570;
  border: 1px solid #ae9570;
  cursor: pointer;
}

.header-callback:hover {
  border-color: #8f7655;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 78svh;
  padding: 76px 0 64px;
  overflow: hidden;
  color: var(--white);
  background: #201d19;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../img/hero-tile-realistic.jpg");
  background-image: image-set(
    url("../img/hero-tile-realistic.webp") type("image/webp"),
    url("../img/hero-tile-realistic.jpg") type("image/jpeg")
  );
  background-position: center;
  background-size: cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(17, 15, 12, 0.86), rgba(17, 15, 12, 0.58) 48%, rgba(17, 15, 12, 0.22)),
    rgba(17, 15, 12, 0.1);
}

.hero-content {
  max-width: 880px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ae9570;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.18;
}

.hero-text {
  max-width: 720px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 21px);
}

.hero-actions,
.footer-inner,
.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--ink);
  background: var(--accent);
  border-color: #d7ac20;
}

.hero .btn-primary,
.contact-section .btn-primary {
  background: #ae9570;
  border-color: #ae9570;
}

.hero .btn-primary:hover,
.contact-section .btn-primary:hover {
  border-color: #8f7655;
}

.btn-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
}

.lead-form .btn-secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  max-width: 660px;
  margin: 40px 0 0;
  padding: 0;
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats div {
  padding: 18px;
  background: rgba(17, 15, 12, 0.42);
}

.hero-stats dt {
  font-size: 28px;
  font-weight: 900;
}

.hero-stats dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.section {
  padding: clamp(72px, 9vw, 112px) 0;
}

.section:nth-of-type(even) {
  background: var(--white);
}

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

.section-head p,
.section-copy p,
.contact-info p,
.policy-content p {
  color: var(--muted);
  font-size: 18px;
}

.split,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.check-list,
.contact-list {
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}

.check-list li::before {
  position: absolute;
  top: 1px;
  left: 0;
  width: 20px;
  height: 20px;
  color: var(--ink);
  background: var(--accent);
  border-radius: 50%;
  content: "✓";
  font-size: 13px;
  font-weight: 900;
  line-height: 20px;
  text-align: center;
}

.master-card {
  margin: 0;
  overflow: hidden;
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.master-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background: var(--white);
}

.master-card span {
  color: var(--muted);
}

.service-grid,
.benefit-list,
.review-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.benefit-list article,
.review-grid blockquote,
.lead-form {
  margin: 0;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section:nth-of-type(even) .service-card,
.section:nth-of-type(even) .benefit-list article,
.section:nth-of-type(even) .review-grid blockquote {
  background: var(--porcelain);
}

.service-card p,
.benefit-list p,
.review-grid p,
.price-note {
  color: var(--muted);
}

.icon-dot {
  display: inline-block;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  background:
    linear-gradient(90deg, transparent 46%, rgba(23, 21, 19, 0.24) 47%, rgba(23, 21, 19, 0.24) 53%, transparent 54%),
    linear-gradient(0deg, transparent 46%, rgba(23, 21, 19, 0.24) 47%, rgba(23, 21, 19, 0.24) 53%, transparent 54%),
    #ae9570;
  border: 1px solid #ae9570;
}

.price-table {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.price-row:last-child {
  border-bottom: 0;
}

.price-row-head {
  color: var(--white);
  background: var(--ink);
  font-weight: 800;
}

.price-row strong {
  color: var(--accent-dark);
  white-space: nowrap;
}

.price-note {
  margin-top: 16px;
}

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

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.gallery-grid figcaption {
  padding: 16px 18px;
  font-weight: 800;
}

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

.review-grid blockquote {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
}

.review-grid cite {
  color: var(--accent-dark);
  font-style: normal;
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-list summary {
  padding: 20px 22px;
  font-weight: 800;
  cursor: pointer;
}

.faq-list p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
}

.contact-layout {
  align-items: start;
}

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

.contact-list a {
  color: var(--accent-dark);
  font-weight: 800;
}

.contact-social-row {
  display: grid;
  gap: 10px;
}

.map-wrap {
  overflow: hidden;
  height: 300px;
  margin-top: 28px;
  background: var(--stone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.form-stack {
  display: grid;
  gap: 18px;
}

.lead-form {
  box-shadow: var(--shadow);
}

.lead-form h3 {
  margin-bottom: 18px;
}

.lead-form label:not(.honeypot) {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 800;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(243, 199, 71, 0.28);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 700;
}

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

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

.site-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 0.8fr) minmax(220px, 1fr);
  align-items: start;
  gap: 28px;
}

.site-footer strong,
.footer-phone {
  color: var(--white);
}

.site-footer p {
  margin: 4px 0 0;
}

.footer-links,
.footer-contacts {
  display: grid;
  gap: 10px;
}

.footer-links a,
.footer-contacts a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover,
.footer-contacts a:hover {
  color: var(--accent);
}

.messenger-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.messenger-link,
.contact-list .messenger-link,
.footer-contacts .messenger-link {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  border: 0;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.messenger-link:hover,
.contact-list .messenger-link:hover,
.footer-contacts .messenger-link:hover {
  color: var(--white);
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.messenger-whatsapp {
  background: #25d366;
}

.messenger-viber {
  background: #7360f2;
}

.messenger-telegram {
  background: #229ed9;
}

.messenger-icons svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.mobile-sticky-call {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9;
  display: none;
  min-height: 48px;
  padding: 13px 18px;
  color: var(--ink);
  background: var(--accent);
  border: 1px solid #d7ac20;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(23, 21, 19, 0.24);
  font-weight: 900;
}

.policy-page {
  background: var(--white);
}

.policy-content h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.policy-content h2 {
  margin-top: 34px;
  font-size: 26px;
}

.policy-content a {
  color: var(--accent-dark);
  font-weight: 800;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 15, 12, 0.68);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.modal-form {
  padding-top: 34px;
}

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

body.modal-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 64px;
  }

  .brand-mark {
    width: 126px;
    height: 48px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 64px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .nav-actions {
    display: grid;
    gap: 10px;
    padding-top: 8px;
  }

  .nav-actions .header-callback {
    width: 100%;
  }

  .nav-actions .header-phone {
    justify-content: center;
    width: 100%;
  }

  .header-actions {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 32px;
  }

  .hero {
    padding-bottom: 48px;
  }

  .hero::after {
    background: rgba(17, 15, 12, 0.72);
  }

  .hero-actions,
  .hero-actions .btn,
  .lead-form .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .service-grid,
  .benefit-list {
    grid-template-columns: 1fr;
  }

  .price-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .master-card figcaption,
  .footer-inner {
    align-items: flex-start;
  }

  .mobile-sticky-call {
    display: inline-flex;
  }

  body {
    padding-bottom: 74px;
  }
}
