
:root{
  --blue:#224ed1;
  --blue-200:#84b7f2;
  --yellow:#fcb521;
  --white:#fff;
  --ink:#0b1020;
  --muted:#f6f8ff;
  --card:#ffffff;
  --border:#e6e9f5;
  --light-blue:#eaf3ff;
}

/* Reset / base */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Golos Text",sans-serif;
  color:var(--ink);
  line-height:1.55;
  background:#fff;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}

.container{max-width:1200px;margin:0 auto;padding:0 16px}
.section{padding:60px 0}
.section-title{font-weight:700;font-size:30px;margin:0 0 24px;text-align:center}

.mini{color:#64748b;font-size:14px}
.link{text-decoration:underline}

/* Header */
header{
  position:sticky;top:0;z-index:100;
  background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.06)
}
.header-inner{
  max-width:1200px;margin:0 auto;
  padding:28px 32px;
  display:grid;grid-template-columns:auto 1fr auto;
  gap:28px;align-items:center
}
.brand img{height:84px;width:auto}
.header-nav{display:flex;gap:24px;justify-content:center;align-items:center}
.header-nav a{padding:8px 10px;border-radius:8px;font-weight:600;color:#0b1020;transition:all .2s ease}
.header-nav a:hover{background:rgba(34,78,209,.08);color:#224ed1}
.header-right{display:flex;align-items:center;gap:20px}
.header-contact{display:flex;flex-direction:column;align-items:flex-end;line-height:1.2}
.phones{display:flex;flex-direction:column;align-items:flex-end;gap:1px}
.phones a{font-weight:700;font-size:15.5px;line-height:1.1;white-space:nowrap}
.hours{font-size:14px;color:#475569;margin-top:6px;white-space:nowrap}

/* Buttons */
.cta-btn,.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:42px;background:var(--yellow);color:#111;
  padding:10px 18px;border-radius:12px;font-weight:700;
  transition:background .2s,color .2s,transform .05s;white-space:nowrap
}
.cta-btn:hover,.btn:hover{background:#fcd253}
.cta-btn:active,.btn:active{background:#e6a800;transform:translateY(1px)}

/* Hero */
.hero{background:linear-gradient(135deg,#224ed1 0%,#84b7f2 100%);color:#fff;padding:80px 0;text-align:left}
.hero h1{font-size:42px;line-height:1.2;margin:0 0 12px}
.hero p{font-size:18px;opacity:.95;margin:0 0 14px}
.badge-row{display:flex;gap:8px;flex-wrap:wrap}
.badge{background:rgba(255,255,255,.2);padding:6px 10px;border-radius:999px;font-size:14px}

/* Services */
#services{padding:56px 0}
#services .cards{
  display:grid;grid-template-columns:repeat(3,1fr);gap:24px;
  max-width:1200px;margin:0 auto;padding:0 16px
}
.svc-card{
  background:#fff;border:1px solid var(--border);border-radius:14px;padding:18px;
  box-shadow:0 4px 16px rgba(2,6,23,.04);cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease;outline:0
}
.svc-card:focus{box-shadow:0 0 0 3px rgba(34,78,209,.25),0 4px 16px rgba(2,6,23,.08)}
.svc-card:hover{transform:translateY(-2px)}
.svc-card h3{font-size:18px;margin:0 0 6px}
.svc-card .mini{color:#475569;margin:0 0 8px}
.price-pill{display:inline-block;border:1px solid #e5e7eb;border-radius:999px;padding:6px 10px;font-size:13px}
#svcPager{max-width:1200px;margin:16px auto 0;display:flex;justify-content:center;gap:8px}
#pgDots button{border:1px solid var(--border);background:#fff;border-radius:10px;padding:8px 12px;min-width:40px;cursor:pointer}
#pgDots button[aria-current="page"]{background:var(--blue);color:#fff;border-color:var(--blue)}
.cta-missing{max-width:960px;margin:40px auto 0;padding:24px;background:#fafbff;border:1px solid var(--border);border-radius:14px;text-align:center}

/* Dialog */
dialog.svc-dialog{width:min(720px,calc(100% - 32px));border:none;border-radius:16px;padding:0;box-shadow:0 24px 60px rgba(2,6,23,.28)}
.svc-dialog::backdrop{background:rgba(0,12,32,.55)}
.svc-dialog .dlg-head{padding:20px;border-bottom:1px solid var(--border)}
.svc-dialog h3{margin:0 0 8px}
.svc-dialog .dlg-body{padding:16px 20px 20px}
.svc-dialog .dlg-actions{display:flex;gap:10px;justify-content:space-between;align-items:center;padding:14px 20px;border-top:1px solid var(--border);background:#fff;border-bottom-left-radius:16px;border-bottom-right-radius:16px}
.ghost{background:#eef2ff;border:1px solid #dbe2ff;border-radius:10px;padding:10px 14px}

/* How / Trust / Corporate / Reviews */
.how-it-works,.trust,.corporate,.reviews,.contacts{padding:60px 0}
.steps-grid,.trust-grid,.reviews-grid{display:grid;gap:20px;max-width:1100px;margin:0 auto;padding:0 16px}
.steps-grid{grid-template-columns:repeat(3,1fr)}
.trust-grid{grid-template-columns:repeat(3,1fr)}

/* Reviews */
#reviews h2{font-weight:700;font-size:30px;margin:0 0 24px;text-align:center}
.reviews-carousel{display:flex;align-items:center;gap:10px;position:relative}
.reviews-track{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;flex:1;overflow:hidden}
.review{background:#fff;border:1px solid var(--border);border-radius:12px;padding:18px;box-shadow:0 2px 8px rgba(2,6,23,.06)}
.review p{margin:8px 0 6px}
.review .mini{color:#64748b;font-size:14px}
.review .stars{font-size:20px;line-height:1;color:#f59e0b;letter-spacing:1px}
.reviews-carousel .nav{background:none;border:none;font-size:24px;cursor:pointer;color:#224ed1}

/* Contact section */
.section.muted{background:#fafbff}
.container.contact{
  display:grid;grid-template-columns:1fr 1fr;gap:24px;
  max-width:1100px;margin:0 auto;padding:0 16px
}
.container.contact form{
  background:#fff;border:1px solid var(--border);border-radius:12px;padding:18px;
  box-shadow:0 2px 6px rgba(0,0,0,.04)
}
.container.contact label{display:block;margin:10px 0 6px;font-weight:600}
.container.contact input,.container.contact select{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:8px}
.container.contact .map{/* Fix embedded Google Map sizing */
.container.contact .map {
  position: relative;
  width: 100%;
  height: 320px;              /* adjust height as you wish */
  background: #f3f4f6;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

/* Make the iframe fill it perfectly */
.container.contact .map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}
}
.video-container{margin-top:16px;position:relative;width:100%;padding-bottom:56.25%;border-radius:12px;overflow:hidden;background:#ddd}
.video-container iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0;border-radius:12px}
.video-placeholder{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-weight:600;color:#555;background:#e5e7eb}

/* Footer */
.site-footer{padding:40px 16px;margin-top:40px;background:#1e2a48;color:#fff;text-align:center}

/* Responsiveness */
@media (max-width: 1200px){
  .header-inner{padding:24px 20px}
}
@media (max-width: 992px){
  .brand img{height:76px}
  #services .cards{grid-template-columns:repeat(2,1fr)}
  .reviews-track{grid-template-columns:repeat(2,1fr)}
  .steps-grid,.trust-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 900px){
  .header-nav{display:none}
  .header-inner{grid-template-columns:1fr;gap:14px;justify-items:center;text-align:center}
  .header-right{flex-direction:column;gap:10px}
  .header-contact{align-items:center}
  .phones{align-items:center}
  .hours{white-space:normal}
}
@media (max-width: 768px){
  .hero{padding:60px 0;text-align:center}
  .hero h1{font-size:32px}
  .hero p{font-size:16px}
  .container.contact{grid-template-columns:1fr}
}
@media (max-width: 520px){
  .brand img{height:64px}
  #services .cards{grid-template-columns:1fr}
  .reviews-track{grid-template-columns:1fr}
  .section{padding:44px 0}
  .site-footer{margin-top:28px}
}

/* Motion preference */
@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important}
}

/* ==== Blog card thumbnails (auto-crop) ==== */
.post .thumb {
  position: relative;
  aspect-ratio: 16 / 9;          /* keeps consistent rectangle */
  background: #eaf3ff;           /* fallback color */
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  height: auto !important;       /* prevent old fixed height */
}

.post .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;             /* crops automatically */
  object-position: center;       /* focus crop on center */
  display: block;
  border-radius: inherit;
}

/* Old-browser fallback (if aspect-ratio unsupported) */
@supports not (aspect-ratio: 1) {
  .post .thumb { height: 160px; }  /* adjust if you want taller boxes */
  .post .thumb img {
    position: absolute;
    inset: 0;
  }
}
