@font-face {
    font-family: "Roboto Regular";
    src: url("../fonts/RobotoCondensed/RobotoCondensed-Regular.ttf");
}

@font-face {
    font-family: "Roboto Bold";
    src: url("../fonts/RobotoCondensed/RobotoCondensed-Bold.ttf");
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto Regular", sans-serif;
}

.wrapper {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

/* HEADER */

header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

header a {
    margin-right: 90px;
    font-family: "Roboto Bold", sans-serif;
    color: #424445;
}

header .underline {
    border-bottom: 2px solid #0f70b7;
    white-space: nowrap;
}

header .underline:hover {
    border-color: #cc1e27;
    color: #cc1e27;
    transition: 0.3s;
    opacity: 0.5; 
}

header a:active {
    color: #0f70b7;
}

.navbar-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px 0px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: #f2f3f8;
}

.nav-hrefs {
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.logo {
    height: 60px;
    width: 210px;
}
.nav-hrefs .nav-phone {
    padding: 0;
}
.nav-mail {
    white-space: nowrap;
}
/* BURGER MENU */

.hamburger {
    position: relative;
    width: 30px;
    height: 4px;
    background: #424445;
    border-radius: 10px;
    cursor: pointer;
    z-index: 2;
    transition: 0.3s;
}

.hamburger:after,
.hamburger:before {
    content: "";
    position: absolute;
    height: 4px;
    right: 0;
    background: #424445;
    border-radius: 10px;
    transition: 0.3s;
}

.hamburger:before {
    top: -10px; 
    width: 20px;
}
.hamburger:after {
    top: 10px; 
    width: 25px;
}

.toggle-menu {
    position: absolute;
    width: 30px;
    height: 100%;
    z-index: 3;
    cursor: pointer;
    opacity: 0;
    top: 0;
}
.hamburger,
.toggle-menu {
    display: none;
}

.nav-container input:checked ~ .hamburger {
    background: transparent;

}
.nav-container input:checked ~ .hamburger:before {
    top: 0;
    transform: rotate(-45deg);
    width: 30px;
}
.nav-container input:checked ~ .hamburger:after {
    top: 0;
    transform: rotate(45deg);
    width: 30px;
}

.nav-container input:checked ~ .nav-hrefs {
    right: 0;
    box-shadow: -20px 0 40px rgba(0,0,0,0.3);
}

/* GENERAL */

h1 {
    font-size: 64px;
}

#home .content-container {
    padding: 100px 0px;
}

.block-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 140px 0px;
}

.block-container:nth-child(odd) {
    background-color: #f2f3f8;
}

.content-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.block-title {
    display: flex;
    justify-content: center;
    align-items: center;
}

.block-title h2 {
    font-size: 46px;
    text-align: center;
}

.block-title--red {
    color: #CC1E27;
}

.phone-number, .email {
    color: #000;
    text-decoration: none;
    margin-right: 0px;
}

.phone-number:hover, .email:hover {
    color: #cc1e27;
    transition: 0.3s;
    opacity: 0.5;
    text-decoration: none;
}

/* BLOCK-1 */

.block-container:nth-child(1) {
    color: #e3e6f5;
    background-image: url("../images/dark-background(s).jpg");
    background-size: cover;
    background-position: center;
}

.block1-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.block1-text {
    text-align: center;
    width: 50%;
    font-size: 32px;
    margin-bottom: 90px;
}

.block-info-text {
    text-align: center;
    width: 80%;
    font-size: 28px;
}

.block-info-text p {
    margin-bottom: 14px;
    margin-top: 0;
}

.block-info-text blockquote {
    font-style: italic;
    margin: 0;
    padding: 10px;
    position: relative;
    color: #cc1e27;
}

.block-info-text blockquote::before {
    content: "\201D";
    font-size: 38px;
}
.block-info-text blockquote::after {
    content: "\201D";
    font-size: 38px;
}

.block1-buttons-container {
    display: flex;
    justify-content: space-between;
    width: 580px;
}

.info-href {
    transition: 0.5s;
    padding: 20px 45px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border: none;
    color:#424445;
    background-color: #e3e6f5;
    font-size: 24px;
}

.info-href:hover {
    background-color: #7e7f85;
    color: #e3e6f5;
}

/* BLOCK-2 */

.block2-items-row-container {
    display: flex;
    justify-content: space-evenly;
}

.half-row-container {
    display: flex;
    justify-content: space-evenly;
}

.additional-info-link {
    color: #000;
}

.block-2-content-item {
    display: flex;
    flex-direction: column;
    width: 280px;
    margin: 20px;
    padding: 10px;
    border-bottom: 2px solid #0f70b7;
    cursor: pointer;
}

.block-2-content-item:hover {
    transition: 0.5s;
    border-color: #cc1e27;
    color: #cc1e27;
    opacity: 0.5;
}

.item-img {
    text-align: center;
}

.item-img img{
    width: 100px;
    height: 100px;
    margin-bottom: 20px;  
}

