/* styles.css */
/* Font: IBM Plex Sans */
:root{
  --bg:#FFFFFF;
  --text:#111827;
  --muted:#6B7280;
  --accent:#2D6CDF;
  --accent-2:#8CB4FF;
  --border:rgba(17,24,39,.12);
  --shadow: 0 12px 40px rgba(17,24,39,.10);
  --shadow-soft: 0 10px 30px rgba(17,24,39,.08);
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1160px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.55;
}
img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
p{margin:0 0 12px}
ul{margin:0; padding-left:18px}
small{color:var(--muted)}

.container{
  width:min(var(--container), calc(100% - 40px));
  margin:0 auto;
}

.skip-link{
  position:absolute; left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:20px; top:12px; width:auto; height:auto; padding:10px 12px;
  background:#fff; border:1px solid var(--border); border-radius:12px;
  z-index:9999;
}

/* Header */
.header{
  position:sticky; top:0; z-index:80;
  background:rgba(255,255,255,.82);
  backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--border);
}
.header__bar{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:16px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:700; letter-spacing:.3px;
}
.brand__mark{
  width:34px; height:34px; border-radius:12px;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 20px rgba(45,108,223,.25);
}
.brand__text{display:flex; flex-direction:column; line-height:1.1}
.brand__text span:last-child{font-size:12px; color:var(--muted); font-weight:500}

.nav{
  display:flex; align-items:center; gap:18px;
}
.nav a{
  font-weight:600;
  color:rgba(17,24,39,.86);
  padding:10px 10px;
  border-radius:12px;
}
.nav a:hover{background:rgba(45,108,223,.07); color:var(--accent)}
.nav a[aria-current="page"]{
  color:var(--accent);
  background:rgba(45,108,223,.10);
}

.header__cta{
  display:flex; align-items:center; gap:10px;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:700;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover{transform:translateY(-1px); box-shadow:var(--shadow-soft)}
.btn--primary{
  border-color:transparent;
  color:#fff;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
}
.btn--ghost{
  background:transparent;
}
.badge{
  font-size:12px; font-weight:800;
  padding:6px 10px; border-radius:999px;
  border:1px solid rgba(45,108,223,.25);
  color:var(--accent);
  background:rgba(45,108,223,.06);
}

.burger{
  display:none;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
}
.burger span{
  display:block;
  width:18px; height:2px;
  background:var(--text);
  margin:4px auto;
  border-radius:2px;
  transition:transform .18s ease, opacity .18s ease;
}

/* Mobile nav drawer */
.drawer{
  display:none;
  position:fixed; inset:0;
  background:rgba(17,24,39,.44);
  z-index:90;
}
.drawer__panel{
  position:absolute; right:0; top:0; height:100%; width:min(420px, 88vw);
  background:#fff;
  border-left:1px solid var(--border);
  padding:18px;
  display:flex; flex-direction:column; gap:14px;
}
.drawer__top{display:flex; align-items:center; justify-content:space-between}
.drawer__links{
  display:flex; flex-direction:column; gap:6px;
}
.drawer__links a{
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  font-weight:700;
}
.drawer__links a:hover{border-color:rgba(45,108,223,.35); color:var(--accent)}
.drawer__footer{margin-top:auto; border-top:1px solid var(--border); padding-top:12px}

/* Sections */
.section{padding:56px 0}
.section--tight{padding:34px 0}
.section__head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:16px; margin-bottom:18px;
}
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  color:var(--accent);
  font-weight:800;
  letter-spacing:.2px;
}
.kicker i{
  width:10px; height:10px; border-radius:4px;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  display:inline-block;
}
.h2{font-size:30px; line-height:1.15; margin:0}
.lead{color:rgba(17,24,39,.74); max-width:68ch}

.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow: 0 1px 0 rgba(17,24,39,.02);
}
.card--soft{
  background:linear-gradient(180deg, rgba(45,108,223,.06), rgba(140,180,255,.10));
  border-color:rgba(45,108,223,.18);
}
.card__pad{padding:18px}
.grid{display:grid; gap:16px}
.grid-2{grid-template-columns:repeat(2, minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3, minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4, minmax(0,1fr))}

