/*
Theme Name: Гефест РБК
Theme URI: https://gefestrbk.com.ua
Author: Gefest
Description: Висококонверсійна тема для ремонтно-будівельної компанії «Гефест». Корпоративний мінімалізм у синьо-сталевій палітрі.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: gefest
*/

/* ===== ЗМІННІ ПАЛІТРИ ===== */
:root {
  --gefest-blue: #1a4f8b;        /* класичний фірмовий синій */
  --gefest-blue-dark: #11335c;   /* глибокий синій */
  --gefest-blue-light: #2a6cb8;  /* світліший акцент */
  --gefest-steel: #8a9aa8;       /* сталево-сірий */
  --gefest-steel-light: #c5ced6; /* світлий метал */
  --gefest-bg: #ffffff;
  --gefest-bg-soft: #f4f6f8;     /* світло-сірий фон */
  --gefest-text: #1d2733;
  --gefest-text-soft: #5a6772;
  --gefest-white: #ffffff;
  --shadow-soft: 0 4px 20px rgba(17, 51, 92, 0.08);
  --shadow-med: 0 10px 40px rgba(17, 51, 92, 0.14);
  --radius: 10px;
  --transition: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', -apple-system, sans-serif;
  color: var(--gefest-text);
  background: var(--gefest-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section-soft { background: var(--gefest-bg-soft); }

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--gefest-blue-dark);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.section-subtitle {
  text-align: center;
  color: var(--gefest-text-soft);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 56px;
}
.accent-line {
  width: 64px; height: 4px;
  background: linear-gradient(90deg, var(--gefest-blue), var(--gefest-steel));
  margin: 0 auto 24px;
  border-radius: 4px;
}

/* ===== КНОПКИ ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 34px;
  font-size: 1rem; font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer; border: none;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gefest-blue), var(--gefest-blue-light));
  color: #fff;
  box-shadow: 0 6px 20px rgba(26, 79, 139, 0.4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(26, 79, 139, 0.5);
}
.btn-outline {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: #fff; color: var(--gefest-blue-dark);
  border-color: #fff; transform: translateY(-3px);
}
.btn-dark {
  background: var(--gefest-blue-dark); color: #fff;
}
.btn-dark:hover { background: var(--gefest-blue); transform: translateY(-3px); }

/* ===== ШАПКА ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.site-logo img { height: 46px; width: auto; }
.main-nav ul { display: flex; gap: 32px; list-style: none; align-items: center; }
.main-nav a {
  font-weight: 500; color: var(--gefest-text); font-size: 0.97rem;
  position: relative; transition: color 0.25s;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--gefest-blue);
  transition: width 0.3s;
}
.main-nav a:hover { color: var(--gefest-blue); }
.main-nav a:hover::after { width: 100%; }
.header-phone {
  font-weight: 700; color: var(--gefest-blue-dark); font-size: 1.05rem;
  display: flex; align-items: center; gap: 8px;
}
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.burger span { width: 26px; height: 3px; background: var(--gefest-blue-dark); border-radius: 2px; transition: 0.3s; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--gefest-blue-dark) 0%, var(--gefest-blue) 55%, #1c5aa0 100%);
  overflow: hidden;
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(138,154,168,0.25), transparent 45%),
    linear-gradient(rgba(17,51,92,0.55), rgba(17,51,92,0.75)),
    url('assets/images/hero-bg.jpg') center/cover no-repeat;
}
.hero-bg-overlay::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-sphere {
  position: absolute; right: -120px; top: 50%; transform: translateY(-50%);
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e8edf2, #8a9aa8 55%, #4a5662 100%);
  box-shadow: inset -40px -40px 80px rgba(0,0,0,0.4), 0 0 120px rgba(138,154,168,0.3);
  opacity: 0.25; animation: floatSphere 8s ease-in-out infinite;
}
@keyframes floatSphere {
  0%,100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-54%) scale(1.04); }
}
.hero-content {
  position: relative; z-index: 5; max-width: 720px; color: #fff;
  animation: fadeUp 1s ease both;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 18px; border-radius: 30px; font-size: 0.85rem;
  margin-bottom: 24px; backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900;
  line-height: 1.1; margin-bottom: 22px; letter-spacing: -1px;
}
.hero h1 .accent { color: var(--gefest-steel-light); }
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.25rem); color: rgba(255,255,255,0.88);
  margin-bottom: 38px; max-width: 580px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.hero-stat .num { font-size: 2.2rem; font-weight: 800; color: #fff; }
.hero-stat .lbl { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
@keyframes fadeUp { from { opacity:0; transform: translateY(40px);} to {opacity:1; transform:none;} }

/* ===== ПОСЛУГИ ===== */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 28px;
}
.service-card {
  background: #fff; border-radius: var(--radius); padding: 38px 30px;
  box-shadow: var(--shadow-soft); border: 1px solid #eef1f4;
  transition: var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
  content:''; position:absolute; top:0; left:0; width:100%; height:4px;
  background: linear-gradient(90deg, var(--gefest-blue), var(--gefest-steel));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-med); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 64px; height: 64px; border-radius: 14px; margin-bottom: 22px;
  background: linear-gradient(135deg, var(--gefest-blue), var(--gefest-blue-light));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.8rem; transition: var(--transition);
}
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.08); }
.service-card h3 { font-size: 1.25rem; color: var(--gefest-blue-dark); margin-bottom: 12px; }
.service-card p { color: var(--gefest-text-soft); font-size: 0.96rem; }

