* { box-sizing: border-box; }

:root{
  --text: #111;
  --muted: #555;
  --line: #eee;
  --brand: #f4b400;
  --green: #1f7a2e;
}

html{
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body{
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background: #fff;
}

a{ color: inherit; }

.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-wrap{
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* Brand */
.brand{
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}
.brand .mk{ color: var(--brand); font-size: 26px; letter-spacing: 0.5px; }
.brand .brand-text{ font-size: 24px; }
.brand .ct{ color: var(--brand); font-size: 24px; }

/* Phone */
.header-phone{
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.header-phone:hover{ color: var(--brand); }

/* Nav */
.header-nav{
  display: flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
}
.header-nav a{
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}
.header-nav a:hover{ color: var(--brand); }

/* Buttons */
.btn-primary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: #111;
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
  border: none;
  cursor: pointer;
}
.btn-primary:hover{
  opacity: 0.92;
  transform: translateY(-1px);
  transition: 0.2s;
}

/* ===== HERO ===== */
.hero{
  text-align: center;
  padding: 140px 20px;
  background-image:
    linear-gradient(rgba(255,255,255,0.75), rgba(255,255,255,0.75)),
    url("../images/fon.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-inner{
  max-width: 1100px;
  margin: 0 auto;
}

.hero h1{
  font-size: 46px;
  margin: 0 0 14px;
  font-weight: 900;
}

.hero-subtitle{
  font-size: 18px;
  margin: 0 auto 22px;
  color: var(--green);
  font-weight: 800;
  display: inline-block;
  background: rgba(255,255,255,0.65);
  padding: 6px 14px;
  border-radius: 999px;
}

.hero-cta{
  padding: 14px 26px;
  font-size: 18px;
  margin-top: 14px;
}

/* ===== SECTIONS ===== */
.section{
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.section h2{
  font-size: 28px;
  margin: 0 0 14px;
}

.muted{
  color: var(--muted);
  margin: 0 0 20px;
}

/* SERVICES */
.cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.card{
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-weight: 700;
  text-align: center;
}

/* GALLERY */
.gallery{
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.gallery img{
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  display: block;
  cursor: zoom-in;
  transition: transform .2s ease;
}
.gallery img:hover{ transform: scale(1.02); }

/* TESTIMONIALS */
.testimonials-inner{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 18px;
}
.testimonial-card{
  background: #fff;
  border: 1px solid rgba(31,122,46,0.25);
  border-radius: 18px;
  padding: 22px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}
.testimonial-card p{
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
.testimonial-card strong{
  margin-top: 14px;
  font-size: 14px;
  color: var(--green);
}

/* CONTACT FORM */
.contact-form{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin-top: 18px;
}
.field label{
  display:block;
  font-weight: 700;
  margin-bottom: 6px;
}
.field label span{ color:#c00; }

.field input, .field textarea{
  width: 100%;
  padding: 12px 12px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  outline: none;
  font-size: 14px;
}
.field input:focus, .field textarea:focus{ border-color:#bbb; }

.field-full{ grid-column: 1 / -1; }

.hint{
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}
.hint a{
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
}
.hint a:hover{
  color: var(--brand);
  text-decoration: underline;
}

/* FOOTER */
.footer{
  padding: 22px;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--text);
}

/* ===== LIGHTBOX ===== */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.78);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}
.lightbox.open{ display: flex; }

.lb-img{
  max-width: min(1100px, 94vw);
  max-height: 86vh;
  border-radius: 14px;
}

/* Buttons (perfectly centered) */
.lb-close,
.lb-prev,
.lb-next{
  position: fixed;
  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 999px;
  cursor: pointer;

  background: rgba(255,255,255,.15);
  color: #fff;

  font-size: 34px;
  line-height: 1;

  z-index: 10000;
  user-select: none;
}

.lb-close{
  top: 18px;
  right: 18px;
  font-size: 36px;
}

.lb-prev,
.lb-next{
  top: 50%;
  transform: translateY(-50%);
}

.lb-prev{ left: 18px; }
.lb-next{ right: 18px; }

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover{
  background: rgba(255,255,255,.25);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px){
  .hero h1{ font-size: 36px; }
  .cards{ grid-template-columns: repeat(2, 1fr); }
  .gallery{ grid-template-columns: repeat(2, 1fr); }
  .contact-form{ grid-template-columns: 1fr; }
  .testimonials-inner{ grid-template-columns: 1fr; }
}

@media (max-width: 820px){
  .header-wrap{
    height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
  }
}

@media (max-width: 520px){
  .gallery{ grid-template-columns: 1fr; }
  .gallery img{ height: 260px; }
  .cards{ grid-template-columns: 1fr; }
}

.hero-actions{
  display: flex;
  flex-direction: column;
  align-items: center;   /* 🔴 ОЦЕ ГОЛОВНЕ */
  gap: 14px;
}

/* ===== SERVICES ===== */

.services {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.services h2 {
  font-size: 32px;
  margin-bottom: 40px;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.service-card {
  padding: 18px 20px;
  border: 1px solid #eee;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  background: #fff;
  cursor: default;
  transition: all 0.2s ease;
}

.service-card:hover {
  border-color: #2fa44f;
  color: #2fa44f;
}

/* ===== ABOUT US ===== */
.about {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about h2 {
  margin-bottom: 24px;
}

.about p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
  color: #333;
}

/* ===== ESTIMATE SECTION DESIGN ===== */
.estimate-section {
  background: #f3f8f3; /* світло-зелений */
  border: 1px solid #d6e8d6;
  border-radius: 16px;
  padding: 48px 32px;
  margin: 80px auto;
  max-width: 1000px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.estimate-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 8px;
}

.estimate-section p {
  text-align: center;
  color: #555;
  margin-bottom: 32px;
}

.estimate-section input,
.estimate-section textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 15px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.estimate-section input:focus,
.estimate-section textarea:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76,175,80,0.15);
}

.contact-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.contact-pill {
  background: #ffffff;
  border: 1px solid #d6e8d6;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  white-space: nowrap; /* 🔑 */
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.estimate-section::before {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #4caf50;
  border-radius: 4px;
  margin: 0 auto 24px;
}

/* --- Contact “pills” (Text + Email) --- */
.contact-direct-wrap{
  margin-top: 14px;
}

.contact-direct-title{
  font-size: 14px;
  color: #444;
  margin-bottom: 10px;
}

.contact-direct{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #cfe8d3;
  border-radius: 999px;
  background: #f5fbf6;
  color: #0f3d1d;
  font-weight: 600;
  text-decoration: none;
  max-width: 100%;
}

.contact-pill:hover{
  background: #eaf7ed;
}

/* so email looks clean on phone */
.contact-email{
  display: inline-block;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

@media (max-width: 520px){
  .contact-email{ max-width: 170px; }
}

/* Contact section - clean card like Reviews */
#contact {
  padding: 80px 20px;
}

.contact-card {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(16, 185, 129, 0.28); /* light green */
  border-radius: 18px;
  padding: 34px 34px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-card h2 {
  margin: 0 0 6px;
}

.contact-subtitle {
  margin: 0 0 22px;
  color: #555;
}

/* mobile spacing */
@media (max-width: 600px) {
  .contact-card {
    padding: 22px 16px;
    border-radius: 16px;
  }
}

/* Desktop / mobile visibility */
.burger, .mobile-menu { display: none; }

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .burger { display: inline-flex; }
  .mobile-menu { display: block; }
}

/* Burger icon */
.burger{
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-direction: column;
}

.burger span{
  display:block;
  width: 26px;
  height: 3px;
  background:#111;
  border-radius: 999px;
  transition: transform .2s ease, opacity .2s ease;
}

/* Mobile menu panel */
.mobile-menu{
  position: absolute;
  top: 72px;            /* під твою шапку (можеш підправити) */
  right: 16px;
  left: 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: .18s ease;
  z-index: 999;
}

.mobile-menu a{
  display:block;
  padding: 12px 10px;
  text-decoration:none;
  color:#111;
  font-weight: 700;
  border-radius: 10px;
}

.mobile-menu a:hover{
  background:#f5f5f5;
}

.mobile-cta{
  margin-top: 8px;
  text-align:center;
  border: 1px solid #111;
  border-radius: 999px;
}

/* Open state */
.mobile-menu.open{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Burger -> X when open */
.burger.open span:nth-child(1){ transform: translateY(9px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity: 0; }
.burger.open span:nth-child(3){ transform: translateY(-9px) rotate(-45deg); }

/* MOBILE */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* ✅ FIX: hide desktop nav on mobile */
@media (max-width: 768px) {
  .header-nav {
    display: none !important;
  }
}