/* Hero */
.hero{
  padding:54px 0 34px;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#fff;
  position:relative;
  overflow:hidden;
}
.hero .container{position:relative; z-index:2}
.hero::before{
  content:"";
  position:absolute; inset:-20%;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,.22), transparent 50%),
    radial-gradient(circle at 78% 64%, rgba(255,255,255,.18), transparent 55%);
  transform:rotate(6deg);
}
.hero__wrap{
  display:grid; gap:18px;
  grid-template-columns: 1.2fr .8fr;
  align-items:stretch;
}
.hero__title{font-size:46px; line-height:1.04; margin:0}
.hero__subtitle{opacity:.92; max-width:70ch}
.hero__meta{
  display:flex; flex-wrap:wrap; gap:10px; margin-top:12px;
}
.pill{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.30);
  background:rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  font-weight:700;
  font-size:13px;
}
.hero__panel{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.25);
  border-radius:var(--radius-lg);
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.hero__panel h3{margin:0; font-size:16px}
.hero__panel p{margin:0; opacity:.92}
.hero__panel .btn{width:100%;     color: #000a71;}
.hero__media{
  margin-top:18px;
  border-radius:var(--radius-lg);
  border:1px solid rgba(255,255,255,.25);
  overflow:hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.media-placeholder{
  aspect-ratio: 16/7;
  background:
    linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.08)),
    url("assets/img/hero-city-panorama.jpg");
  background-size:cover;
  background-position:center;
  position:relative;
}
.media-placeholder::after{
  position:absolute; left:16px; bottom:14px;
  font-size:12px; font-weight:800;
  color:rgba(255,255,255,.92);
  background:rgba(17,24,39,.28);
  border:1px solid rgba(255,255,255,.22);
  padding:8px 10px;
  border-radius:12px;
}

/* Summary blocks */
.stat{
  display:flex; flex-direction:column; gap:6px;
}
.stat b{font-size:18px}
.muted{color:var(--muted)}
.hr{height:1px; background:var(--border); margin:14px 0}

/* Gallery */
.gallery{
  display:grid; gap:16px;
  grid-template-columns: 1.2fr .8fr;
}
.gallery__main, .gallery__side{
  border-radius:var(--radius-lg);
  overflow:hidden;
  border:1px solid var(--border);
  background:#fff;
}
.gallery__main .imgph{aspect-ratio: 16/10}
.gallery__side{
  display:grid; gap:16px; grid-template-rows: 1fr 1fr;
  padding:16px;
  background:linear-gradient(180deg, rgba(45,108,223,.04), rgba(140,180,255,.10));
}
.imgph{
  background:linear-gradient(135deg, rgba(17,24,39,.06), rgba(45,108,223,.10));
  position:relative;
}
.imgph::after{

  position:absolute; left:12px; bottom:12px;
  font-size:12px; font-weight:800;
  color:rgba(17,24,39,.72);
  background:rgba(255,255,255,.7);
  border:1px solid var(--border);
  padding:6px 10px;
  border-radius:12px;
}

/* Location map embed */
.map-embed{
  border-radius:var(--radius-lg);
  overflow:hidden;
  border:1px solid var(--border);
  min-height:360px;
  background:linear-gradient(135deg, rgba(17,24,39,.06), rgba(45,108,223,.12));
}
.map-embed iframe{
  width:100%; height:420px; border:0;
}

