@font-face {
    font-family: "Terranexpandital";
    src: url(../fonts/Terranexpandital.ttf) format("truetype");
    font-display: swap;
}

/* form input[type="text"] {
    text-transform: lowercase;
} */

a:active,
a:focus {
    outline: none;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 10px;
    padding-left: 10px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 100%;
    background: linear-gradient(to top left, #ffe8da 35%, #a74001 65%);
    position: relative;
    margin: 5px;
    box-shadow: 0 2px 6px #363636;
    font-size: 20px;
    color: #020202;
    transition: 0.2s;
}

.social-icons a img {
    width: 22px;
    height: 22px;
    margin-top: 10px;
}

.social-icons a img {
    z-index: 2;
    position: relative;
    line-height: 40px;
}

.social-icons a:hover {
    background: linear-gradient(to bottom right, #ffe8da 35%, #a74001 65%);
    box-shadow: none;
}

body {
    background: #FCECDD;
    padding: 0;
    margin: 0;
}

header {
    position: sticky;
    top: 0;
    z-index: 999;
    display: block;
    width: 100%;
    height: 50px;
    background-color: #130903;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.8);
    padding: 0;
    margin: 0 auto;
}

.logo {
    display: inline-block;
    vertical-align: top;
    padding: 0;
    margin-top: 6px;
}

.logo a {
    text-decoration: none;
    font-family: "Terranexpandital";
    color: #fff;
    font-size: 40px;
}

.brown {
    color: #d65600;
}
#menu {
    width: 40px;
    height: 40px;
    position: relative;
    margin: 4px 10px 4px 10px;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
    cursor: pointer;
}
#menu span {
    display: block;
    position: absolute;
    height: 6px;
    width: 100%;
    background: #ffffff;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}
#menu span:nth-child(1) {
    top: 6px;
    transform-origin: left center;
}
#menu span:nth-child(2) {
    top: 18px;
    transform-origin: left center;
}
#menu span:nth-child(3) {
    top: 30px;
    transform-origin: left center;
}
#menu.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 6px;
    left: 6px;
}
#menu.open span:nth-child(2) {
    width: 0%;
    opacity: 0;
}
#menu.open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 34px;
    left: 6px;
}
/* #menu {
    display: inline-block;
    border-bottom: 15px double #FCECDD;
    border-top: 5px solid #FCECDD;
    height: 5px;
    width: 30px;
    cursor: pointer;
    padding: 0;
    margin: 9px 10px 0px 14px;
} */

nav {
    display: inline-block;
    padding: 0;
    margin: 0;
}

nav>ul {
    display: none;
    position: absolute;
    top: 51px;
    width: 180px;
    z-index: 999;
    background-color: #130903;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav>ul>li>a {
    display: block;
    background: #FCECDD;
    text-decoration: none;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    color: #130903;
    border: 1px solid #130903;
    border-radius: 1px;
    padding: 6px 26px;
    margin: 10px;
}

nav>ul>li>a:hover {
    text-decoration: underline;
}

.search {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0;
    margin: 0 auto;
}

.search input {
    width: 210px;
    height: 34px;
    padding-left: 10px;
    border: 2px solid #130903;
    border-radius: 1px;
    outline: none;
    background: #FCECDD;
    color: #000000;
    margin: 20px 0 0 0;
}

.search button {
    border: none;
    background: #130903;
    color: #F9F0DA;
    cursor: pointer;
    padding: 12px;
    margin: 0;
}

.search button:hover {
    background: #a74001;
}

main {
    display: block;
    width: 98%;
    background: #FCECDD;
    text-align: center;
    font-family: 'Arial', sans-serif;
    padding: 20px 0;
    margin: 0 auto;
}

.grid {
    display: grid;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1fr;
    grid-auto-flow: dense;
    justify-items: center;
}