.item-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.item-text {
    font-size: 20px;
    text-align: center;
}

.block-2-content-item-additional {
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    transform: scale(1.3);
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(21, 17, 17, 0.61);
    display: flex;
    align-items: center;
}
.additional-info-container {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 30%;
}
.additional-info-container p{
    font-size: 17px;
    padding: 10px;
    line-height: 20px;
}
.additional-info-container a.close{
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  background: none;
  padding: 0;
  margin: 0;
  text-decoration:none;
}

.additional-info-container a.close:hover{
  color:#333;
}

.additional-info-container span:hover,
.additional-info-container span:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
} 

.block-2-content-item-additional:target{
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}
  
.additional-info-title {
    width: 100%;
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
}

.additional-info-title-description {
    font-size: 16px;
    margin-top: 20px;
}

.additional-info-main {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.additional-info-text {
    width: 270px;
    font-size: 15px;
    padding-right: 12px;
}

.additional-info-images {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    align-items: center;
}

.additional-info-images img{
    width: 240px;
    height: 130px;
    margin-bottom: 16px;
}

/* BLOCK-3 */

.gallery {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.gallery img {
    width: 390px;
    height: 260px;
    padding: 10px;
}

.gallery-row {
    display: flex;
}

.hidden {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease-out;
}

.gallery-seemore {
    transition: 0.2s;
    width: 0px;
    height: 0px;
    padding: 15px;
    border-left: 4px solid #0f70b7;
    border-bottom: 4px solid #0f70b7;
    transform: rotate(-45deg);
    cursor: pointer;
}

.gallery-seemore:hover {
    color: #cc1e27;
    transition: 0.5s;
    opacity: 0.5;
}

/* BLOCK-4 */

.info-form-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 20px;
}

.info-block {
    padding-right: 90px;
}

.info-block-top {
    width: 300px;
    padding: 30px 20px;
    border-radius: 3px;
    font-size: 22px;
    margin-bottom: 30px;
    background-color: #e8f0fe;
}

.info-block-bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-block-bottom-item {
    display: flex;
    margin-bottom: 22px;
}

.info-item-icon {
    margin-right: 40px;
    border-radius: 40px;
    padding: 14px;
    background-color: #f2f3f8;
}

.info-item-title {
    font-size: 20px;
    font-weight: 600;
}

.info-item-text {
    margin: auto 0;
}

.info-item-icon img {
    width: 50px;
    height: 50px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    width: 500px;
    height: 420px;
    padding: 30px;
    border-radius: 3px;
    background-color: #f2f3f8;
}

.form-name {
    display: flex;
    justify-content: space-between;
}

.form-name input {
    width: 220px;
}

.form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

.form-field label {
    font-size: 20px;
    margin-bottom: 5px;
}

.contact-form input {
    background-color: #f2f3f8;
    border-style: hidden;
    border-bottom-style: groove;
    border-bottom: 1px solid black;
    border-color: #0f70b7;
}

.contact-form textarea {
    background-color: #f2f3f8;
    height: 120px;
    resize: none;
    border-color: #0f70b7;
}

.contact-form input:focus {
    outline: none;
    border-color: #0f70b7;
    background-color: #e8f0fe;
}

.contact-form textarea:focus {
    outline: none;
    border-color: #0f70b7;
    background-color: #e8f0fe;
}

.send-info-button {
    transition: 0.5s;
    padding: 10px 35px;
    width: 560px;
    border: none;
    background-color: #0f70b7;
    font-size: 24px;
    margin-left: -30px;
    color: #f2f3f8;
    margin-top: 10px;
}

.send-info-button:hover {
    background-color: #7e7f85;
    color: #e3e6f5;
}

/* FOOTER */
.footer {
    background-color: #f2f3f8;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
}

.footer-top-left {   
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-top-right {
    width: 70%;
}

.footer-top-block {
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
}

.footer-top-block-title {
    width: 220px;
    font-size: 24px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #0f70b7;
}

.footer-top-block-text {
    margin-bottom: 5px;    
}

.footer-mid {
    margin-bottom: 20px;
}

.footer-maps-container {
    display: flex;
    justify-content: space-between;
    padding: 50px 0px;
}

.map-frame {
    border: 1px solid #0f70b7;
    width: 430px;
    height: 250px;
}

.map-caption {
    text-align: center;
    font-size: 24px;
    margin-top: 10px;
}

.footer-bot {
    border-top: 2px solid #0f70b7;
}

.footer-bot-container {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
}

.social-media {
    display: flex;
    justify-content: space-between;
    width: 80px;
    margin-top: auto;
    margin-bottom: auto;
}

.social-media a:hover {
    opacity: 0.8;
}

.social-media-logo {
    width: 30px;
    height: 30px;
}

.footer-company-name {
    margin-top: auto;
    margin-bottom: auto; 
}

.dev-copyright {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    padding: 6px 0;
    margin-top: -20px;

}






