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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #005eb8;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
}
nav a:hover {
    color: #005eb8;
}

/* Hero section */
 

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 90%;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background: #ffc107;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn:hover {
    background: #e6a800;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Trust block */
.trust-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 40px 5%;
    background: #f7f7f7;
    gap: 30px;
    text-align: center;
}
.trust-logos {
    flex: 1 1 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.trust-logos img {
    max-height: 80px;
    width: auto;
}
.trust-stats {
    flex: 2 1 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    color: #333;
}
.trust-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
}
.trust-stats .stat-item strong {
    font-size: 1.8rem;
    color: #005eb8;
    margin-bottom: 5px;
}
.trust-stats .stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-top: -5px;
}
.trust-stats a {
    color: #005eb8;
    text-decoration: underline;
}
.trust-stats a:hover {
    text-decoration: none;
}

/* Process section */
.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.process-steps .step {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    flex: 1 1 200px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    max-width: 230px;
}
.process-steps .step-icon {
    width: 40px;
    height: 40px;
    line-height: 40px;
    margin: 0 auto 10px auto;
    background: #005eb8;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
}
.process-steps h3 {
    font-size: 1.1rem;
    color: #005eb8;
    margin-bottom: 8px;
}
.process-steps p {
    font-size: 0.9rem;
}

/* Before and after slider */
.before-after .slider-container {
    position: relative;
    width: 100%;
    height: 350px;
    margin: 0 auto;
    max-width: 900px;
}
.before-after .ba-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}
.before-after .before-img {
    background-image: url('../images/before.jpg');
}
.before-after .after-img {
    background-image: url('../images/after.jpg');
    width: 50%;
    overflow: hidden;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}
.before-after .slider {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    z-index: 2;
    -webkit-appearance: none;
    height: 5px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
}
.before-after .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #005eb8;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
}
.before-after .slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #005eb8;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
}

/* About summary */
.about-summary p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

/* Contact block adjustments */
.contact-block .contact-form {
    max-width: 400px;
    margin: 0 auto;
}
.contact-block input, .contact-block textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}
.contact-block button {
    width: 100%;
    padding: 12px;
    background: #005eb8;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}
.contact-block button:hover {
    background: #004a94;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .trust-block {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .trust-stats {
        gap: 20px;
    }
    .process-steps .step {
        flex: 1 1 100%;
        max-width: none;
    }
    .before-after .slider-container {
        height: 250px;
    }
}

/* Sections */
.section {
    padding: 60px 5%;
}

.section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #005eb8;
}

