/* 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 {
    position: relative;
    height: 60vh;
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.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;
}

/* Testimonials */
.testimonials {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

author {
  color: #666;
  font-size: 0.9rem;
}

/* Google reviews */
.reviews {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.review {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    flex: 1 1 260px;
    max-width: 280px;
}
.review .stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.review-author {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
}

/* 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}


/* 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)); }
}
/* Floating rating */
.floating-rating{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 220px;
  animation: fr-bob 5s ease-in-out infinite;
}
@keyframes fr-bob{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-3px); }
}
.fr-row{ display:flex; gap:10px; align-items:center; }
.fr-g{ width:22px; height:22px; }
.fr-text a{ color:#005eb8; text-decoration: underline; font-weight: 600; font-size: .95rem; }
.fr-score{ font-weight: 800; color:#111; margin-bottom: 2px; }
.fr-stars{ color:#ffc107; font-size: .95rem; margin-left: 4px; }
.fr-close{
  position:absolute; top:6px; right:8px;
  width:22px; height:22px; border:0; background:transparent;
  font-size:18px; line-height:22px; cursor:pointer; color:#777;
}
@media (max-width: 480px){
  .floating-rating{ bottom: 12px; right: 12px; min-width: 190px; }
}
.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 (reuse from main if needed) */
.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}

/* About hero */
.about-hero{padding:60px 5% 30px;text-align:center}
.about-hero h1{font-size:2.2rem;margin-bottom:10px;color:#005eb8}
.about-hero .lead{max-width:800px;margin:0 auto;color:#333}
.about-kpis{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:16px;max-width:900px;margin:18px auto 0}
.about-kpis div{background:#f7f7f7;border-radius:10px;padding:14px 10px;text-align:center;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.about-kpis strong{display:block;font-size:1.4rem;color:#005eb8;margin-bottom:4px}
.about-kpis span{font-size:.92rem;color:#333}

/* Story */
.about-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:28px;align-items:center}
.about-grid p{color:#333}
.about-photo img{width:100%;border-radius:10px;display:block}
@media (max-width:900px){.about-grid{grid-template-columns:1fr}}

/* Badges */
.about-badges{text-align:center}
.badge-list{display:grid;grid-template-columns:repeat(5,minmax(160px,1fr));gap:14px;list-style:none;padding:0;margin:0 auto;max-width:1100px}
.badge-list li{background:#f7f7f7;border-radius:12px;padding:14px;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.badge-list .b-ico{display:block;font-size:22px;margin-bottom:6px}
.badge-list strong{display:block;color:#005eb8}
.badge-list small{display:block;color:#555;margin-top:2px}
@media (max-width:1100px){.badge-list{grid-template-columns:repeat(3,1fr)}}
@media (max-width:600px){.badge-list{grid-template-columns:repeat(2,1fr)}}

/* Areas */
.about-areas .area-grid{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:10px;list-style:none;padding:0;max-width:900px;margin:0 auto 10px}
.about-areas .area-grid li{background:#f7f7f7;border-radius:10px;padding:10px;text-align:center}
.about-areas .muted{color:#666;text-align:center}
@media (max-width:900px){.about-areas .area-grid{grid-template-columns:repeat(2,1fr)}}

/* Services compact */
.about-services .srv-grid{display:grid;grid-template-columns:repeat(4,minmax(200px,1fr));gap:18px}
.about-services .srv-grid h3{color:#005eb8;margin-bottom:6px}
.about-services .srv-grid p{color:#333}
.about-services .cta-inline{margin-top:18px;text-align:center;display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.btn.secondary{background:transparent;color:#005eb8;border:2px solid #005eb8}
.btn.secondary:hover{background:#005eb8;color:#fff}

/* Reviews quote */
.about-reviews .qte{max-width:820px;margin:0 auto 10px;padding:12px 16px;background:#f7f7f7;border-left:4px solid #005eb8;border-radius:8px}
.about-reviews .center{text-align:center}
.link-out{color:#005eb8;text-decoration:underline}
.link-out:hover{text-decoration:none}

/* FAQ */
.about-faq details{max-width:900px;margin:0 auto 8px;background:#f7f7f7;border-radius:10px;padding:12px 14px}
.about-faq summary{cursor:pointer;font-weight:600;color:#005eb8}
.about-faq p{margin-top:6px;color:#333}

/* CTA */
.about-cta{text-align:center}
.about-cta p{color:#333}
.section .btn {
  display: inline-block;
  text-align: center;
}
.section .btn-center {
  display: block;
  margin: 16px auto 0;
  text-align: center;
}
/* Problems section (cards) */
.problems{ background:#fafcff; } /* лёгкий светлый фон */
.problem-list{
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
}
.problem-list li{
  position: relative;
  background: #fff;
  border: 1px solid #e8eef6;
  border-radius: 12px;
  padding: 14px 14px 14px 44px;
  color: #333;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  line-height: 1.45;
}

/* синий чек в кружке слева */
.problem-list li::before{
  content: "";
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #005eb8;
}
.problem-list li::after{
  content: "✓";
  position: absolute;
  left: 19px; top: 50%;
  transform: translateY(-52%);
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}

/* адаптив: в одну колонку на узких экранах */
@media (max-width: 720px){
  .problem-list{ grid-template-columns: 1fr; }
}
/* Center alignment for contact section */
#contact {
  text-align: center;
}

#contact .contact-form {
  max-width: 420px;
  margin: 0 auto;           /* центрирует саму форму */
  text-align: left;         /* поля и подписи остаются ровно по левому краю */
}

#contact .btn {
  display: inline-block;
  margin-top: 10px;
}
/* Contact page layout */
.contact-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:22px;
}
@media (max-width: 980px){
  .contact-grid{ grid-template-columns: 1fr; }
}

.contact-col .card{
  background:#fff;
  border:1px solid #e8eef6;
  border-radius:12px;
  box-shadow:0 1px 4px rgba(0,0,0,.06);
  padding:18px;
}
.card.subtle{ background:#f9fbff; }

.contact-form .field-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
@media (max-width: 560px){
  .contact-form .field-row{ grid-template-columns:1fr; }
}

/* Reuse existing inputs but tweak spacing if needed */
.contact-form input, .contact-form textarea{
  width:100%;
  padding:10px;
  margin-bottom:10px;
  border:1px solid #ccc;
  border-radius:6px;
  font-size:1rem;
}
.contact-form .consent{
  display:flex; align-items:center; gap:8px;
  font-size:.95rem; color:#333; margin:4px 0 2px;
}
.form-note{
  text-align:center; font-size:.95rem; color:#666; margin-top:8px;
}

/* Info list */
.contact-list{ list-style:none; padding:0; margin:0; }
.contact-list li{ margin:6px 0; color:#333; }
.contact-list a{ color:#005eb8; text-decoration:none; }
.contact-list a:hover{ text-decoration:underline; }

.areas{ list-style:none; padding:0; display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; }
.areas li{ background:#f1f6ff; color:#0e3a7c; padding:6px 10px; border-radius:999px; font-size:.92rem; }

/* Map */
.map-embed{ position:relative; padding-top:56%; border-radius:10px; overflow:hidden; border:1px solid #e8eef6; }
.map-embed iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.map-note{ color:#666; font-size:.92rem; margin-top:6px; }

/* Bulleted benefits */
.bullets{ list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.bullets li::before{
  content:"✓"; color:#005eb8; font-weight:800; margin-right:8px;
}
.bullets li{ color:#333; }

/* CTA strip */
.cta-strip{
  background:#005eb8; color:#fff; text-align:center;
  border-radius:12px; max-width:1000px; margin:0 auto;
}
.cta-strip .btn{ background:#ffc107; color:#000; margin-left:10px; }
/* full-width call-to-action strip */
.cta-full{
  width:100%;
  background:#005eb8;
  color:#fff;
  text-align:center;
  padding:28px 0;
}
.cta-full .btn{
  background:#ffc107;
  color:#000;
  margin-left:10px;
  font-weight:700;
  padding:10px 20px;
  border-radius:6px;
}
.cta-full .btn:hover{
  background:#e6a800;
}
/* Consent row */
.contact-block .consent{
  display:flex;
  align-items:flex-start;        /* текст выравнен к верхней кромке чекбокса */
  gap:10px;
  margin:8px 0 16px;
}
.contact-block .consent input{
  flex:0 0 auto;
  margin-top:3px;                /* подравниваем пиксели */
}
.contact-block .consent label{
  flex:1 1 auto;
  line-height:1.4;
  font-size:0.95rem;
  color:#333;
  cursor:pointer;
  /* на случай, если где-то задано float/position */
  float:none !important;
  position:static !important;
  text-align:left;
  white-space:normal;
}

/* если у тебя где-то глобально есть label{display:inline}, принуди блок */
.contact-block label { display:block; }