.route {
    display: block;
    color: #000;
    text-decoration: none;
    border-bottom: solid 1px transparent;
    border-image: linear-gradient(to right, #ebebeb, #130903, #ebebeb);
    border-image-slice: 1;
    padding: 0 0 10px 0;
    margin: 0 0 10px 0;
}

.route>a {
    display: inline-block;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    padding: 0 0 10px 0;
}

.route>a:hover {
    color: #a74001;
}

.route>h1,
.route>h2 {
    font-size: 20px;
}

hr {
    border: 0;
    height: 1px;
    background: #130903;
    background-image: -webkit-linear-gradient(left, #ccc, #130903, #ccc);
    background-image: -moz-linear-gradient(left, #ccc, #130903, #ccc);
    background-image: -ms-linear-gradient(left, #ccc, #130903, #ccc);
    background-image: -o-linear-gradient(left, #ccc, #130903, #ccc);
}

.alphabet {
    display: block;
    width: 98%;
    text-align: center;
    font-size: 24px;
    padding: 0;
    margin-bottom: 30px;
}

.alphabet a {
    color: #130903;
    text-decoration: none;
}

.alphabet a:hover {
    text-decoration: underline;
}

.listRussians {
    display: inline-block;
    width: 49%;
}

.listOverseas {
    display: inline-block;
    width: 49%;
    vertical-align: top;
}

article {
    display: inline-block;
    position: relative;
    width: 270px;
    height: auto;
    box-shadow: 0 10px 6px -6px black;
    padding: 0;
    margin: 5px;
}

article>a {
    text-decoration: none;
}

article>a:hover .name {
    background: rgb(4, 55, 151, 0.0);
    transition: 0.3s;
}

article>a>img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgb(167, 64, 1, 0.8);
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    color: #ffffff;
    text-align: center;
    line-height: 2.5em;
    padding: 0;
    margin: 0;
}

.biograf {
    display: block;
    background: #8d3600;
    width: 98%;
    height: auto;
    min-height: 144px;
    border-radius: 10px;
    font-size: 15px;
    color: #ffffff;
    text-align: left;
    padding: 10px 1%;
    margin: 10px 0;
}

.biograf>h1,
.biograf>h2 {
    font-size: 20px;
    margin: 4px 0;
}

.biograf>a,
.biograf>h3>a {
    color: #3cff00;
    text-decoration: none;
}

.biograf>a:hover,
.biograf>h3>a:hover {
    color: #fff;
    text-decoration: none;
}

.radial {
    width: 140px;
    border-radius: 50%;
    box-shadow: 0px 10px 8px -6px rgba(0, 0, 0, 0.8);
    float: left;
    margin: 0 10px 10px 0;
}

.categ {
    display: block;
    width: 98%;
    font-weight: bold;
    padding: 1%;
}

.gallery {
    display: grid;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1fr;
    grid-auto-flow: dense;
    justify-items: center;
    padding: 0;
    margin: 0 auto;
}

.item {
    display: inline-block;
    position: relative;
    width: 270px;
    height: auto;
    box-shadow: 0px 12px 8px -6px rgba(0, 0, 0, 0.8);
    padding: 0;
    margin: 5px;
}

.item>img {
    display: block;
    width: 270px;
    height: auto;
}

.item:hover {
    transition: 0.3s;
    box-shadow: none;
}

.item2 {
    display: inline-block;
    position: relative;
    width: 150px;
    height: auto;
    box-shadow: 0px 12px 8px -6px rgba(0, 0, 0, 0.8);
    padding: 0;
    margin: 5px;
}

.item2>img {
    display: block;
    width: 150px;
    height: auto;
}

.item2:hover {
    transition: 0.3s;
    box-shadow: none;
}

.pages>a {
    display: inline-block;
    background: #a15f3f;
    border-radius: 2px;
    font-size: 17px;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 18px;
    margin: 20px 2px 0 2px;
}

.pages>a:hover,
.now {
    display: inline-block;
    background: #505050;
    border-radius: 2px;
    font-size: 17px;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 18px;
    margin: 20px 2px 0 2px;
}

.abc {
    list-style: none;
    font-family: "Roboto-Italic", sans-serif;
    color: #000;
    padding: 0;
    margin: 0;
}

.abc>li {
    border-bottom: solid 1px transparent;
    border-image: linear-gradient(to right, #f8e6b8, #130903, #f8e6b8);
    border-image-slice: 1;
    margin-bottom: 10px;
}

.abc>li>a {
    color: #000;
    line-height: 1.5em;
    text-decoration: none;
}

.abc>li>a:hover {
    color: #8d0606;
}

.abc>h3 {
    margin-top: -60px;
    padding-top: 60px;
    pointer-events: none;
}

.totop {
    width: 50px;
    position: fixed;
    bottom: 10px;
    left: 10px;
    cursor: pointer;
    display: none;
}

.links {
    display: block;
    width: 96%;
    text-align: center;
    padding: 0 2% 20px 2%;
}

footer {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #130903;
    font-family: "Terranexpandital";
    font-size: 22px;
    color: white;
    box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.8);
    padding: 10px 0;
    margin: 0 auto;
}
