/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

* {
    box-sizing: border-box;
}

html {
  color: #222;
  font-size: 16px;
  line-height: 1.4;
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
}

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

.hidden,
[hidden] {
  display: none !important;
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

.invisible {
  visibility: hidden;
}

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
}

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

header {
    overflow: hidden;
}
.logo {
    animation-name: appear;
    animation-duration: 0.5s;
}
section.upper {
    background: #0098CA;
    padding: 42px 70px;
    max-height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
}
section.upper header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
section.upper header a {
    visibility: hidden;
    color: white;
    font-size: 16px;
    animation-name: appear;
    animation-duration: 0.5s;
    animation-delay: 0.75s;
    animation-fill-mode: forwards;
}

.section-title-group {
    visibility: hidden;
    animation-name: appear;
    animation-duration: 0.5s;
    animation-delay: 0.75s;
    animation-fill-mode: forwards;
}

.upper-address {
    visibility: hidden;
    animation-name: appear;
    animation-duration: 0.5s;
    animation-delay: 1.25s;
    animation-fill-mode: forwards;
}

.section-title-group .title {
    font-size: 40px;
    line-height: 44px;
}

section#contacts {
    padding: 42px 70px;
    max-height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
section#contacts a {
    color: black;
}
.contact-info {
    display: flex;
}
.contact-info div:first-child {
    margin-right: 100px;
}

main {
    height: 100vh;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

footer div {
    display: flex;
    justify-content: center;
    align-items: center;
}

.copyright {
    margin-right: 24px;
}

.footer-line {
    border-color: #BCE4EE;
    height: 1px;
    width: 100%;
    display: none;
}

.fade-in {
    visibility: hidden;
    animation-name: fadeIn;
    animation-duration: 0.5s;
    animation-delay: 0.25s;
    animation-fill-mode: forwards;
}

@media only screen and (max-width: 992px) {
    section.upper, section#contacts {
        padding: 40px 45px;
    }
    .footer-logo {
        width: 226px;
        height: 90px;
    }
}
@media only screen and (max-width: 768px) {
    section.upper, section#contacts {
        padding: 40px 15px;
    }
    .section-title-group .title {
        font-size: 28px;
        line-height: 32px;
    }
    .logo {
        width: 110px;
        height: 45px;
    }
    .contact-info {
        flex-direction: column;
    }
    .contact-info div:first-child {
        margin-right: 0;
        margin-bottom: 8px;
    }
    footer, footer div {
        align-items: start;
        flex-direction: column;
    }
    .footer-logo {
        width: 186px;
        height: 77px;
    }
    .footer-line {
        display: block;
    }
}

@keyframes appear {
    0% {
        visibility: initial;
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        visibility: initial;
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    0% {
        visibility: initial;
        opacity: 0;
    }
    100% {
        visibility: initial;
        opacity: 1;
    }
}