@import url('https://fonts.googleapis.com/css?family=Noto+Sans:400,700|Montserrat:700&display=swap');

:root {
    --green: #2cda4b;
    --pink: #fb2056;
    --heading: #222222;
    --text: #434343;
    --header: #434343;
    --footer: #191919;
    --footer-copy: #d3d3d3;
    --quote: #f4f5f9;
    --light-section: #f7f7f7;
    --content-width: 1140px;
    --header-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); font-family: 'Noto Sans', sans-serif; font-size: 16px; font-weight: 400; line-height: 1.7; }
img { max-width: 100%; height: auto; }
a { color: var(--green); }
h1, h2, h3, h4 { color: var(--heading); font-family: Montserrat, sans-serif; font-weight: 700; }
h1 { font-size: 64px; line-height: 1.2; }
h2 { font-size: 40px; line-height: 1.4; }
h3 { font-size: 24px; line-height: 1.4; }
h4 { font-size: 20px; line-height: 1.2; }

.container { width: 100%; max-width: var(--content-width); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.button { display: inline-block; padding: 17px 40px; border: 0; border-radius: 30px; background: var(--green); color: #fff; font-family: 'Noto Sans', sans-serif; font-size: 14px; font-weight: 700; line-height: 14px; text-align: center; text-decoration: none; text-transform: uppercase; }
.button:hover, .button:focus-visible { background: var(--heading); color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

/* Header */
.site-header { position: absolute; z-index: 100; top: 0; left: 0; width: 100%; height: 79.5px; background: var(--header); color: #fff; }
.site-header__inner { position: relative; display: flex; align-items: center; width: calc(100% - 40px); max-width: var(--header-width); height: 79.5px; margin-inline: auto; }
.site-logo { display: block; width: 150px; height: 47.5px; flex: 0 0 auto; }
.site-logo img { display: block; width: 150px; height: 47.5px; }
.primary-nav { height: 70px; margin-left: auto; }
.primary-nav ul { padding: 0; margin: 0; list-style: none; }
.primary-nav__list { display: flex; height: 70px; }
.primary-nav__item { position: relative; display: flex; height: 70px; }
.primary-nav__link, .submenu-toggle { color: #fff; }
.primary-nav__link { display: flex; align-items: center; height: 70px; padding: 0 16px; font-size: 16px; font-weight: 400; line-height: 70px; text-decoration: none; white-space: nowrap; }
.primary-nav__link.active, .primary-nav__link:hover, .primary-nav__link:focus-visible, .submenu a:hover, .submenu a:focus-visible { color: var(--green); }
.submenu-toggle { width: 21.5px; height: 70px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.chevron { display: block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translate(-3px, -2px) rotate(45deg); }
.flag { display: inline-block; width: 18px; height: 12px; margin: -1px 5px; }
.primary-nav__item--language > .primary-nav__link .flag { margin-right: 1.2px; }
.submenu { position: absolute; top: 70px; left: 0; z-index: 2; width: 240px; border-top: 2px solid var(--green); background: var(--header); visibility: hidden; opacity: 0; pointer-events: none; }
.primary-nav__item--language .submenu { right: 0; left: auto; }
.submenu a { display: block; padding: 14.4px 16px; color: #fff; font-size: 16px; line-height: 23.2px; text-decoration: none; }
.primary-nav__item:hover > .submenu, .primary-nav__item:focus-within > .submenu, .primary-nav__item.submenu-open > .submenu { visibility: visible; opacity: 1; pointer-events: auto; }
.menu-toggle { display: none; }

/* Shared inner heroes */
.page-hero { position: relative; display: flex; align-items: center; padding: 200px 0 120px; background-image: linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.4)), var(--hero-image); background-position: center center; background-size: cover; color: #fff; text-align: center; }
.page-hero h1 { max-width: 1140px; margin: 0 0 20px; color: #fff; font-size: 64px; line-height: 1.2; text-transform: uppercase; }
.page-hero--contact { background-image: linear-gradient(rgba(0,0,0,.3), rgba(0,0,0,.3)), var(--hero-image); }
.page-hero--webhosting, .page-hero--shoe-manufacturing { padding-bottom: 100px; }
.page-hero--about .container { padding: 10px; }
.page-hero--about h1 { margin: 0; }
.page-hero--webhosting .container { padding: 10px 0; }
.page-hero--webhosting h1 { position: relative; left: -3.5px; width: calc(59.332% - 20px); margin: 0 auto; padding: 0; }
.page-hero--environment { padding: 180px 0 80px; }

/* Existing page-body scaffolding; page templates own their final spacing. */
.home-hero { height: 478px; background: linear-gradient(#0003,#0003), url('../images/home-hero.jpg') center / cover no-repeat; color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; }
.home-hero > div { width: 600px; }
.home-hero h3 { color: #fff; font-size: 24px; margin: 0 0 54px; }
.home-hero h3::after, .section > h2::after, .values h2::after { content: ''; display: block; width: 70px; height: 3px; background: var(--green); margin: 18px auto; }
.home-hero h1, .section h2, .values h2 { font-family: Montserrat, sans-serif; text-transform: uppercase; }
.home-hero h1 { color: #fff; font-size: 56px; line-height: 1.25; margin: 0 0 42px; }
.quote { height: 120px; background: var(--quote); display: grid; place-items: center; text-align: center; }
.quote p { margin: 0; }
.section { max-width: var(--content-width); margin: auto; padding: 75px 15px; }
.section > h2 { text-align: center; font-size: 36px; margin: 0 0 76px; }
.cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 82px; }
.cards article { text-align: center; }
.cards img { width: 100%; height: 318px; object-fit: cover; border-radius: 4px; box-shadow: 8px 9px #f0f0f0; }
.cards h3 { margin: 35px 0 8px; }
.cards p { margin: 0 0 20px; }
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 70px; margin-top: 130px; }
.values h2 { font-size: 32px; }
.values h2::after { margin-left: 0; width: 50px; }
.placeholder { min-height: 380px; text-align: center; }

/* Footer */
.site-footer { height: 171.61px; padding: 40px 0; background: var(--footer); color: var(--footer-copy); font-size: 16px; line-height: 27.2px; text-align: center; }
.site-footer__inner { width: 100%; max-width: var(--header-width); margin-inline: auto; }
.footer-nav { display: flex; justify-content: center; height: 27.2px; }
.footer-nav a { padding: 0 8px; color: #fff; font-weight: 400; text-decoration: none; }
.footer-nav a:first-child { padding-left: 0; }
.footer-nav a:last-child { padding-right: 0; }
.footer-nav a.active, .footer-nav a:hover, .footer-nav a:focus-visible { color: var(--green); }
.site-footer__copy { margin-top: 10px; }
.site-footer p { margin: 0; }

@media (max-width: 1200px) {
    .container { padding-inline: 10px; }
}

@media (max-width: 921px) {
    .site-header, .site-header__inner { height: 70px; }
    .site-header__inner { width: 100%; }
    .site-logo, .site-logo img { width: 100px; height: 31.66px; }
    .menu-toggle { display: flex; align-items: center; justify-content: center; width: 42.5px; height: 42.5px; margin-left: auto; padding: 11.25px; border: 0; background: transparent; color: #fff; cursor: pointer; }
    .menu-toggle__icon, .menu-toggle__icon svg { display: block; width: 20px; height: 20px; }
    .menu-toggle__icon svg { fill: currentColor; }
    .primary-nav { position: absolute; top: 70px; left: 0; width: 100%; height: auto; margin: 0; border-top: 1px solid rgba(255,255,255,.08); background: var(--header); }
    .js .primary-nav { display: none; }
    .js .site-header.menu-open .primary-nav { display: block; }
    .primary-nav__list { display: flex; height: auto; flex-direction: column; }
    .primary-nav__item { display: flex; width: 100%; height: auto; min-height: 46px; flex-wrap: wrap; }
    .primary-nav__link { width: 100%; height: 46px; padding: 0 20px; font-size: 15px; line-height: 45px; }
    .submenu-toggle { position: absolute; top: 0; right: 20px; width: 42.19px; height: 46px; padding: 0 13.6px; }
    .chevron { transform: translate(2px,-2px) rotate(45deg); }
    .submenu { position: static; display: none; width: 100%; border-top-width: 1px; visibility: visible; opacity: 1; pointer-events: auto; }
    .primary-nav__item:hover > .submenu, .primary-nav__item:focus-within > .submenu { display: none; }
    .primary-nav__item.submenu-open > .submenu, .primary-nav__item.submenu-open:focus-within > .submenu { display: block; }
    .submenu a { padding: 11px 40px; font-size: 15px; line-height: 23px; }
    .page-hero { padding: 100px 0 70px; }
    .page-hero--about { padding: 90px 0 70px; }
    .page-hero--services { padding: 85px 0 75px; }
    .page-hero--contact { padding: 90px 0 70px; }
    .page-hero--environment { padding: 100px 0 70px; }
}

@media (min-width: 768px) and (max-width: 1200px) {
    .page-hero { padding: 120px 0 100px; }
    .page-hero--webhosting .container { padding-inline: 0; }
    .page-hero--services { padding: 100px 0 120px; }
    .page-hero--contact { padding: 100px 0 0; }
}

@media (max-width: 767px) {
    body { font-size: 15px; line-height: 1.7; }
    h1 { font-size: 30px; line-height: 1.2; }
    h2 { font-size: 24px; line-height: 1.4; }
    h3 { font-size: 20px; line-height: 1.4; }
    h4 { font-size: 19px; line-height: 1.2; }
    .page-hero h1 { margin-bottom: 20px; font-size: 30px; line-height: 1.2; }
    .page-hero--about h1 { margin: 0; }
    .page-hero--webhosting { padding: 101px 0 71px; }
    .page-hero--webhosting .container { padding: 10px; }
    .page-hero--webhosting h1 { left: auto; width: 100%; margin: 0; padding: 0; }
    .home-hero { height: 520px; }
    .home-hero h1 { font-size: 40px; }
    .home-hero h3 { font-size: 18px; }
    .cards, .values { grid-template-columns: 1fr; }
    .section { padding: 55px 20px; }
    .section > h2 { font-size: 30px; margin-bottom: 45px; }
    .cards { gap: 55px; }
    .cards img { height: auto; }
    .values { margin-top: 80px; gap: 35px; }
    .site-footer { height: 354px; padding: 40px 20px; font-size: 15px; line-height: 25.5px; }
    html[lang^="cs"] .site-footer { height: 328.5px; }
    .footer-nav { height: 102px; flex-direction: column; align-items: center; }
    .footer-nav a, .footer-nav a:first-child, .footer-nav a:last-child { height: 25.5px; padding: 0 20px; line-height: 25.5px; }
    .site-footer__copy { margin-top: 60px; }
    .site-footer p { font-size: 16px; }
}