/* Services */
.services {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.service-item {
    flex: 1 1 250px;
    background: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.service-item img {
    max-width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.service-item h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #005eb8;
}

.service-item p {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

/* About */
.about {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.about-img {
    flex: 1 1 300px;
}

.about-img img {
    width: 100%;
    border-radius: 8px;
}

.about-content {
    flex: 1 1 300px;
}

.about-content h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #005eb8;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery img {
    width: 100%;
    border-radius: 8px;
}



/* Contact */
.contact-form {
    max-width: 500px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form button {
    width: 100%;
    padding: 12px;
    background: #005eb8;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: #004a94;
}

/* Footer */
.site-footer{background:#0b1220;color:#e6eef8;padding:32px 5% 18px;font-size:15px;line-height:1.5;border-top:4px solid rgba(255,255,255,0.03)}
.site-footer .wrap{max-width:1100px;margin:0 auto;display:flex;gap:28px;flex-wrap:wrap;align-items:flex-start}
.footer-col{flex:1 1 220px;min-width:200px}
.footer-col h4{margin:0 0 8px;color:#fff;font-size:16px}
.site-footer p, .site-footer a, .site-footer li{color:#cfe6ff}
.site-footer .muted{color:#9fb7d6;font-size:0.95rem;margin:6px 0}
.footer-col ul{list-style:none;padding:0;margin:6px 0}
.footer-col ul li{margin:6px 0}
.footer-col a{color:#cfe6ff;text-decoration:none;border-bottom:1px dashed transparent}
.footer-col a:hover{border-bottom-color:rgba(207,230,255,0.15)}

.footer-bottom{max-width:1100px;margin:20px auto 0;padding-top:14px;border-top:1px solid rgba(255,255,255,0.03);display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.footer-bottom p{margin:0;color:#9fb7d6;font-size:0.95rem}
.footer-bottom .dev a{color:#ffd166;font-weight:700;text-decoration:none}
.footer-bottom .dev a:hover{text-decoration:underline}

/* Accessibility / small screens */
@media (max-width:720px){
  .site-footer .wrap{flex-direction:column;gap:16px}
  .footer-bottom{flex-direction:column;align-items:flex-start;gap:6px}
}


/* Responsive navigation */
@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: #fff;
        width: 200px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    nav.open {
        display: flex;
    }

    nav a {
        margin: 10px;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        color: #005eb8;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}
/* Brand strip */
.brand-strip {
  background: #f4f6f8;
  padding: 22px 5%;
  border-top: 1px solid rgba(0,0,0,.05);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.brand-strip__inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 28px;
  align-items: center;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.brand-strip__inner img {
  max-height: 36px;
  width: auto;
  filter: grayscale(100%) contrast(110%);
  opacity: .9;
  transition: opacity .2s ease, filter .2s ease, transform .2s ease;
}
.brand-strip__inner img:hover {
  filter: grayscale(0%) contrast(100%);
  opacity: 1;
  transform: translateY(-2px);
}
@media (max-width: 900px){
  .brand-strip__inner{ grid-template-columns: repeat(3, minmax(100px, 1fr)); }
}
@media (max-width: 520px){
  .brand-strip__inner{ grid-template-columns: repeat(2, minmax(90px, 1fr)); }
}
/* Trust block (у тебя уже есть — дозаполняю) */
.trust-block {
  padding: 36px 5%;
  background: #f7f7f7;
}
.trust-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px,1fr));
  gap: 28px;
  align-items: center;
  justify-items: center;
}
.stat-item { text-align: center; }
.stat-item strong { font-size: 1.6rem; color:#005eb8; display:block; margin-bottom:6px; }
.stat-item span { font-size: .95rem; color:#333; display:block; }
.stat-item.license svg { display:block; margin: 0 auto 6px; }
@media (max-width: 900px){
  .trust-stats{ grid-template-columns: repeat(2, minmax(160px,1fr)); }
}
/* HomeAdvisor floating badge custom colors */
.floating-rating {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  z-index: 9999;
  animation: fadeInUp .5s ease;
}

.floating-rating .fr-g {
  width: 32px;
  height: 32px;
}

.floating-rating .fr-text {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.floating-rating .fr-score {
  font-weight: 600;
  color: #ff6b00; /* фирменный оранжевый HomeAdvisor */
}

.floating-rating .fr-stars {
  color: #ff6b00;
  font-size: 0.9em;
}

.floating-rating a {
  color: #0077b6;
  text-decoration: none;
}

.floating-rating a:hover {
  text-decoration: underline;
}

.floating-rating .fr-close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: none;
  background: none;
  font-size: 18px;
  line-height: 1;
  color: #999;
  cursor: pointer;
}

.seo-text {
  background:#f9f9f9;
  padding:60px 5%;
  color:#333;
  font-size:1rem;
  line-height:1.6;
}
.seo-text h2 {
  text-align:center;
  margin-bottom:20px;
  color:#005eb8;
}
.breadcrumbs{padding:10px 5%; font-size:.92rem; background:#f7f7f7;}
.breadcrumbs ol{list-style:none; display:flex; gap:8px; flex-wrap:wrap; margin:0; padding:0;}
.breadcrumbs a{color:#005eb8; text-decoration:none;}
.breadcrumbs li+li:before{content:"/"; color:#888; margin:0 4px 0 2px;}
/* --- Brand Strip --- */
.brand-strip {
  background: #f4f6f8;
  padding: 22px 5%;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Центрируем контент */
.brand-strip__inner {
  display: flex;
  justify-content: center;   /* по горизонтали */
  align-items: center;       /* по вертикали */
  gap: 40px;                 /* расстояние между логотипами */
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

/* Настройки для логотипов */
.brand-strip__inner img {
  max-height: 48px;
  width: auto;
  filter: grayscale(100%) contrast(110%);
  opacity: 0.9;
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.brand-strip__inner img:hover {
  filter: grayscale(0%) contrast(100%);
  opacity: 1;
  transform: translateY(-2px);
}
/* ===================== Reviews auto-slider styles ===================== */
#reviews{
  text-align:center;
  max-width:720px;
  margin:auto;
}
.review-slider{
  position:relative;
  min-height:200px;
}
.review-card{
  position:absolute;
  top:0;left:0;
  width:100%;
  opacity:0;
  transform:translateY(20px);
  transition:opacity .8s ease, transform .8s ease;
  background:#fff;
  border:1px solid rgba(16,24,40,.10);
  border-radius:14px;
  box-shadow:0 8px 20px rgba(16,24,40,.06);
  padding:24px 20px;
}
.review-card.active{
  opacity:1;
  transform:translateY(0);
  position:relative;
}
.rc-stars{
  color:#ff6b00;
  font-weight:700;
  letter-spacing:1px;
  margin-bottom:8px;
}
.rc-text{
  font-size:1.05rem;
  line-height:1.6;
  color:#1b1f2a;
  margin:0 0 10px;
}
.rc-meta{
  font-size:.9rem;
  color:#5b6275;
}
.reviews-cta{
  margin-top:20px;
}
.btn{
  display:inline-block;
  background:#ff6b00;
  color:#fff;
  padding:10px 18px;
  border-radius:10px;
  text-decoration:none;
  font-weight:600;
}
.btn:hover{filter:brightness(.95);}
/* Центрирование CTA блока */
.cta-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin-top:10px;
}

.section .btn{
  display:inline-block;
  background:#ff6b00;
  color:#fff;
  padding:12px 24px;
  border-radius:10px;
  text-decoration:none;
  font-weight:600;
  transition:all .3s ease;
}

.section .btn:hover{
  filter:brightness(.95);
}