/* Pros / Cons */
.procon{
  display:grid; gap:16px;
  grid-template-columns: 1fr 1fr;
}
.procon h3{margin:0 0 8px}
.list-check, .list-x{list-style:none; padding:0; margin:0; display:grid; gap:10px}
.list-check li, .list-x li{
  display:flex; gap:10px; align-items:flex-start;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
}
.dot{
  width:10px; height:10px; border-radius:4px; margin-top:6px;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
}
.dot--x{
  background:linear-gradient(135deg, #ef4444, #fb7185);
}

/* Forms */
.form{
  display:grid; gap:12px;
}
.field{
  display:grid; gap:6px;
}
label{font-weight:800; font-size:13px}
input, textarea, select{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  outline:none;
  font:inherit;
  background:#fff;
}
textarea{min-height:120px; resize:vertical}
input:focus, textarea:focus, select:focus{
  border-color:rgba(45,108,223,.55);
  box-shadow: 0 0 0 4px rgba(45,108,223,.14);
}

/* Styled alert (toast) */
.toast{
  position:fixed; right:18px; bottom:18px; z-index:120;
  width:min(420px, calc(100% - 36px));
  border-radius:18px;
  background:#fff;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  padding:14px;
  transform:translateY(18px);
  opacity:0;
  pointer-events:none;
  transition:transform .18s ease, opacity .18s ease;
}
.toast.show{
  transform:translateY(0);
  opacity:1;
  pointer-events:auto;
}
.toast__top{
  display:flex; align-items:flex-start; justify-content:space-between; gap:10px;
}
.toast__title{font-weight:900}
.toast__msg{color:rgba(17,24,39,.76); margin-top:6px}
.toast__close{
  width:38px; height:38px; border-radius:14px;
  border:1px solid var(--border);
  background:#fff; cursor:pointer; font-weight:900;
}

/* Footer */
.footer{
  border-top:1px solid var(--border);
  padding:28px 0;
}
.footer__grid{
  display:grid; gap:16px;
  grid-template-columns: 1.2fr .8fr;
  align-items:start;
}
.footer a{color:rgba(17,24,39,.86)}
.footer a:hover{color:var(--accent)}
.footer__links{
  display:grid; gap:10px;
  grid-template-columns: repeat(2, minmax(0,1fr));
}
.footer__mini{
  margin-top:14px;
  display:flex; flex-wrap:wrap; gap:10px;
  color:var(--muted);
}

/* Utilities */
.chiprow{display:flex; flex-wrap:wrap; gap:10px}
.chip{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:800;
  font-size:12px;
  color:rgba(17,24,39,.78);
}
.note{
  padding:12px 12px;
  border-radius:16px;
  border:1px dashed rgba(45,108,223,.35);
  background:rgba(45,108,223,.05);
}

/* Responsive */
@media (max-width: 980px){
  .hero__wrap{grid-template-columns:1fr}
  .gallery{grid-template-columns:1fr}
  .grid-4{grid-template-columns:repeat(2, minmax(0,1fr))}
  .grid-3{grid-template-columns:repeat(2, minmax(0,1fr))}
}
@media (max-width: 760px){
  .nav, .header__cta .badge{display:none}
  .burger{display:inline-flex; align-items:center; justify-content:center;         flex-direction: column;}
  .grid-2, .grid-3{grid-template-columns:1fr}
  .procon{grid-template-columns:1fr}
  .hero__title{font-size:38px}
}

/* FOOTER (improved responsive) */
.footer{
  border-top:1px solid var(--border);
  padding:34px 0;
}
.footer__grid{
  display:grid;
  gap:18px;
  grid-template-columns: 1.1fr .9fr;
  align-items:start;
}

/* links grid: comfortable cards */
.footer__links{
  display:grid;
  gap:12px;
  grid-template-columns: repeat(2, minmax(0,1fr));
}

/* mini row wraps nicely */
.footer__mini{
  margin-top:14px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  color:var(--muted);
  align-items:center;
}
.footer__mini span{white-space:nowrap}
.footer__mini a{white-space:nowrap}

/* Tablet */
@media (max-width: 980px){
  .footer{padding:28px 0}
  .footer__grid{
    grid-template-columns: 1fr;
    gap:16px;
  }
  .footer__links{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

/* Mobile */
@media (max-width: 640px){
  .footer{padding:24px 0}
  .footer__grid{
    grid-template-columns: 1fr;
    gap:14px;
  }

  /* Make cards full-width and easier to tap */
  .footer__links{
    grid-template-columns: 1fr;
    gap:10px;
  }

  /* Better reading and alignment on small screens */
  .footer__mini{
    gap:8px;
  }
  .footer__mini span{white-space:normal}
  .footer__mini a{white-space:normal}
}

@media (min-width: 981px){
  .footer__links a.card{
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
  }
}

/* Logo in header */
.brand__mark{
  width:34px;
  height:34px;
  border-radius:12px;
  overflow:hidden;              /* обрізає по радіусу */
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#fff;              /* на випадок PNG з прозорістю */
  border:1px solid rgba(17,24,39,.10);
  box-shadow: 0 10px 20px rgba(45,108,223,.18);
}

/* the <img> inside mark */
.brand__mark img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;             /* якщо квадратний логотип/фото */
  object-position:center;
}

/* якщо логотип НЕ квадратний і треба щоб повністю вміщався без обрізки,
   просто заміни object-fit: cover; на contain */
.brand__mark--contain img{
  object-fit:contain;
  padding:4px;                  /* дає “повітря” навколо */
}

/* Optional: легкий hover-ефект для бренду */
.brand:hover .brand__mark{
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(45,108,223,.22);
}
.brand__mark{
  transition: transform .12s ease, box-shadow .12s ease;
}

/* Mobile: трохи більший логотип для читабельності */
@media (max-width: 760px){
  .brand__mark{
    width:38px;
    height:38px;
    border-radius:14px;
  }
}
