/* ==========================================================================
   ПроРемонт — базові стилі
   ========================================================================== */

:root {
  --color-bg: #faf7f2;
  --color-bg-alt: #f1ece3;
  --color-dark: #201c19;
  --color-dark-soft: #3a332d;
  --color-text: #34302c;
  --color-text-muted: #6b6259;
  --color-accent: #d9662c;
  --color-accent-dark: #b94f1e;
  --color-accent-light: #f3d9c7;
  --color-white: #ffffff;
  --color-border: #e6ddd0;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(32, 28, 25, 0.06);
  --shadow-md: 0 8px 24px rgba(32, 28, 25, 0.1);
  --shadow-lg: 0 20px 48px rgba(32, 28, 25, 0.16);
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section--alt { background: var(--color-bg-alt); }
.section--dark { background: var(--color-dark); color: #efe9e2; }
.section--tight { padding: 56px 0; }

.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: var(--color-accent-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section--dark .eyebrow { background: rgba(217,102,44,.2); color: #f3b48a; }

h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.01em; }
h3 { font-size: 22px; }
.lead { font-size: 19px; color: var(--color-text-muted); }
.section--dark .lead { color: #cfc6bb; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--color-accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--color-accent-dark); box-shadow: var(--shadow-md); }
.btn--outline { background: transparent; border-color: var(--color-dark); color: var(--color-dark); }
.btn--outline:hover { background: var(--color-dark); color: #fff; }
.section--dark .btn--outline { border-color: #efe9e2; color: #efe9e2; }
.section--dark .btn--outline:hover { background: #efe9e2; color: var(--color-dark); }
.btn--light { background: #fff; color: var(--color-dark); }
.btn--light:hover { background: var(--color-accent-light); }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 14px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container-w);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--color-dark);
}
.logo__mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__list {
  display: flex;
  gap: 28px;
}
.nav__list a {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav__list a:hover,
.nav__list a[aria-current="page"] { color: var(--color-accent-dark); border-color: var(--color-accent); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { font-weight: 700; font-size: 15px; white-space: nowrap; }
.header-phone span { display: block; font-weight: 400; font-size: 12px; color: var(--color-text-muted); }
.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--color-dark); border-radius: 2px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 64px 0 96px;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero__stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero__stat strong { display: block; font-size: 28px; color: var(--color-accent-dark); }
.hero__stat span { font-size: 14px; color: var(--color-text-muted); }
.hero__actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.hero__media { position: relative; }
.hero__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 480px;
  object-fit: cover;
}
.hero__badge {
  position: absolute;
  left: -24px;
  bottom: -24px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 260px;
}
.hero__badge strong { display: block; font-size: 15px; }
.hero__badge span { font-size: 13px; color: var(--color-text-muted); }

/* ==========================================================================
   Logos / trust strip
   ========================================================================== */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 600;
}

/* ==========================================================================
   Cards grid — services / features
   ========================================================================== */
.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.card--photo { padding: 0; overflow: hidden; }
.card--photo img { width: 100%; height: 200px; object-fit: cover; }
.card--photo .card__body { padding: 24px; }
.card__price { color: var(--color-accent-dark); font-weight: 700; }

.link-arrow { font-weight: 700; color: var(--color-accent-dark); display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { text-decoration: underline; }

/* ==========================================================================
   Process / steps
   ========================================================================== */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}
.step:last-child { border-bottom: none; }
.step__num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}

/* ==========================================================================
   Portfolio
   ========================================================================== */
.portfolio-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.portfolio-item img { width: 100%; height: 280px; object-fit: cover; transition: transform .3s ease; }
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-item__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px;
  background: linear-gradient(0deg, rgba(0,0,0,.72), transparent);
  color: #fff;
}
.portfolio-item__caption span { display: block; font-size: 13px; opacity: .85; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-bar button {
  border: 1px solid var(--color-border);
  background: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}
.filter-bar button.is-active,
.filter-bar button:hover { background: var(--color-dark); color: #fff; border-color: var(--color-dark); }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.testimonial__stars { color: var(--color-accent); margin-bottom: 12px; letter-spacing: 2px; }
.testimonial__author { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.testimonial__author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial__author strong { display: block; font-size: 15px; }
.testimonial__author span { font-size: 13px; color: var(--color-text-muted); }

/* ==========================================================================
   Pricing table
   ========================================================================== */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-table th, .price-table td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--color-border); }
.price-table th { background: var(--color-dark); color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: var(--color-bg-alt); }
.price-note { font-size: 14px; color: var(--color-text-muted); margin-top: 16px; }

.pricing-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.pricing-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 36px 28px; text-align: center; }
.pricing-card--featured { border-color: var(--color-accent); box-shadow: var(--shadow-md); position: relative; transform: translateY(-8px); }
.pricing-card__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--color-accent); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 999px; }
.pricing-card__price { font-size: 36px; font-weight: 800; color: var(--color-accent-dark); margin: 12px 0; }
.pricing-card__price small { font-size: 14px; font-weight: 500; color: var(--color-text-muted); }
.pricing-card ul { text-align: left; margin: 24px 0; }
.pricing-card ul li { padding: 8px 0; border-bottom: 1px dashed var(--color-border); font-size: 14px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-item { border-bottom: 1px solid var(--color-border); padding: 20px 0; }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 24px; color: var(--color-accent); flex-shrink: 0; margin-left: 16px; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 14px; color: var(--color-text-muted); }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  background: var(--color-bg);
  transition: border-color .15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: none; border-color: var(--color-accent); }
