@font-face {
	font-family: 'roboto light';
	src: 
		local('roboto light'),
		url('/css/fonts/roboto-light.ttf') 
		format('truetype');
}

@font-face {
	font-family: 'roboto regular';
	src: 
		local('roboto regular'),
		url('/css/fonts/roboto-regular.ttf') 
		format('truetype');
}

:root {/*
    --main-theme-color: rgba(42, 57, 86, 1); *//*#2f4f4f;*//*
    --main-stripe-color: rgba(42, 57, 86, 0.2);*/
    
    --main-theme-color: hsl(220, 34.4%, 25.1%); /*#2f4f4f; */
    --main-stripe-color: hsla(220, 34.4%, 25.1%, 0.2); 
    --light-stripe-color: hsla(220, 34.4%, 25.1%, 0.1); 
}

* {
    padding: 0;
    margin: 0;
}

html {
    font-family: 'roboto light', serif;
    font-size: 16px;
}

body {
    background-color: #e0e0e0;/*#2f4f4f;*/
    color: #333333;
}

body > * {
    width: 100%;
    max-width: 75em;

    margin: 0 auto;
}

body > header {
    background-color: white;

    padding: 1em;

    border-top: 1em solid var(--main-theme-color);

    display: grid;

    grid-template-columns: 300px auto;

    box-sizing: border-box;
    min-height: fit-content;
}

body > header > img {
    width: 300px;
}

body > header > nav {
    text-align: right;

    padding: 0.5em 0;
}

body > header > nav > a {
    text-decoration: none;
    text-transform: uppercase;

    font-family: sans-serif;
    font-weight: normal;

    color: #666666;

    display: inline-block;

    padding: 0.5em 1em;

    margin-top: 2em;

    border-right: 0.2em solid orange;
}
body > footer {
    background-color: var(--main-theme-color);
    color: white;

    padding: 0.5em 1em;

    box-sizing: border-box;
}

body > footer > p {
    text-align: center;

    margin: 0.5em 0;
}

body > aside {
    position: fixed;

    top: 1em;
    right: 1em;

    box-shadow: 0 0 0.5em #999999;
    box-sizing: border-box;

    border-radius: 0.5em;

    max-width: 25em;
    width: calc(100% - 2em);

    padding: 1.5em 2em;

    background-color: white;
}

body > main {
    padding: 1em 0;
    box-sizing: border-box;
}

body > main.management {
    padding: 0;
}
/*
body > main.text-over-images > section:first-of-type {
    background-image: url('/images/1.jpg');
}

body > main.text-over-images > section {
    background-clip: border-box;
    background-size: cover;

    min-height: 500px;
    padding: 2em;

    margin: 1em 0;
}

body > main.text-over-images > section > * {
    background-color: rgba(255, 255, 255, 0.8); 

    padding: 10px;
}

body > main.text-over-images > section > p {
    padding: 1em 2em;
}

*/

body.management {
    background-image: url('/images/6.jpg');
}

body.about-us {
    background-image: url('/images/1.jpg');
}

body.about-us > main > section {
    padding: 1em 0;
}

body.about-us > main {
    padding: 0;
}

body.about-us section > img {
    display: none;
}

body.text-over-images {
    background-clip: border-box;
    background-size: cover;
}

body.text-over-images > main > section {
    background-color: rgba(255, 255, 255, 0.85); 
}


body > main > section {
    padding: 1px 0 1em;
    margin: 1em auto;

    background-color: white;
}

body > main > section > form {
    margin: 5em auto 2em;
}

body > main > section > * {
    margin: 1em;
}

body > main > section > h1 {
    margin-left: 1em;
    margin-right: 1em;
}

body > main > section > p {
    margin-left: 1.5em;
}

body > main > section > img {
    margin: 0;

    width: 100%;
}

body > main.management > section {
    box-sizing: border-box;

    display: grid;

    grid-template-columns: 1fr 1fr 1fr;

    grid-template-areas: "title title title"
                         "profile bio   bio";
}

body > main.management > section > div {
    margin: 0 2em;
}

body.text-over-images > main > section:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.85);

    margin: 2em auto;
}

body > main.management > section:nth-of-type(odd) {
    background-color: var(--light-stripe-color);
    background-color: rgba(255, 255, 255, 0.85);

    grid-template-areas: "title title   title"
                         "bio   bio     profile";
}

body > main.management > section > img {
    grid-area: profile;
}

body > main.management > section > h1 {
    font-family: 'roboto light';
    
    grid-area: title;
}

body > main.management > section > * {
    grid-area: bio;
}
/*
body > main.management > section:nth-of-type(odd) > h1 {
    text-align: right;
}
*/
h1, h2 {
    margin: 1em 0;
    color: var(--main-theme-color);
    font-family: 'roboto light', sans-serif;
}

