:root {

    --font-main-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;
    --font-main-size: 20px;
}

@font-face {
    font-family: 'Dagestan';
    src: local('Dagestan'), url('../font/dagestan.ttf') format('truetype');
}

html {
    box-sizing: border-box;
    font-size: var(--font-main-size);
    line-height: calc(var(--font-main-size) * 1.75);
    scroll-behavior: smooth;
    font-family: var(--font-main-family);
    height: 100%;
    width: 100%;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

body {
    height: 100%;
    scroll-snap-type: block mandatory;
    padding: 0;
    margin: 0;
    background-color: #fff;
    color: #000;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border: 0;
}

nav summary {
    outline: none;
    font-size: 1.15em;
}

van summary::-webkit-details-marker {
    display: none
}

nav summary::-webkit-details-marker,
nav summary::marker {
    display: none;
    content: "";
}

.nav_toggle {
    position: fixed;
    top: 0.5em;
    right: 0.5em;
    border-radius: 50%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background: #000;
    padding: 0.4em;
    width: 2em;
    height: 2em;
    z-index: 35;
    border: 1px solid transparent;
    transition: all 0.5s;
}

.nav_toggle b {
    display: block;
    background-color: #fff;
    margin: .15em;
    height: 2px;
    flex: 0 0 100%;
    opacity: 1;
    transition: all 0.5s;
    position: relative;
    top: 0;
}

nav details[open] .nav_toggle {
    background-color: #ccc;
    transition: all 0.5s;

}

nav details[open] .nav_toggle {}

nav details[open] .nav_toggle b:nth-child(2) {
    transform: rotate(45deg);
    transform-origin: center center;
}

nav details[open] .nav_toggle b:nth-child(odd) {
    transform: rotate(-45deg);
    transform-origin: center center;
    top: calc(.3em + 2px);
}

nav details[open] .nav_toggle b:nth-child(3) {
    transform: rotate(45deg);
    transform-origin: center center;
    top: calc(-.3em - 2px);
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


nav details .menu-content {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    color: #fff;
    transition: all 0.5s;
    z-index: 25;
}

nav details[open] .menu-content {
    animation-name: fadeInDown;
    animation-duration: 0.5s;
}

nav ul,
nav li {
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 400px;
    max-width: 100%;
}

nav ul a {
    color: #fff;
    text-decoration: none;
    font-size: 1.25rem;
    display: block;
    padding: .25rem .5rem;
    margin: 0.3rem 1rem;
    position: relative;
    background: rgba(28, 43, 57, 0);
    box-shadow: inset 0 0 0 1px transparent;
}

nav ul a:hover {
    box-shadow: inset 0 0 0 1px #fff;
}

nav ul a::before {
    content: " ";
    top: 0;
    position: absolute;
    opacity: 0;
    left: -2rem;
    background: #fff;
    aspect-ratio: 1;
    height: 100%;
}

nav ul a:hover::before {
    opacity: 1;
}

img.circle {
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
    overflow: hidden;
}
img.contain1x1
{
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center center;
}
div.columns-3 img {
    width: 100%;
}

.icon {
    width: 4rem;

}

@media only screen and (min-width:768px) {
    div.columns-3 {
        column-count: 2;
        column-gap: 4rem;
        column-rule: 1px solid silver;
    }
}

@media only screen and (min-width:1024px) {
    div.columns-3 {
        column-count: 3;

    }
}

div.columns p,
div.columns ul {
    page-break-inside: avoid;
}

ul.pills {
    display: block;
    display: grid;
    width: 100%;
    list-style-type: none;
    margin: 1rem 0;
    padding: 0;
    text-align: center;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 1rem;
}

ul.pills li {

    background-color: #fff;
    margin: 0.3em;
    padding: 2em 1.5em;
    color: #000;
    position: relative;
    top: 0;
    left: 0;
    transition: all 0.3s;
}

ul.pills li:hover {

    background-color: #000;
    color: #fff;
    box-shadow: 3px 5px 5px 0 rgba(0, 0, 0, 0.5);
    top: -5px;
}

ul.pills li a {
    display: block;
    padding: 2em 1.5em;
    margin: -2em -1.5em;

    color: currentColor;
    text-decoration: none;
}

.snapper {
    height: 100vh;
    overflow-y: scroll;
    scroll-behavior: smooth;

    scroll-snap-type: y mandatory; 
}

section {
    scroll-snap-align: start;
    /** align-items: center; **/
    background-color: #fff;
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-color: #fff;
    padding: 5vw;
    position: relative;
}

section.bg {

    background-image: linear-gradient(to right top, #052137, #005266, #238885, #74bd94, #d6eea0);
    min-height: 100vh;

}
.section-content-narrow
{
    max-width: 50em;
    margin: 0 auto;

}
img.sectionbg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    z-index: 0;


}

#top
{
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#logo
{text-align: center;}
#logo img {
    aspect-ratio: 1;
    max-height: 50vmin;
    transition: all 1s;
    transform: rotate(90deg);
    background-color: rgba(255, 255, 255, 0);
}

#logo img:hover {
    max-height: 75vmin;
    transform: rotate(0);
    background-color: rgba(255, 255, 255, 1);
}

h1 {
    font-size: clamp(2.5rem, calc(2.5rem + 6vw), 8rem);
    font-family: Dagestan;
    font-weight: normal;
    margin: 5vw 0;
    line-height: 1.25;
    position: relative;
}

h1 {
    text-align: center;
}

section>h1:first-child {
    margin-top: 0;
}

h2 {
    font-size: clamp(2rem, calc(2rem + 4vw), 4rem);
    font-family: Dagestan;
    font-weight: normal;
    line-height: 1.25;
    text-align: center;
}

dt {
    font-weight: bold;
    color: #25525e;
}

hr {
    background-color: transparent;
    height: 1rem;
    border-color: #000;
    border-width: 0 0 1px 0;
    border-style: solid;
    margin: 2rem auto;
    overflow: visible;
}
hr.logo
{
    width: 80%;

}
hr.logo::after {
    position: relative;
    display: block;
    content: "";
    width: 2rem;
    height: 2rem;
    left: calc(50% - 1rem);
    top: 0;
    background-color: #fff;
    background-image: url("../img/layout/logo-neg-black.svg");
    background-size: contain;


}
.shadow
{
    box-shadow: 2px 2px 1em 0 #999;
}
.tabs {
    width: 100%;
    max-width: 100em;
    position: relative;
}
.tabs.narrow
{
    max-width: 50em;
    margin: 0 auto;
}
.tabs .tabscontent {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #ddd;
}

.tabs label {
    flex: 0 0 100px;
    max-width: 200px;
    display: block;
    padding: 1vw;
    background-color: #ddd;
    border: 1px solid #ddd;
    border-width: 1px 1px 0 1px;
    cursor: pointer;
    position: relative;
    top: 0;
    transition: all 0.3s;
    margin-right: 2%;
    margin-top: 2%;
}

.tabs label~label {
}

.tabs label img {
    aspect-ratio: 1;
    width: 100%;
    object-fit: contain;
    object-position: center center;
}



.tabs input {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.tabs input:checked+label {
    background-color: #fff;

    top: 1px;
    z-index: 10;
}

.tabs .content {
    display: none;
    padding: 1rem;
    border: 1px solid transparent;
    background: #fff;
    order: 10;
    flex: 0 0 100%;
}



.tabs input:checked+label+.content {
    display: block;
    border: 1px solid #ddd;

}

.tabs .content .img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tabs img {
    max-width: 100%;
}

img.square
{
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center center;
}

#ui .content {
    text-align: center;
}

#ui .content img {
    margin: 0 auto;
}