.form-field textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--color-text-muted); margin-bottom: 20px; }
.form-consent input { width: auto; margin-top: 3px; }
.form-consent a { text-decoration: underline; }
.form-note { font-size: 13px; color: var(--color-text-muted); margin-top: 14px; text-align: center; }
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }

.cta-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 72px 48px;
  color: #fff;
  isolation: isolate;
}
.cta-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(32,28,25,.92), rgba(32,28,25,.6)); z-index: -1; }
.cta-banner__inner { max-width: 560px; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-info-list { display: flex; flex-direction: column; gap: 22px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-item__icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--color-accent-light); color: var(--color-accent-dark);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 20px;
}
.map-placeholder {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  height: 320px;
  position: relative;
}
.map-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.map-placeholder__pin {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.map-placeholder__pin a {
  background: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--color-dark); color: #cfc6bb; padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a:hover { color: #fff; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: #fff; margin-bottom: 14px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.footer-social a:hover { background: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   Misc pages
   ========================================================================== */
.page-hero {
  padding: 56px 0 40px;
  text-align: center;
}
.breadcrumbs { font-size: 14px; color: var(--color-text-muted); margin-bottom: 16px; }
.breadcrumbs a:hover { color: var(--color-accent-dark); }
.prose h2 { margin-top: 40px; }
.prose h3 { margin-top: 28px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose p { color: var(--color-text); }

.alert {
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 14px;
  margin-bottom: 20px;
}
.alert--success { background: #e5f3e1; color: #2c5a1f; border: 1px solid #bfe3b3; }
.alert--error { background: #fbe4e0; color: #8a2c1c; border: 1px solid #f3bcae; }

.thanks-box { text-align: center; max-width: 560px; margin: 0 auto; padding: 96px 24px; }
.thanks-box__icon {
  width: 84px; height: 84px; border-radius: 50%; background: var(--color-accent-light);
  color: var(--color-accent-dark); display: flex; align-items: center; justify-content: center;
  font-size: 40px; margin: 0 auto 24px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-accent); color: #fff;
  padding: 10px 18px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.sticky-callback {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media img { height: 360px; }
  .pricing-cards { grid-template-columns: 1fr; }
  .pricing-card--featured { transform: none; }
}

@media (max-width: 720px) {
  .nav, .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 24px 28px;
    box-shadow: var(--shadow-md);
    gap: 20px;
  }
  .nav.is-open .nav__list { flex-direction: column; gap: 16px; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 56px; }
  .hero__badge { position: static; margin-top: -40px; max-width: none; }
  .form-card { padding: 24px; }
  .cta-banner { padding: 48px 24px; }
}