/* ===== ПЕРЕВАГИ ===== */
.advantages { background: linear-gradient(135deg, var(--gefest-blue-dark), var(--gefest-blue)); color:#fff; }
.advantages .section-title, .advantages .section-subtitle { color:#fff; }
.adv-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap:32px; }
.adv-item { text-align:center; padding:20px; }
.adv-num { font-size: 3rem; font-weight: 900; color: var(--gefest-steel-light); line-height:1; }
.adv-item h4 { font-size:1.1rem; margin:14px 0 8px; }
.adv-item p { color: rgba(255,255,255,0.78); font-size:0.92rem; }

/* ===== ПОРТФОЛІО ===== */
.portfolio-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(330px,1fr)); gap:30px; }
.project-card {
  background:#fff; border-radius: var(--radius); overflow:hidden;
  box-shadow: var(--shadow-soft); transition: var(--transition);
  border:1px solid #eef1f4;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-med); }
.project-media { position:relative; height:230px; overflow:hidden; }
.project-media img { width:100%; height:100%; object-fit:cover; transition: transform 0.6s; }
.project-card:hover .project-media img { transform: scale(1.08); }
.project-tag {
  position:absolute; top:16px; left:16px; z-index:3;
  background: var(--gefest-blue); color:#fff; font-size:0.78rem; font-weight:600;
  padding:6px 14px; border-radius:30px;
}
.project-beforeafter {
  position:absolute; bottom:16px; right:16px; z-index:3;
  background: rgba(17,51,92,0.85); color:#fff; font-size:0.75rem;
  padding:6px 12px; border-radius:8px; backdrop-filter:blur(4px);
}
.project-body { padding: 26px 24px; }
.project-body h3 { font-size:1.25rem; color: var(--gefest-blue-dark); margin-bottom:16px; }
.project-specs { list-style:none; display:grid; gap:12px; margin-bottom:20px; }
.project-specs li { display:flex; justify-content:space-between; font-size:0.92rem; border-bottom:1px dashed #e2e8ee; padding-bottom:8px; }
.project-specs .key { color: var(--gefest-text-soft); }
.project-specs .val { font-weight:700; color: var(--gefest-blue-dark); }
.project-link {
  display:inline-flex; align-items:center; gap:8px; font-weight:600;
  color: var(--gefest-blue); transition: gap 0.3s;
}
.project-link:hover { gap:14px; }

/* ===== ЕТАПИ ===== */
.steps-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap:24px; }
.step-card { text-align:center; position:relative; padding:20px; }
.step-circle {
  width:72px; height:72px; border-radius:50%; margin:0 auto 18px;
  background: #fff; border:3px solid var(--gefest-blue);
  display:flex; align-items:center; justify-content:center;
  font-size:1.5rem; font-weight:800; color: var(--gefest-blue);
  box-shadow: var(--shadow-soft); transition: var(--transition);
}
.step-card:hover .step-circle { background: var(--gefest-blue); color:#fff; transform: scale(1.08); }
.step-card h4 { font-size:1.05rem; color: var(--gefest-blue-dark); margin-bottom:8px; }
.step-card p { font-size:0.88rem; color: var(--gefest-text-soft); }

/* ===== ВІДГУКИ / ДОКАЗИ ===== */
.reviews-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap:28px; }
.review-card { background:#fff; border-radius: var(--radius); padding:32px; box-shadow: var(--shadow-soft); border:1px solid #eef1f4; }
.review-stars { color:#f1b53d; margin-bottom:14px; font-size:1.1rem; }
.review-text { color: var(--gefest-text); font-style:italic; margin-bottom:20px; }
.review-author { display:flex; align-items:center; gap:14px; }
.review-avatar { width:48px; height:48px; border-radius:50%; background: linear-gradient(135deg,var(--gefest-blue),var(--gefest-steel)); display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700; }
.review-author .name { font-weight:700; color: var(--gefest-blue-dark); }
.review-author .role { font-size:0.85rem; color: var(--gefest-text-soft); }
.certs { display:flex; gap:20px; justify-content:center; flex-wrap:wrap; margin-top:50px; }
.cert-badge {
  width:120px; height:150px; background:#fff; border-radius:8px;
  box-shadow: var(--shadow-soft); display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:10px; border:1px solid #eef1f4;
  transition: var(--transition); color: var(--gefest-steel);
}
.cert-badge:hover { transform: translateY(-6px); color: var(--gefest-blue); }

/* ===== LEAD ФОРМА ===== */
.lead { background: linear-gradient(135deg, var(--gefest-blue-dark), #0d2847); color:#fff; }
.lead-inner { display:grid; grid-template-columns: 1fr 1fr; gap:60px; align-items:center; }
.lead-info h2 { font-size: clamp(1.8rem,3vw,2.6rem); font-weight:800; margin-bottom:18px; }
.lead-info p { color: rgba(255,255,255,0.82); margin-bottom:28px; }
.lead-benefits { list-style:none; display:grid; gap:14px; }
.lead-benefits li { display:flex; align-items:center; gap:12px; }
.lead-benefits .check { color: var(--gefest-steel-light); font-weight:800; }
.lead-form {
  background:#fff; border-radius:16px; padding:40px; box-shadow: var(--shadow-med);
}
.lead-form h3 { color: var(--gefest-blue-dark); font-size:1.4rem; margin-bottom:8px; }
.lead-form p.small { color: var(--gefest-text-soft); font-size:0.9rem; margin-bottom:24px; }
.form-group { margin-bottom:18px; }
.form-group input, .form-group select, .form-group textarea {
  width:100%; padding:14px 16px; border:1.5px solid #d8e0e8; border-radius:8px;
  font-size:0.95rem; transition:0.25s; font-family:inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline:none; border-color: var(--gefest-blue); box-shadow:0 0 0 3px rgba(26,79,139,0.12);
}
.lead-form .btn { width:100%; justify-content:center; }
.form-note { font-size:0.8rem; color: var(--gefest-text-soft); text-align:center; margin-top:14px; }

/* ===== ФУТЕР ===== */
.site-footer { background: #0d1b2e; color: rgba(255,255,255,0.75); padding:60px 0 24px; }
.footer-grid { display:grid; grid-template-columns: 2fr 1fr 1fr; gap:48px; margin-bottom:40px; }
.footer-col h4 { color:#fff; margin-bottom:18px; font-size:1.1rem; }
.footer-col ul { list-style:none; display:grid; gap:10px; }
.footer-col a:hover { color: var(--gefest-steel-light); }
.footer-logo { height:42px; margin-bottom:18px; filter: brightness(0) invert(1); opacity:0.9; }
.footer-contact-item { display:flex; gap:10px; margin-bottom:12px; }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.12); padding-top:24px; text-align:center; font-size:0.85rem; color: rgba(255,255,255,0.5); }

/* ===== АДАПТИВ ===== */
@media (max-width: 900px) {
  .main-nav, .header-phone { display:none; }
  .burger { display:flex; }
  .main-nav.open {
    display:flex; position:absolute; top:78px; left:0; right:0;
    background:#fff; flex-direction:column; padding:24px; box-shadow: var(--shadow-med);
  }
  .main-nav.open ul { flex-direction:column; gap:18px; }
  .lead-inner { grid-template-columns:1fr; gap:40px; }
  .footer-grid { grid-template-columns:1fr; gap:32px; }
  .hero-sphere { width:340px; height:340px; right:-100px; }
}
@media (max-width:560px){
  .section{ padding:60px 0; }
  .hero-cta{ flex-direction:column; }
  .hero-cta .btn{ width:100%; justify-content:center; }
  .hero-stats{ gap:28px; }
}
