:root {
    --main: #b17930;
    --second: #99692a;
    --backgroud: white;
}

html {
    font-size: 20px;
}

body {
    margin: 0;
}

h1, h2, h3, p, button, summary {
    font-family: Verdana, sans-serif;
}

/*HEADER*/
header {
    height: 10rem;
    width: 100%;
    background: url("images/header.png");
    background-size: 9rem;
    position: fixed;
    z-index: 10;
    box-shadow: 5px 0 20px black;
}

div.border {
    height: 10rem;
    width: 100%;
}

header button {
    float: left;
    margin: 0.5rem 1rem 0.5rem 0.0rem;
}

header a:first-child button {
    margin-left: 1rem;
}

.btn-rounded {
    border-radius: 0.5rem;
}

details {
    display: inline-block;
    width: 10rem;
    position: relative;
    z-index: 10;
}

header summary {
    font-size: 1rem;
    padding: 0.5rem;
    margin: 0.5rem 0rem;
    color: var(--backgroud);
    background: var(--main);
    border: none;
    transition: 0.5s all ease-in-out;
    width: 10rem;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary {
    white-space: nowrap;
}

summary::before {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    background-image: url('images/arrow.png');
    background-size: contain;
    background-repeat: no-repeat;
    transition: 0.2s all ease-in-out;
    margin-right: 0.5rem;
}

details[open] summary::before {
    transform: rotate(90deg);
}

details button {
    margin: 0;
    width: 11rem;
    text-align: left;
}

details a:nth-child(2) button {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

details a:last-child button {
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

nav {
    width: 100%;
    height: 3.5rem;
}

h1 {
    font-size: 3rem;
    color: snow;
    text-shadow: black 2px 2px 5px;
    padding: 0.5rem;
    margin: 0;
    max-height: 3.5rem;
}

h2 {
    font-size: 1.5rem;
    color: snow;
    text-shadow: black 2px 2px 5px;
    padding: 0 0.5rem;
    margin: 0;
}

/*MAIN*/

h3 {
    font-size: 1.5rem;
    margin: 0;
    padding: 1.5rem 0.5rem 0.5rem 0.5rem;
}

p {
    padding: 0 0.5rem;
    margin: 0;
}

button {
    font-size: 1rem;
    padding: 0.5rem;
    margin: 0.5rem 0;
    color: var(--backgroud);
    background: var(--main);
    border: none;
    transition: 0.5s all ease-in-out;
}

button:hover, summary:hover {
    background: var(--second);
}

body {
    background: rgb(226, 226, 226);
}

main {
    width: 70%;
    min-height: calc(100vh - 15.5rem);
    margin: 0 15%;
    background: white;
}

main img {
    border-radius: 0.5rem;
    width: 100%;
}

.img-div {
    width: calc(50% - 2rem);
    max-width: calc(100% - 2rem);
    margin: 1rem;
    border-radius: 0.5rem;
    background: rgb(228, 223, 223);
    display: inline-block;
    overflow: hidden;
}

.img-div img {
    height: 20rem;
    max-height: 32rem;
    object-fit: cover;
}

.img-div h4, .dual-img-div h4 {
    margin: 0;
    padding: 0;
    text-align: center;
    position: relative;
    z-index: 5;
    background: transparent;
    transition: 0.2s all ease-in-out;
}

a .img-div, a .dual-img-div {
    cursor: pointer;
}
a .img-div:hover img {
    transform: scale(1.16);
    transition: 0.5s all ease-in-out;
}

a .img-div:hover h4 {
    background: rgba(255, 255, 255, 0.452);
}

.dual-img-div {
    width: calc(50% - 2rem);
    max-width: calc(100% - 2rem);
    margin: 1rem;
    border-radius: 0.5rem;
    background: rgb(228, 223, 223);
    display: inline-block;
    overflow: hidden;
}

.dual-img-div div {
    width: 50%;
    display: inline-block;
    vertical-align: top;
}

.dual-img-div img {
    border-radius: 0;
    width: 100%;
    max-height: 32rem;
    object-fit: cover;
}

.dual-img-div div:first-child img {
    border-bottom-left-radius: 0.5rem;
}

.dual-img-div div:last-child img {
    border-bottom-right-radius: 0.5rem;
}


strong {
    color: var(--main)
}

/*CONTACT TABLE*/
table.contacts {
    width: 25rem;
    max-width: calc(100% - 2rem);
    margin: 1rem;
    border-collapse: collapse;
    margin: 1rem;
    background: var(--main);
    border-radius: 0.5rem;
    text-align: center;
    margin-left: calc(50% - 12.5rem);
}

table.contacts th, table.contacts td {
    padding: 0.5rem;
    color: var(--backgroud);
}
table.contacts td {
    background: var(--second);
}
table.contacts td:first-child {
    border-bottom-left-radius: 0.5rem;
}
table.contacts td:last-child {
    border-bottom-right-radius: 0.5rem;
}
/*FOOTER*/

footer {
    width: 100%;
    height: 5.5rem;
    background: #404040;
}

footer div {
    padding: 1rem;
}

footer p {
    text-align: right;
    color: snow;
    margin: 0;
    padding: 0 1rem;
}
footer a {
    color: var(--main);
}

a {
    all: unset;
}


/*RESOLUTION*/
@media (max-width:1400px) {
    html {font-size: 18px;} 
    main {width: 80%; margin: 0 10%};
    .nav-link{padding: 0 0.5rem 0 0.5rem;}
}
@media (max-width:1025px) {
    html {font-size: 16px;} 
    header.active div.back {height: 5.5rem;}  
    header.active #logo {height: 4rem;}
    .shadow-box.middle {
        width: 80%;
        margin: 2rem 10% 1rem 10%  !important;
    }
}
@media (max-width:801px) {
    html {font-size: 14px;}
    main {width: 100%; margin: 0};
}
@media (max-width:600px) {
    html {font-size: 13px;}
    .img-div {width: calc(100% - 2rem)}
    .dual-img-div {width: calc(100% - 2rem)}
}
@media (max-width:480px) {
    html {font-size: 14px;}
    h1 {font-size: 2rem;}
}
@media (max-width:320px)  {
    html {font-size: 12px;}
}