h2 {
/*    color: #333333;*/
    font-family: 'roboto light', sans-serif;
}

p {
    line-height: 1.5em;
    margin: 1em 0;
}

  h1::first-letter
, p::first-letter {
    text-transform: uppercase;
}

details {}

details > summary {
    background-color: var(--main-theme-color);
    color: white;

    padding: 0.5em 1em;

    cursor: pointer;
}

details > summary::marker {
    color: orange;
}

details > summary + table {
    border-collapse: collapse;
    box-shadow: 0 0 0.5em #999999;

    margin: 1em auto;

    max-width: calc(100% - 2em);
}

details > summary + table > thead {

}

details > summary + table > thead {

}

details > summary + table > tbody {

}

details > summary + table > tbody > tr {

}

details > summary + table > tbody > tr:nth-of-type(even) {
    background-color: var(--main-stripe-color);
}

details > summary + table > tbody > tr > th {
    font-weight: bold;

}

details > summary + table > tbody > tr > th,
details > summary + table > tbody > tr > td {
    padding: 0.5em 1em;
}

@media only screen and (max-width: 600px) {

body > main {
    padding: 1em 0;
}

body > main > section > h1,
body > main > section > h2 {
    margin-left: 0.5em;
}

details > summary + table {
    box-shadow: none;

    margin: 1em 0;

    max-width: 100%;
}

details > summary + table > tbody > tr  {
    margin: 2.5em auto;

    box-shadow: 0 0 0.5em #666666;
    border-radius: 0.5em;

    display: block;
    width: calc(100% - 2em);
}

details > summary + table > tbody > tr:first-of-type  {
    margin-top: 0.5em;
}

details > summary + table > tbody > tr:nth-of-type(even) {
    background-color: inherit;
}

details > summary + table > tbody > tr > td {
    display: block;
}

details > summary + table > tbody > tr > td:nth-of-type(even) {
    background-color: var(--main-stripe-color);

    text-align: right;
}

body > header {
    grid-template-columns: 1fr;

    grid-template-rows: auto auto;
}

body > header > img {
    width: 100%;
}

body > header > nav {
    display: grid;

    padding-top: 1em;
}

body > header > nav > a {
    display: block;
}

body > aside {
    display: none;
}

body > main.management > section,
body > main.management > section:nth-of-type(odd) {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;

    grid-template-areas: "profile"
                         "title"
                         "bio";
}

}

@media only screen and (min-width: 600px) {

body > header > nav > a:last-of-type {
    border-right: none;
}

}

details > summary + table > tfoot {

}

form {
    max-width: 40em;

    margin: 5em auto;

    box-shadow: 0 0 0.5em #999999;


    display: grid;

    grid-template-rows: auto 4em;
}

form > fieldset {
    border: none;
}

form > fieldset:first-of-type {
    display: grid;
    grid-template-rows: 3em 3em 3em 5em 10em;

    padding: 1em 0;
}
    
form > fieldset:last-of-type {
    text-align: right;
}

form > fieldset:last-of-type > button {
    border: none;
    color: white;

    text-transform: uppercase;
    font-weight: bold;

    padding: 1em 2em;

    margin: 0 1em;

    background-color: var(--main-theme-color);

    border-radius: 0.3em;
}

form > fieldset > label {
    display: grid;

    grid-template-columns: 1fr 2fr;

    align-content: center;
}

form > fieldset > label:nth-of-type(even) {
    background-color: var(--main-stripe-color);
}

form > fieldset > label:nth-of-type(4),
form > fieldset > label:nth-of-type(5) {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
}

form > fieldset > label > span {
    display: grid;
    align-content: center;
    text-align: right;

    margin-right: 2%;
    box-sizing: border-box;

    font-weight: bold;
}

form > fieldset > label > input,
form > fieldset > label > textarea {
    width: 92%;
    margin: 0 4%;

    padding: 0.5em 1em;
    box-sizing: border-box; 

    background-color: var(--light-stripe-color);

    border: 1px solid #999999;
    border-radius: 0.3em;
}

form > fieldset > label:nth-of-type(4) > input,
form > fieldset > label:nth-of-type(5) > textarea {
    width: 96%;
    margin: 0 2%;

    padding: 0.5em 1em;
    box-sizing: border-box; 
}

form > fieldset > label:nth-of-type(5) > textarea {
    height: 9em;
}

form > fieldset > label > textarea {

}

form > fieldset > button {
}

ul {}

ul > li {
    line-height: 1.5;
    margin-left: 2em;
}

body > main > section > div > ul {
    display: none;
}

body > aside {
    display: none;
}
