/* GigaChat release masthead, resource index and colophon. */
#site-header.release-header, #start.release-links, footer.release-footer {
  --green:#9ff1bd;
  --line:#25372e;
  --mono:'SFMono-Regular',Consolas,'Liberation Mono',monospace;
  color:#f0f3ec;
  font-family:Arial,Helvetica,sans-serif;
  -webkit-font-smoothing:antialiased;
}
#site-header.release-header {
  z-index:10; position:sticky; top:0; display:grid; align-items:center;
  grid-template-columns:minmax(max-content,1fr) auto minmax(max-content,1fr);
  gap:0 clamp(12px,1.5vw,30px); height:5.25rem; min-height:0;
  padding:0 4.7%; background:#030b08; border-bottom:1px solid #ffffff13;
}
#site-header > .brand, .release-footer > .brand {display:flex;align-items:center;justify-self:start;min-width:0}
:is(#site-header,.release-footer) .logo-slot {display:block;position:relative;height:1.971rem;aspect-ratio:3265 / 563}
html:lang(ru) :is(#site-header,.release-footer) .logo-slot {aspect-ratio:2525 / 563}
:is(#site-header,.release-footer) .logo-slot img {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:none}
html:not(:lang(ru)) :is(#site-header,.release-footer) [data-logo-lang="en"] {display:block}
html:lang(ru) :is(#site-header,.release-footer) [data-logo-lang="ru"] {display:block;filter:invert(1)}
#site-header.release-header nav {
  display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;order:0;
  gap:clamp(12px,1.7vw,34px); width:auto;margin:0;padding:0;font-size:.875rem;line-height:1.2;color:#b6c0b9;
}
#site-header.release-header nav a, #site-header.release-header #headerLanguage {
  display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;
}
#site-header.release-header #headerLanguage {justify-self:end;justify-content:center;min-width:44px;font-size:.875rem}
#site-header.release-header :is(nav a,#headerLanguage):hover,.release-footer .footer-blog:hover {color:var(--green)}
#start.release-links {
  border-block:1px solid var(--line); background:#060f0b;
  padding:clamp(2.75rem,5.5vw,5rem) 4.7%;
}
#start .release-links-inner {width:min(100%,78rem);margin-inline:auto}
#start.release-links h2 {font-family:inherit;font-size:clamp(1.95rem,3.1vw,3.05rem);font-weight:400;line-height:1.07;letter-spacing:0;margin:0 0 clamp(1.35rem,2.4vw,2.25rem)}
#start .resource-layout {display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:clamp(1.4rem,3vw,3.5rem)}
#start .resource-collection {
  display:flex;align-items:end;isolation:isolate;position:relative;min-height:15rem;
  overflow:hidden;padding:clamp(1.25rem,2.4vw,2.4rem);border:1px solid #345444;background:#10271a;color:#eff6eb;
}
#start .resource-collection::before {
  content:''; position:absolute;z-index:-1;inset:-12% -12% 0 0;
  background:linear-gradient(0deg,#03100be8,#07170c05 77%),
             linear-gradient(90deg,#06160ee3 0%,#07190f44 55%,transparent 83%),
             url('assets/gigaam-collection.jpeg') 63% 68% / cover;
}
#start .collection-copy h3 {margin:0 0 1rem;font-size:clamp(1.6rem,2.25vw,2.6rem);font-weight:400;line-height:1.05;letter-spacing:0;max-width:12em}
#start .collection-provider {font:.79rem/1.4 var(--mono);color:#d7f1df}
#start .resource-layout i {font:normal 1.15rem/1 var(--mono);color:#b9dec3;flex:none}
#start .collection-provider i {margin-inline-start:.35rem}
#start .resource-layout ul {display:grid;list-style:none;padding:0;margin:0}
#start .resource-layout li {min-width:0;border-top:1px solid #304538}
#start .resource-layout li:last-child {border-bottom:1px solid #304538}
#start .resource-layout li a {min-height:3.85rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.65rem .25rem .65rem 0}
#start .resource-layout li strong {display:block;font-size:1.12rem;line-height:1.25;font-weight:500;overflow-wrap:anywhere}
#start .resource-layout li small {display:block;margin-top:.2rem;font:.72rem/1.4 var(--mono);color:#a3b8aa}
@media(hover:hover) {
  #start .resource-collection:hover{border-color:#99c4a8}
  #start .resource-collection:hover .collection-provider{text-decoration:underline;text-underline-offset:.22em}
  #start .resource-layout li a:hover strong{color:var(--green)}
}
footer.release-footer {
  display:grid;align-items:center;grid-template-columns:auto 1fr auto auto;
  grid-template-areas:"logo motto blog language";gap:.5rem clamp(1.25rem,3vw,3rem);
  padding:2.75rem 4.7%;border-top:1px solid var(--line);background:#030b08;
}
.release-footer > .brand{grid-area:logo}
.release-footer .footer-motto {grid-area:motto;font: .625rem/1.5 var(--mono);letter-spacing:.06em;color:#758b7a}
.release-footer .footer-blog{grid-area:blog;display:inline-flex;align-items:center;justify-self:end;min-height:44px;font-size:.9rem;color:#b1c4b7}
.release-footer :is(.footer-language,.lang-menu){grid-area:language;justify-self:end;min-width:0;max-width:100%}
.release-footer #siteLanguage {min-height:44px;max-width:min(12rem,100%);border:none;border-radius:0;background:transparent;color:#c5d6ca;font:.8rem/1 var(--mono);padding:.4rem;cursor:pointer}
.release-footer #siteLanguage option{background:#071710;color:#f0f3ec}
@media(min-width:801px) and (max-width:1100px){
  #site-header.release-header{padding-inline:2.5%;column-gap:12px}
  #site-header.release-header nav{gap:12px;font-size:.8125rem}
}
@media(max-width:800px){
  #site-header.release-header{
    position:relative;grid-template-columns:minmax(0,1fr) auto auto;
    height:auto;min-height:4.375rem;padding:0 6%;column-gap:12px;
  }
  #site-header.release-header .desktop-only,#site-header.release-header nav a.desktop-only{display:none}
  #site-header.release-header nav{flex-wrap:wrap;justify-content:flex-end;font-size:.8125rem;gap:0 clamp(8px,2vw,20px)}
  #site-header .header-wordmark {height:auto;width:min(100%,9.2rem)}
  html:lang(ru) #site-header .header-wordmark {width:min(100%,7.12rem)}
  #start.release-links {padding-inline:6%}
  footer.release-footer{padding:2rem 6%}
}
@media(max-width:700px){
  #start .resource-layout {grid-template-columns:1fr;gap:1.2rem}
  #start .resource-collection {min-height:clamp(10.5rem,43vw,16rem)}
  #start .resource-layout ul{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:1.15rem}
  #start .resource-layout li:nth-last-child(-n+2){border-bottom:1px solid #304538}
  #start .resource-layout li:last-child:nth-child(odd){grid-column:1 / -1}
  #start .resource-layout li a{min-height:4.5rem;height:100%;gap:.4rem}
  #start .resource-layout li strong{font-size:1rem}
  #start .resource-layout li small{font-size:.68rem}
}
@media(max-width:670px){
  footer.release-footer{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"logo language" "motto blog";gap:.2rem .8rem}
  .release-footer .footer-motto{max-width:none;text-align:left;font-size:.5rem;line-height:1.7}
}
@media(max-width:455px){
  #site-header.release-header{padding-inline:clamp(6px,calc(17vw - 52px),6%);grid-template-columns:minmax(64px,1fr) minmax(0,max-content) auto}
  #site-header.release-header nav {gap:0 clamp(7px,calc(14vw - 43px),20px);max-width:70vw}
  #site-header.release-header nav a {text-align:center;overflow-wrap:anywhere}
}
@media(max-width:360px){
  #site-header.release-header{column-gap:10px}
  #site-header.release-header nav{font-size:.75rem}
}
@media(max-width:800px){
  #site-header > .brand{width:100%;max-width:9.2rem}
  html:lang(ru) #site-header > .brand{max-width:7.12rem}
}

@media (min-width:761px) {
  footer.release-footer {
    grid-template-columns:minmax(0,1fr) auto auto;
    grid-template-rows:1.35rem auto;
    grid-template-areas:"logo blog language" "motto blog .";
    row-gap:.85rem;
  }
  .release-footer .footer-motto, .release-footer .footer-products {align-self:start}
  .release-footer > .brand,
  .release-footer .footer-language {
    align-self:start;
    display:flex;
    align-items:center;
    height:1.35rem;
  }
}
