/* ПокрівляПро — demo one-pager
   Mobile-first. Breakpoints: 360px, 768px, 1200px. */

:root {
  --color-graphite: #1C1F22;
  --color-graphite-2: #2B2F33;
  --color-accent: #F5B800;
  --color-accent-dark: #C79300;
  --color-bg: #F4F3F1;
  --color-surface: #FFFFFF;
  --color-text: #1C1F22;
  --color-text-muted: #565C61;
  --color-border: #DDDBD7;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.55;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

img, svg {
  max-width: 100%;
  display: block;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 12px;
}

p {
  margin: 0 0 12px;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 40px 0;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js-reveal-enabled .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js-reveal-enabled .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 8px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-graphite);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-accent-dark);
  color: #FFFFFF;
}

.btn-large {
  width: 100%;
  margin-bottom: 20px;
}

.btn-small {
  min-height: 52px;
  padding: 10px 20px;
  font-size: 1rem;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--color-graphite);
  color: #FFFFFF;
  padding: 16px 0;
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.header-contact .btn-small {
  display: none;
}

/* ---------- Hero ---------- */

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

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-art {
  width: 100%;
  max-width: 300px;
  margin: 4px auto 0;
}

.hero-art svg {
  width: 100%;
  height: auto;
}

.hero h1 {
  font-size: clamp(1.6rem, 5vw + 1rem, 2.6rem);
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.trust-line {
  margin: 4px 0 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ---------- Section headings ---------- */

.section h2 {
  font-size: clamp(1.4rem, 3vw + 1rem, 2rem);
  margin-bottom: 24px;
}

.section-sub {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card .icon {
  width: 44px;
  height: 44px;
  color: var(--color-accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 4px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin: 0;
}

.service-price {
  font-weight: 800;
  color: var(--color-accent-dark);
  font-size: 1.05rem;
  margin: 0;
}

.service-card p:last-child {
  margin: 0;
  color: var(--color-text-muted);
}

/* ---------- Completed objects ---------- */

.objects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.object-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.object-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
}

.object-photo-light {
  background: #F4F3F1;
}

.object-photo-dark {
  background: var(--color-graphite-2);
}

.object-photo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.object-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
}

.object-caption {
  margin: 0;
  font-weight: 700;
}

/* ---------- Why us ---------- */

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.why-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.icon-why {
  width: 40px;
  height: 40px;
  color: var(--color-graphite);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-item h3 {
  font-size: 1.1rem;
  margin: 0;
}

.why-item p {
  margin: 0;
  color: var(--color-text-muted);
}

/* ---------- Reviews ---------- */

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 24px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.review-avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.review-avatar-a {
  background: var(--color-graphite);
  color: #FFFFFF;
}

.review-avatar-b {
  background: var(--color-accent);
  color: var(--color-graphite);
}

.review-name {
  font-size: 1.05rem;
  margin: 0;
}

.review-text {
  margin: 0;
  color: var(--color-text-muted);
}

/* ---------- Lead form ---------- */

.lead-form-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  padding: 14px;
  font-size: 1rem;
  font-family: inherit;
  background: #FFFFFF;
  color: var(--color-text);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent-dark);
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-success {
  background: var(--color-graphite-2);
  color: #FFFFFF;
  padding: 24px;
  border-radius: 10px;
}

.form-success p {
  margin: 0;
}

.form-alt {
  margin-top: 20px;
}

.form-alt a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-accent-dark);
  font-weight: 700;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-graphite);
  color: #FFFFFF;
  padding: 32px 0;
}

.footer-inner p {
  margin: 0 0 10px;
}

.site-footer a {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 2px;
  font-weight: 700;
  font-size: 1.05rem;
}

.footer-copy {
  margin-top: 16px;
  color: #B5BABF;
  font-size: 0.9rem;
}

/* ---------- Sticky mobile call bar ---------- */

.mobile-call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: var(--color-graphite);
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
}

.btn-bar {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: 8px;
}

.btn-bar-primary {
  background: var(--color-accent);
  color: var(--color-graphite);
}

.btn-bar-secondary {
  background: var(--color-graphite-2);
  color: #FFFFFF;
  border: 2px solid var(--color-accent);
}

/* ==========================================================
   360px — refine base mobile spacing, nothing structural
   ========================================================== */
@media (min-width: 360px) {
  .container {
    padding: 0 20px;
  }

  .btn-large {
    width: 100%;
  }

  .service-card,
  .review-card {
    padding: 28px;
  }

  .section {
    padding: 44px 0;
  }
}

/* ==========================================================
   768px — tablet / desktop layout
   ========================================================== */
@media (min-width: 768px) {
  .container {
    max-width: 760px;
    padding: 0 24px;
  }

  body {
    padding-bottom: 0;
  }

  .mobile-call-bar {
    display: none;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .header-contact {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }

  .header-contact .btn-small {
    display: inline-flex;
  }

  .hero {
    padding: 56px 0 64px;
  }

  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }

  .hero-text {
    flex: 1 1 auto;
    max-width: 520px;
  }

  .hero-art {
    flex: 0 0 auto;
    width: 320px;
    max-width: none;
    margin: 0;
  }

  .btn-large {
    width: auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .objects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .section {
    padding: 64px 0;
  }
}

/* ==========================================================
   1200px — wide desktop
   ========================================================== */
@media (min-width: 1200px) {
  .container {
    max-width: 1160px;
    padding: 0 32px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .objects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .why-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }

  .reviews-grid {
    gap: 32px;
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    padding: 72px 0 80px;
  }

  .hero-art {
    width: 380px;
  }
}
