/* style.css */
:root{
  --bg:#0f1115;
  --card:#151922;
  --text:#eef2f7;
  --muted:#b8c0cc;
  --line:rgba(255,255,255,.12);
  --accent:#ff2b2b;
  --accent2:#ffd100;
  --radius:18px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(255,43,43,.12), transparent 55%),
              radial-gradient(900px 500px at 90% 20%, rgba(255,209,0,.10), transparent 55%),
              var(--bg);
  color:var(--text);
  line-height:1.55;
}

a{ color:inherit; }
.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:28px 16px 40px;
}

/* Header / Hero */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:15px 0px 30px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.brand img{
  height: 80px;
  width:auto;
  display:block;
}
.brand .name{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.brand .name strong{
    display: none;
  font-size:16px;
  letter-spacing:.2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand .name span{
  font-size: 16px;
  color: var(--muted);

  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.nav{
  display:flex;
  gap:15px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.chip{
  text-decoration:none;
  border:1px solid var(--line);
  padding:8px 10px;
  border-radius:999px;
  font-size:15px;
  color:var(--muted);
  background: rgba(255,255,255,.03);
}
.chip:hover{ border-color: rgba(255,255,255,.22); color:var(--text); }

.hero{
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-radius: var(--radius);
  overflow:hidden;
}
.heroGrid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:0;
}
.heroContent{
  padding:22px 20px 20px;
}
h1{
  margin:0 0 8px;
  font-size:35px;
  line-height:1.15;
  letter-spacing:-.4px;
}
.subtitle{
  margin:0 0 16px;
  color:var(--muted);
  font-size:15px;
}
.bullets{
  margin:0 0 18px;
  padding:0;
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.bullets li{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  padding:8px 10px;
  border-radius:999px;
  font-size:13px;
  color:var(--text);
  display:flex;
  gap:8px;
  align-items:center;
}
.dot{
  width:8px; height:8px; border-radius:50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,43,43,.15);
  flex:0 0 auto;
}

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:6px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:12px;
  text-decoration:none;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight:600;
  font-size:14px;
  white-space:nowrap;
}
.btnPrimary{
  background: linear-gradient(135deg, rgba(255,43,43,.95), rgba(255,43,43,.75));
  border-color: rgba(255,43,43,.35);
}
.btn:hover{ filter:brightness(1.04); }

.heroMedia{
  position:relative;
  min-height:260px;
  background:#0b0d12;
}
.heroMedia img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  opacity:.95;
}
.mediaOverlay{
  position:absolute;
  inset:auto 14px 14px 14px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.45);
  border-radius: 14px;
  padding:10px 12px;
  backdrop-filter: blur(6px);
  color: var(--text);
  font-size:13px;
}
.mediaOverlay strong{ display:block; font-size:14px; margin-bottom:2px; }
.mediaOverlay span{ color: var(--muted); }

/* Sections */
.section{
  margin-top:40px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding:18px;
}
.section h2{
  margin:0 0 10px;
  font-size:30px;
  letter-spacing:-.2px;
}
.muted{ color: var(--muted); }

.twoCol{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  align-items:start;
}

.card{
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  border-radius: 16px;
  padding:14px;
}
.card h3{
  margin:0 0 8px;
  font-size:25px;
}

.list{
  margin:0;
  padding-left:18px;
  color: var(--text);
}
.list li{ margin:6px 0; }

/* Asukoha overlay klikatav */
.mediaLink{
  text-decoration: none;
  cursor: pointer;
  display: block;          /* et kogu plokk oleks klikitav */
}
.mediaLink:hover{
  border-color: rgba(255,255,255,.35);
  filter: brightness(1.04);
}
.mediaLink:focus-visible{
  outline: 2px solid rgba(255,255,255,.45);
  outline-offset: 2px;
}

/* Price table */
.tableWrap{
  overflow:auto;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
}
table{
  width:100%;
  border-collapse:collapse;
  min-width: 200px;
}
th, td{
  padding:12px 12px;
  border-bottom:1px solid rgba(255,255,255,.10);
  text-align:left;
  font-size:16px;
}
th{
  position:sticky;
  top:0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  color: var(--muted);
  font-weight:600;
}
tr:last-child td{ border-bottom:none; }

.note{
  margin-top:10px;
  font-size:13px;
  color: var(--muted);
}

/* Logos row */
.logos{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:center;
  margin-top:10px;
}
.logos .logoBox{
  border:1px solid var(--line);
  border-radius: 14px;
  padding:10px 12px;
  background: rgba(255,255,255,.03);
  display:flex;
  align-items:center;
  justify-content:center;
  height:58px;
}
.logos img{
  height:45px;
  width:auto;
  display:block;
}

/* Logod klikitavaks */
.logoLink{
  text-decoration: none;
  cursor: pointer;
}
.logoLink:hover{
  border-color: rgba(255,255,255,.35);
  filter: brightness(1.04);
}
.logoLink:focus-visible{
  outline: 2px solid rgba(255,255,255,.45);
  outline-offset: 2px;
}


/* Contacts */
.contactGrid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
}
.kv{
  margin:0;
  display:grid;
  grid-template-columns: 140px 1fr;
  gap:8px 10px;
  font-size:14px;
}
.kv dt{ color: var(--muted); }
.kv dd{ margin:0; }
.people{
  display:grid;
  gap:10px;
}
.person{
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  border-radius: 16px;
  padding:12px;
}
.person strong{ display:block; margin-bottom:2px; }
.person span{ display:block; color: var(--muted); font-size:13px; margin-bottom:8px; }
.person a{ text-decoration:none; border-bottom:1px dashed rgba(255,255,255,.25); }
.person a:hover{ border-bottom-color: rgba(255,255,255,.55); }

/* Footer */
footer{
  margin: 50px 0px 0px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  background: rgba(255,255,255,.03);
}
.footerTop{
  padding:16px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.footerTop small{ 
    color: var(--muted);
}

/* Responsive */
@media (max-width: 860px){
  .heroGrid{ grid-template-columns: 1fr; }
  .heroMedia{ min-height: 220px; }
  .twoCol{ grid-template-columns: 1fr; }
  .contactGrid{ grid-template-columns: 1fr; }
  h1{ font-size: 30px; }
  .kv{ grid-template-columns: 120px 1fr; }
  .topbar{
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .brand{
    width: 100%;
  }
  .nav{
    width: 100%;
    justify-content: flex-start; /* chipid samale reale, vajadusel murravad */
    margin-top: 10px;
  }
  .chip{white-space: nowrap;}
  .section h2{font-size:27px;}
  .card h3{font-size:21px;}
}

@media (max-width: 420px){
  .brand img{ height: 75px; }
  .chip{ font-size:12px; padding:7px 9px; }
  .btn{ width:100%; }
  
}

@media (max-width: 350px){
  .kv{ grid-template-columns: 1fr; }
}

@media (min-width: 861px){
  .brand .name span{
    font-size: 20px;
    padding-left: 50;
  }
}