*{
  box-sizing:border-box;
}

:root{
  --navy:#0b1730;
  --text:#506078;
  --blue:#0098e8;
  --line:#dce5ef;
  --soft:#f4f7fb;
  --white:#ffffff;
}

html,body{
  margin:0;
  min-height:100%;
}

body{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  color:var(--navy);
  background:
    radial-gradient(circle at 15% 5%,rgba(0,152,232,.12),transparent 24%),
    radial-gradient(circle at 90% 90%,rgba(0,152,232,.08),transparent 25%),
    linear-gradient(135deg,#f7faff 0%,#eef3f8 100%);
}

.page{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:42px 22px;
}

.language-card{
  width:min(860px,100%);
  background:rgba(255,255,255,.96);
  border:1px solid rgba(196,210,225,.8);
  border-radius:28px;
  padding:42px;
  box-shadow:0 30px 90px rgba(17,40,70,.12);
}

.brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  text-align:left;
}

.brand-mark{
  width:58px;
  height:58px;
  border:2px solid #97a4b4;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-weight:900;
  letter-spacing:-2px;
  font-size:18px;
}

.brand-name{
  display:flex;
  flex-direction:column;
}

.brand-name span{
  font-weight:900;
  letter-spacing:.05em;
  font-size:18px;
}

.brand-name small{
  color:var(--text);
  margin-top:5px;
  font-size:12px;
}

.divider{
  height:1px;
  background:var(--line);
  margin:30px 0 34px;
}

.intro{
  text-align:center;
}

.eyebrow{
  margin:0 0 10px;
  color:var(--blue);
  font-size:11px;
  font-weight:900;
  letter-spacing:.16em;
}

h1{
  margin:0;
  font-size:clamp(34px,5vw,52px);
  letter-spacing:-.045em;
  line-height:1.02;
}

.subtitle{
  margin:14px 0 0;
  color:var(--text);
  font-size:16px;
}

.languages{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-top:38px;
}

.language{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:16px;
  min-height:122px;
  padding:24px;
  text-decoration:none;
  color:var(--navy);
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  transition:.2s ease;
  box-shadow:0 8px 24px rgba(25,45,75,.045);
}

.language:hover{
  border-color:#75cfff;
  transform:translateY(-3px);
  box-shadow:0 16px 35px rgba(0,130,205,.10);
}

.language-copy{
  display:flex;
  flex-direction:column;
  gap:5px;
}

.language-copy strong{
  font-size:23px;
}

.language-copy span{
  color:var(--text);
  font-size:13px;
}

.arrow{
  color:var(--blue);
  font-size:28px;
  transition:.2s ease;
}

.language:hover .arrow{
  transform:translateX(4px);
}

.flag{
  width:56px;
  height:38px;
  border-radius:6px;
  overflow:hidden;
  box-shadow:0 0 0 1px rgba(0,0,0,.08);
}

.flag-it{
  display:grid;
  grid-template-columns:repeat(3,1fr);
}

.flag-it span:nth-child(1){background:#009246;}
.flag-it span:nth-child(2){background:#fff;}
.flag-it span:nth-child(3){background:#ce2b37;}

.flag-uk{
  display:grid;
  place-items:center;
  background:#0b2b70;
  color:#fff;
  font-weight:900;
  letter-spacing:.12em;
  font-size:14px;
  position:relative;
}

.flag-uk:before,
.flag-uk:after{
  content:"";
  position:absolute;
  background:#fff;
  opacity:.92;
}

.flag-uk:before{
  width:100%;
  height:7px;
  top:15px;
  left:0;
}

.flag-uk:after{
  width:7px;
  height:100%;
  top:0;
  left:24px;
}

.flag-uk{
  text-shadow:0 1px 2px rgba(0,0,0,.4);
}

.note{
  max-width:650px;
  margin:34px auto 0;
  text-align:center;
  color:#718098;
  font-size:13px;
  line-height:1.6;
}

footer{
  margin-top:34px;
  padding-top:20px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:#8a98aa;
  font-size:11px;
  letter-spacing:.03em;
}

@media (max-width:700px){
  .language-card{
    padding:30px 20px;
    border-radius:20px;
  }

  .brand{
    align-items:flex-start;
  }

  .brand-mark{
    width:48px;
    height:48px;
  }

  .brand-name span{
    font-size:14px;
  }

  .brand-name small{
    font-size:10px;
  }

  .languages{
    grid-template-columns:1fr;
  }

  footer{
    flex-direction:column;
    align-items:center;
    text-align:center;
  }
}


/* Official EGOL GROUP logo */
.brand-logo-only{
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
}

.official-logo{
  display:block;
  width:min(460px, 82vw);
  height:auto;
  max-width:100%;
  object-fit:contain;
}

@media (max-width:700px){
  .official-logo{
    width:min(380px, 92vw);
  }
}
