/*
Theme Name: Sähkö-Systema
Theme URI: https://markkinointiukkonen.fi/kotisivut-hinta/
Author: Markkinointi Ukkonen Oy
Author URI: https://markkinointiukkonen.fi/
Description: Sähkö-Systemalle tehty WordPress-teema
Version: 1.0
Text Domain: sahkosystema
*/

:root {
	--musta: #000000;
	--valkoinen: #FFFFFF;
	--sininen: #007FC9;
	--vaaleansininen: #66B2DF;
	--harmaansininen: #E0EAEF;
}

html, body {
	margin: 0;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-size: 20px;
}

h1, h2, h3, h4, h5, h6 {
    word-break: break-word;
    overflow-wrap: break-word;
}

img {
	max-width: 100%;
	height: auto;
}

blockquote {
	quotes: '"' '"' '"' '"';
	font-style: italic;
}

blockquote:before {
    content: open-quote;
}

blockquote:after {
    content: close-quote;
}

.alignleft {
    float: left;
    margin: 0.3em 2em 2em 0;
}

.aligncenter {
	display: block;
	margin: 2em auto;
}

.alignright {
    float: right;
    margin: 0.3em 0 2em 2em;
}

.wp-caption-text {
    font-size: 0.9em;
    font-style: italic;
    margin-top: 0.25em;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

.embed-container {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	max-width: 100%;
} 

.embed-container iframe,
.embed-container object,
.embed-container embed { 
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    word-break: break-word;
    overflow-wrap: break-word;
	font-family: "Orbitron", sans-serif;
	font-weight: 800;
	font-style: normal;
    color: var(--sininen);
}

.kehys {
	width: 1592px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	padding-left: 50px;
	padding-right: 50px;
	max-width: 100%;
}

.blue_bg > .kehys.kapea {
    width: 1300px;
}

.rivi {
	display: flex;
	flex-wrap: wrap;
	box-sizing: border-box;
}

.solu {
	display: block;
	box-sizing: border-box;
}

.solu12 {
	width: 100%;
}

.solu11 {
	width: calc(100% / 12 * 11);
}

.solu10 {
	width: calc(100% / 1.2);
}

.solu9 {
	width: 75%;
}

.solu8 {
	width: calc(100% / 1.5);
}

.solu7 {
	width: calc(100% / 12 * 7);
}

.solu6 {
	width: 50%;
}

.solu5 {
	width: calc(100% / 2.4);
}

.solu4 {
	width: calc(100% / 3);
}

.solu3 {
	width: 25%;
}

.solu2 {
	width: calc(100% / 6);
}

.solu1 {
	width: calc(100% / 12);
}

.ylapalkki_rajoittaja {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 1920px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 45px;
    box-sizing: border-box;
}

.mobile_nav_toggle {
    display: none;
}

nav.paavalikko ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 1rem;
    gap: 2rem;
}

nav.paavalikko > ul > li > a {
    font-weight: 800;
    text-decoration: none;
    color: var(--sininen);
    text-transform: uppercase;
    padding: 2rem 0;
    display: block;
}

nav.paavalikko ul > li {
    display: block;
    position: relative;
}

nav.paavalikko ul.sub-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: -1.35rem;
    background: var(--vaaleansininen);
    padding: 0.65rem 1.35rem;
    font-size: 0.9em;
    transition: 0.25s transform;
    transform: scaleY(0);
    transform-origin: top;
}

section.iso_hero {
    display: block;
    background: url(images/header.jpg);
    padding: 8.150rem 0;
    background-size: cover;
    background-position: center;
}

nav.paavalikko ul.sub-menu a {
    white-space: nowrap;
    text-decoration: none;
    color: var(--valkoinen);
    display: block;
    margin: 0.5rem 0;
}

li.menu-item-has-children {
    padding-right: 1.2em;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="15.693" height="9.154" viewBox="0 0 15.693 9.154"><path id="angle-down" d="M7.851,169.154a1.3,1.3,0,0,1-.924-.383L.388,162.232a1.308,1.308,0,0,1,1.849-1.849L7.851,166l5.615-5.615a1.308,1.308,0,0,1,1.849,1.849l-6.539,6.539A1.3,1.3,0,0,1,7.851,169.154Z" transform="translate(-0.005 -160)" fill="%23007fc9"/></svg>');
    background-position: center right !important;
    background-repeat: no-repeat !important;
    background-size: 0.75em auto !important;
    transition: 0.25s background;
}

a.paalogo, a.paalogo img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--sininen);
    transition: 0.25s color;
    text-decoration: none;
}

a:hover {
    color: var(--musta);
}

nav.paavalikko ul.sub-menu a:hover {
    color: var(--musta);
}

nav.paavalikko > ul > li:hover > a,
nav.paavalikko > ul > li:hover > a:hover {
    color: var(--musta);
}

.iso_hero_laatikko {
    display: block;
    width: 666px;
    max-width: 100%;
    text-align: center;
    box-sizing: border-box;
    padding: 6rem 3rem;
    background: var(--sininen);
    color: var(--valkoinen);
    border-radius: 0 150px 0 150px;
}

.tekstijakuva_teksti > *:first-child,
.referenssit_vasen > *:first-child,
.referenssit_oikea > *:first-child,
.alarivi_1 > *:first-child,
.alarivi_2 > *:first-child,
.tekstiosio > *:first-child,
.iso_hero_laatikko > *:first-child,
.etusivuteksti_data > *:first-child {
    margin-top: 0;
}

.tekstijakuva_teksti > *:last-child,
.referenssit_vasen > *:last-child,
.referenssit_oikea > *:last-child,
.alarivi_1 > *:last-child,
.alarivi_2 > *:last-child,
.tekstiosio > *:last-child,
.iso_hero_laatikko > *:last-child,
.etusivuteksti_data > *:last-child {
    margin-bottom: 0;
}

.nappula {
    display: inline-block;
    font-size: 1rem;
    background: var(--sininen);
    color: var(--valkoinen);
    font-weight: 800;
    line-height: 1em;
    padding: 0.825em 1.314em;
    transition: 0.25s background, 0.25s color;
    border: 0;
    cursor: pointer;
    font-family: "Plus Jakarta Sans", sans-serif;
}

h1 {
    font-size: 2.25rem;
    line-height: 1.444em;
}

h2 {
    font-size: 1.75rem;
    line-height: 1.257em;
}

.iso_hero_laatikko h1 {
    margin-bottom: 2.25rem;
    color: var(--valkoinen);
}

.nappula:hover,
.blue_bg .nappula:hover,
.iso_hero_laatikko .nappula:hover {
    background: var(--musta);
    color: var(--valkoinen);
}

main.etusivuteksti {
    display: block;
    padding: 9rem 0 10rem 0;
    position: relative;
    overflow: hidden;
}

.etusivuteksti_data {
    display: block;
    width: calc(50% - 100px);
}

.etusivuteksti_kuvio {
    position: absolute;
    bottom: 0;
    right: 0;
    width: calc(50% - 100px);
    top: 5rem;
    background: url(images/ilta.jpg);
    border-radius: 150px 0 0 0;
    background-size: cover !important;
    background-position: center !important;
}

.blue_bg {
    background: var(--sininen);
    color: var(--valkoinen);
    position: relative;
}

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

p+p > .nappula {
    margin-top: 1rem;
}

.blue_bg .nappula,
.iso_hero_laatikko .nappula {
    background: var(--vaaleansininen);
    text-decoration: none;
}

.palvelut {
    display: grid;
    grid-template-columns: 36.4% 36.4% 27.2%;
    align-items: center;
    padding: 3rem 0;
}

.palvelut a {
    display: block;
    color: var(--valkoinen);
    font-family: "Orbitron", sans-serif;
    font-weight: 800;
    font-style: normal;
    font-size: 1.25rem;
    margin: 1.850rem 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="36.801" height="23" viewBox="0 0 36.801 23"><path id="arrow-right-long" d="M36.127,109.121l-9.2,9.2a2.3,2.3,0,0,1-3.253-3.253l5.28-5.272H2.3A2.313,2.313,0,0,1,0,107.431,2.2,2.2,0,0,1,2.3,105.2H28.953l-5.275-5.275a2.3,2.3,0,0,1,3.253-3.253l9.2,9.2A2.3,2.3,0,0,1,36.127,109.121Z" transform="translate(0 -95.995)" fill="%23fff"/></svg>');
    background-position: center left !important;
    background-repeat: no-repeat !important;
    background-size: 1.480em auto !important;
    padding-left: 2.600em;
    text-decoration: none !important;
    transition: 0.25s color, 0.25s background;
}

.palvelut a:hover, .blue_bg .palvelut a:hover {
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="36.801" height="23" viewBox="0 0 36.801 23"><path id="arrow-right-long" d="M36.127,109.121l-9.2,9.2a2.3,2.3,0,0,1-3.253-3.253l5.28-5.272H2.3A2.313,2.313,0,0,1,0,107.431,2.2,2.2,0,0,1,2.3,105.2H28.953l-5.275-5.275a2.3,2.3,0,0,1,3.253-3.253l9.2,9.2A2.3,2.3,0,0,1,36.127,109.121Z" transform="translate(0 -95.995)" fill="%23000"/></svg>');
	color: var(--musta);
}

.palvelut_1, .palvelut_2 {
    display: block;
    box-sizing: border-box;
    padding-right: 2rem;
    position: relative;
    z-index: 3;
}

.palvelut_3 {
    position: relative;
}

.palvelut_3 img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.palvelut a:hover {
    color: var(--musta);
}

article.nosto {
    display: flex;
    align-items: center;
}

article.nosto > * {
    display: block;
    width: 50%;
    box-sizing: border-box;
}

.nosto_kuva_aspectratio {
    display: block;
    /* padding-top: 82.71%; */
    background: var(--sininen);
    border-radius: 0 150px;
    background-size: cover !important;
    background-position: center !important;
    min-height: 603px;
    height: 100%;
}

.nosto_data {
    padding: 2rem 5rem;
}

article.nosto:nth-of-type(2n) {
    flex-direction: row-reverse;
    text-align: right;
}

.tekstiosio {
    display: block;
    padding: 5rem 0 5rem 0;
}

.nostot {
    display: block;
    padding: 9.500rem 0;
}

.tekstiosio h1,
.tekstiosio h2,
.tekstiosio h3,
.tekstiosio h4,
.tekstiosio h5 {
    color: var(--valkoinen);
}

.tekstiosio.kapea {
    width: 1000px;
    margin: 0 auto;
    max-width: 100%;
}

footer.alapalkki {
    display: block;
    padding: 5.3rem 0 5.7rem 0;
}

.alapalkki_ylarivi {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 6px solid var(--sininen);
    padding-bottom: 10px;
}

.alapalkki_ylarivi p {
    margin: 0;
    line-height: 1em;
    font-size: 1.25rem;
    font-family: "Orbitron", sans-serif;
    font-weight: 800;
    font-style: normal;
    color: var(--sininen);
}

.alapalkki_alarivi {
    display: grid;
    grid-template-columns: 29% 29% 42%;
    margin-top: 5rem;
}

.alarivi_1, .alarivi_2 {
    display: block;
    box-sizing: border-box;
    padding-right: 3rem;
}

.alarivi_3 {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: flex-end;
}

.alarivi_3_ylaosa {
    display: flex;
    gap: 2.750rem;
    width: 100%;
    max-width: 100%;
    justify-content: flex-end;
    box-sizing: border-box;
}

.alarivi_3_ylaosa > * {
    width: auto;
    flex-grow: 0;
    align-self: center;
}

.fb_nappula, .alapalkki .fb_nappula {
    background-color: var(--sininen);
    color: var(--valkoinen);
    font-weight: 800;
    padding: 0.6em 1.1em 0.6em 2.8em;
    background-image: url(images/ikoni_fb.svg);
    background-position: left 1.15em center;
    background-repeat: no-repeat;
    transition: 0.25s background, 0.25s color;
    display: inline-block;
    background-size: 0.6em auto;
}

.fb_nappula:hover, .alapalkki .fb_nappula:hover {
    background-color: var(--musta);
    color: var(--valkoinen);
}

.footnote {
    display: block;
    background: var(--musta);
    font-size: 0.9rem;
    padding: 1.1rem 0;
    color: var(--valkoinen);
}

.footnote > .kehys {
    display: flex;
    justify-content: space-between;
}

.footnote a {
    color: var(--valkoinen);
    margin-left: 1.5em;
    text-decoration: underline;
}

.footnote_1 {
    text-transform: uppercase;
}

.footnote a:hover {
    color: var(--vaaleansininen);
}

.footnote span.jakaja {
    margin: 0 0.3rem 0 0.5rem;
    color: var(--vaaleansininen);
}

.alapalkki a {
    display: inline-block;
    background: url(images/ikoni_nuolisininen.svg);
    background-size: 1.1em auto;
    background-position: center left;
    background-repeat: no-repeat;
    padding-left: 1.6em;
    color: var(--musta);
}

.alapalkki a[href^="tel"], .yhteyshenkilo a[href^="tel"] {
    background: url(images/ikoni_puhelin.svg);
    background-size: 0.8em auto;
    background-position: center left;
    background-repeat: no-repeat;
    padding-left: 1.2em;
}

.alapalkki a[href^="mailto"], .yhteyshenkilo a[href^="mailto"] {
    background: url(images/ikoni_sahkoposti.svg);
    background-size: 0.8em auto;
    background-position: center left;
    background-repeat: no-repeat;
    padding-left: 1.2em;
}

.alapalkki a:hover {
    color: var(--sininen);
}

.footnote p {
    margin: 0;
    line-height: 1em;
    font-size: 1em;
}

.alapalkki_ylarivi img {
    display: block;
}

header.ylapalkki {
    position: relative;
}

span.paikkakunta::before {
    content: '|';
    color: var(--sininen);
    margin-left: 0.3rem;
    margin-right: 0.4rem;
    display: inline-block;
}

span.paikkakunta:first-child::before {
    content: '';
    display: none;
}

.nosto_kuva {
    align-self: stretch;
}

body.noscroll {
    overflow: hidden;
}

section.hero {
    display: block;
    background: url(images/header.jpg);
    background-size: cover !important;
    background-position: center !important;
    padding: 6.75rem 0;
}

section.hero h1 {
    margin: 0;
    color: var(--valkoinen);
}

main.kaksijako {
    display: block;
    padding: 9rem 0 9.5rem 0;
}

main.kaksijako > .kehys {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 6.7rem;
}

span.lukunosto_otsikko {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--vaaleansininen);
    line-height: 0.8em;
    margin-bottom: 0.7em;
}

span.lukunosto_luku {
    display: block;
    font-family: "Orbitron", sans-serif;
    font-size: 4.15rem;
    color: var(--vaaleansininen);
    font-weight: 800;
    line-height: 0.8em;
    margin-bottom: 0px;
}

.lukunosto {
    display: block;
    padding-left: 1.75rem;
    border-left: 6px solid var(--vaaleansininen);
    margin-bottom: 4.25rem;
}

.otayhteytta_vasen > *:first-child, 
.kaksijako_vasen > *:first-child {
    margin-top: 0;
}

.otayhteytta_vasen > *:last-child, 
.kaksijako_vasen > *:last-child {
    margin-bottom: 0;
}

.otayhteytta {
    display: grid;
    padding: 9rem 0 9.5rem 0;
    grid-template-columns: 390px 1fr;
    gap: 8.2rem;
}

.kaksirivissa {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wpcf7-text, .wpcf7-email, .wpcf7-textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
    font-size: 1em;
    font-family: "Plus Jakarta Sans", sans-serif;
    border: 3px solid var(--harmaansininen);
    padding: 0.54em 0.8em;
}

span.radio_label {
    display: block;
    margin: 1.5em 0 1em 0;
}

span.wpcf7-form-control.wpcf7-radio {
    display: flex;
    margin-bottom: 1.5rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.wpcf7-radio input {
    display: inline-block;
    font-size: 1em;
    width: 1em;
    height: 1em;
    margin: 0;
    cursor: pointer;
}

.wpcf7-radio label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.wpcf7-submit.nappula {
    margin-top: 1.5rem;
}

.blue_bg a {
    color: var(--valkoinen);
    text-decoration: underline;
}

.blue_bg a:hover {
    color: var(--musta);
}

main.referenssit {
    display: block;
    padding: 8rem 0 7.5rem 0;
}

.referenssit > .kehys {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.referenssit h3 {
    margin-top: 3em;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

li::before {
    content: '– ';
}

.lisakuvat > .kehys {
    display: grid;
    grid-template-columns: calc(41.2% - 0.575rem) calc(58.8% - 0.575rem);
    gap: 1.15rem;
    align-items: end;
    box-sizing: border-box;
}

.lisakuvat img {
    display: block;
}

.lisakuvat {
    display: block;
    padding-bottom: 9.5rem;
}

.lisakuvat_vasen > img {
    border-radius: 0px 150px;
}

.lisakuvat_oikea img {
    border-radius: 150px 0px;
}

nav.paavalikko ul > li::before {
    display: none;
}

.google-maps {
	max-width:100%;
	position: relative;
	padding-bottom: 26.25%;
	overflow: hidden;
	margin: 0;
}

.google-maps iframe {
	pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}


h2.yhteyshenkilot_otsikko {
    margin: 0;
}

.yhteyshenkilot {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 8rem;
    flex-wrap: wrap;
}

.laskutustiedot {
    display: block;
    margin-bottom: 9rem;
}

.laskutustiedot h2 {
    margin-bottom: 2.8rem;
}

.yhteyshenkilot > * {
    width: 330px;
}

.paateksti_kuviolla_data {
    display: block;
    padding: 9rem 600px 0 0;
    background: url(images/alasivu_kuvio.svg);
    background-size: 480px auto !important;
    background-position: top -55px right !important;
    background-repeat: no-repeat !important;
    min-height: 482px;
    box-sizing: border-box;
}

.blue_bg .nappula {
    margin: 0.5rem;
}

.blue_bg p+p .nappula {
	margin-top: 1rem;
}

.tekstijakuva,
main.tekstijakuva {
    display: block;
    padding: 8.5rem 0 9rem 0;
}

.tekstijakuva > .kehys,
main.tekstijakuva > .kehys {
    display: grid;
    gap: 8rem;
    grid-template-columns: calc(57.9% - 8rem) 42.1%;
    align-items: center;
}

.tekstijakuva_kuva img {
    display: block;
    border-radius: 0px 150px;
}

.referenssit_vasen li::before,
.referenssit_oikea li::before,
.kaksijako_vasen li::before,
.paateksti_kuviolla_data li::before,
.nosto_data li::before,
.tekstijakuva li::before {
    display: none;
}

.referenssit_vasen li,
.referenssit_oikea li,
.kaksijako_vasen li,
.paateksti_kuviolla_data li,
.nosto_data li,
.tekstijakuva li {
    background: url(images/ikoni_checkmark.svg);
    background-repeat: no-repeat;
    background-size: 0.925em auto;
    padding-left: 1.6em;
    background-position: left top 0.3em;
    margin: 0.15em 0;
}

.wpcf7-list-item {
    margin-left: 0;
}

.wpcf7-not-valid-tip {
    background: #7a3333;
    color: var(--valkoinen);
    margin-top: -0.6em;
    padding: 0.6rem 1rem;
    margin-bottom: 0.6rem;
}

.wpcf7 form.invalid .wpcf7-response-output {
    border: 0;
    background: #7a3333;
    color: var(--valkoinen);
    margin: 1rem 0;
    text-align: center;
    padding: 2rem;
}

a.sahkopostiosoite > i {
    display: none !important;
}

@media screen and (max-width: 1600px) {
    html, body {
        font-size: 18px;
    }

    .nosto_kuva_aspectratio {
        min-height: 500px;
    }

	.yhteyshenkilot > * {
	    width: 300px;
	}
}

@media screen and (max-width: 1500px) {
    html, body {
        font-size: 17px;
    }

    a.paalogo {
        width: 25%;
    }
    nav.paavalikko ul {
        gap: 1.25rem;
    }

    main.etusivuteksti {
        padding: 7rem 0 8rem 0;
    }

    .palvelut {
        padding: 2rem 0;
    }

    .nostot {
        padding: 6rem 0;
    }

    .palvelut {
        grid-template-columns: 40% 40% 20%;
    }

    .alapalkki_alarivi {
        display: flex;
        flex-wrap: wrap;
    }

    .alarivi_1, .alarivi_2 {
        width: 50%;
        box-sizing: border-box;
    }

    .alarivi_3 {
        width: 100%;
        box-sizing: border-box;
        align-items: center;
        margin-top: 5rem;
        flex-direction: column-reverse;
    }

    .alarivi_3_ylaosa {
        justify-content: center;
        margin-top: 5rem;
    }

    .iso_hero_laatikko {
        width: 500px;
    }

    section.iso_hero {
        padding: 6rem 0;
    }

	.yhteyshenkilot > * {
	    width: 280px;
	}
}

@media screen and (max-width: 1400px) {
	.yhteyshenkilot > * {
	    width: calc(50% - 1rem);
	}
}

@media screen and (max-width: 1300px) {
    html, body {
        font-size: 16px;
    }

    .palvelut {
        grid-template-columns: 45% 45% 10%;
    }

    nav.paavalikko ul {
        font-size: 0.9rem;
    }

    section.iso_hero {
        padding: 5rem 0;
    }

    .nosto_data {
        padding: 1rem 3rem;
    }

    .alapalkki_ylarivi {
        display: block;
        border: none;
    }

    .alapalkki_ylarivi img {
        margin: 0 auto 1rem auto;
        border-bottom: 6px solid var(--sininen);
        padding-bottom: 10px;
        width: 350px;
        max-width: 80%;
    }

    .alapalkki_ylarivi div {
        text-align: center;
    }

    .alapalkki_alarivi {
        display: block;
        text-align: center;
        margin-top: 3rem;
    }

    .alarivi_1, .alarivi_2 {
        width: 100%;
        padding: 0;
    }

    .alarivi_2 {
        margin-top: 4rem;
    }

    .alarivi_3 {
        margin-top: 4rem;
    }

    .nosto_kuva_aspectratio {
        min-height: 400px;
    }

	.otayhteytta {
	    gap: 5rem;
	}

	main.kaksijako > .kehys {
	    gap: 4rem;
	}

	.paateksti_kuviolla_data {
	    padding-right: 450px;
	    padding-top: 6rem;
	}
	
	.paateksti_kuviolla_data {
		background-size: 400px auto !important;
		background-position: top -45px right !important;
	}
}

@media screen and (max-width: 1100px) {
    section.iso_hero {
        padding: 4rem 0;
    }

    main.etusivuteksti {
        padding: 5rem 0 6rem 0;
    }

    .nostot {
        padding: 3rem 0;
    }

    .ylapalkki_rajoittaja {
        padding: 0 25px;
    }

    .kehys {
        padding-left: 25px;
        padding-right: 25px;
    }

    .palvelut {
        grid-template-columns: 50% 50% 0%;
    }

    .palvelut_3 {
        display: none;
    }

    .footnote > .kehys {
        display: block;
        text-align: center;
    }

    .footnote_1 {
        margin-bottom: 2rem;
    }

    .footnote_2 > a {
        display: inline-block;
        padding: 0 0.5rem;
        margin: 0;
    }
		
	.paateksti_kuviolla_data {
	    padding-top: 4rem;
	}

    .tekstijakuva > .kehys,
    main.tekstijakuva > .kehys {
        gap: 4rem;
    }
}

@media screen and (min-width: 1001px) {
    nav.paavalikko li:hover > ul.sub-menu {
        transform: scaleY(1.0);
    }

    nav.paavalikko > ul > li.menu-item-has-children:hover > a {
        /* background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="15.693" height="9.154" viewBox="0 0 15.693 9.154"><path id="angle-down" d="M7.851,169.154a1.3,1.3,0,0,1-.924-.383L.388,162.232a1.308,1.308,0,0,1,1.849-1.849L7.851,166l5.615-5.615a1.308,1.308,0,0,1,1.849,1.849l-6.539,6.539A1.3,1.3,0,0,1,7.851,169.154Z" transform="translate(-0.005 -160)" fill="%23000000"/></svg>'); */
        color: var(--sininen);
    }
}

@media screen and (max-width: 1000px) {
    nav.paavalikko {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - 100%);
        background: var(--valkoinen);
        padding: 0 2.3rem;
        transform: scaleY(0);
        transform-origin: top;
        transition: 0.5s transform;
        box-sizing: border-box;
        z-index: 2;
        overflow-y: scroll;
    }
        
    nav.paavalikko ul {
        font-size: 1em;
        display: block;
    }

    nav.paavalikko > ul > li > a {
        padding: 0.75rem 0;
    }

    .mobile_nav_toggle {
        display: block;
        width: 30px;
        box-sizing: border-box;
        cursor: pointer;
        padding: 0;
        background: var(--vihrea);
        z-index: 100;
    }

    .viiva1,
    .viiva2,
    .viiva3 {
        width: 30px;
        height: 5px;
        background-color: var(--sininen);
        margin: 5px 0;
        transition: 0.4s;
    }

    .avattu .viiva1 {
        -webkit-transform: rotate(-45deg) translate(-8px, 7px);
        transform: rotate(-45deg) translate(-8px, 7px);
    }

    .avattu .viiva2 {
        opacity: 0;
    }

    .avattu .viiva3 {
        -webkit-transform: rotate(45deg) translate(-7px, -6px);
        transform: rotate(45deg) translate(-7px, -6px);
    }

    a.paalogo {
        width: 360px;
        max-width: 70%;
    }

    html, body {
        font-size: 20px;
    }

    header.ylapalkki {
        padding: 1.5rem 0;
    }

    .ylapalkki_rajoittaja {
        padding: 0 2.3rem;
    }

    .iso_hero_laatikko {
        width: 100%;
        margin-top: 60%;
    }

    .kehys {
        padding-left: 3.2rem;
        padding-right: 3.2rem;
    }

    section.iso_hero {
        background-size: auto 70%;
        background-position: center top;
        background-repeat: no-repeat;
        background-color: var(--valkoinen);
    }
        
    .etusivuteksti_kuvio {
        position: relative;
        box-sizing: border-box;
        top: unset;
        bottom: unset;
        width: 100%;
        min-height: 420px;
        aspect-ratio: 634 / 419;
    }

    main.etusivuteksti {
        padding-left: 3.2rem;
        padding-bottom: 0;
        padding-top: 3rem;
    }

    main.etusivuteksti > .kehys {
        padding-left: 0;
    }

    .etusivuteksti_data {
        width: 100%;
        text-align: center;
        padding-bottom: 6.5rem;
    }

    .palvelut {
        display: block;
        position: relative;
        z-index: 2;
    }

    .palvelut_3 {
        position: absolute;
        top: -150px;
        right: -3.2rem;
        display: block;
        width: 265px;
        height: 324px;
        background: url(images/palvelut_kuvio.svg);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: left top;
    }

    article.nosto {
        display: block;
        margin-bottom: 4rem;
    }

    article.nosto > * {
        width: 100%;
    }

    .nosto_kuva_aspectratio {
        padding-top: 75%;
        min-height: 0;
    }

    .nosto_data {
        display: block;
        text-align: center;
        padding: 2rem 0;
    }

    .nostot {
        padding-bottom: 1rem;
    }

    h1 {
        font-size: 2.05rem;
    }

    .iso_hero_laatikko {
        padding: 3rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .alapalkki_ylarivi p {
        font-size: 0.95rem;
    }

    .avattu+nav.paavalikko {
        transform: scaleY(1);
    }
        
    nav.paavalikko ul.sub-menu {
        display: none;
        position: relative;
        transform: initial;
        margin-left: 0;
        left: unset;
    }

    nav.paavalikko {
        padding: 0 0 0.5rem 0;
        /* border-bottom: 6px solid var(--sininen); */
        font-size: 1.2rem;
    }

    li.menu-item-has-children {
        padding: 0;
        background: none !important;
    }

    nav.paavalikko > ul > li > a {
        padding-left: 2.3rem;
        padding-right: 2.3rem;
    }

    li.menu-item-has-children > a {
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="15.693" height="9.154" viewBox="0 0 15.693 9.154"><path id="angle-down" d="M7.851,169.154a1.3,1.3,0,0,1-.924-.383L.388,162.232a1.308,1.308,0,0,1,1.849-1.849L7.851,166l5.615-5.615a1.308,1.308,0,0,1,1.849,1.849l-6.539,6.539A1.3,1.3,0,0,1,7.851,169.154Z" transform="translate(-0.005 -160)" fill="%23007fc9"/></svg>');
        background-position: center right 2.3rem !important;
        background-repeat: no-repeat !important;
        background-size: 1em auto !important;
    }

    nav.paavalikko ul.sub-menu {
        padding-left: 2.3rem;
        padding-right: 2.3rem;
        background: var(--valkoinen);
        padding-top: 0;
        padding-bottom: 0;
    }

    nav.paavalikko > ul > li:hover > a, nav.paavalikko > ul > li:hover > a:hover {
        color: var(--sininen);
    }

    .palvelut_3 img {
        display: none;
    }

	nav.paavalikko ul.sub-menu a,
	nav.paavalikko ul.sub-menu a:hover {
		color: var(--sininen);
	}

	.footnote {
		padding: 3rem 0;
	}

	span.paikkakunta {
	    display: inline-block;
	}
	
	.footnote p {
	    display: block;
	    width: 420px;
	    max-width: 100%;
	    margin-left: auto;
	    margin-right: auto;
	    line-height: 1.5em;
	}
	
	span.paikkakunta:nth-of-type(5)::before {
	    display: none;
	}

	main.kaksijako > .kehys {
	    display: block;
	}
	
	.kaksijako_oikea {
	    display: block;
	    margin-top: 5rem;
	}
	
	main.kaksijako {
	    padding: 3rem 0 0.75rem 0;
	}
	
	.otayhteytta {
		display: block;
		padding: 4rem 0;
	}

	.lukunosto {
	    margin-bottom: 3.25rem;
	}

	.otayhteytta_oikea {
	    display: block;
	    margin-top: 2rem;
	}

	.referenssit > .kehys {
	    display: block;
	}
	
	.lisakuvat_oikea {
	    margin-top: 2rem;
	}
	
	.referenssit_oikea {
	    margin-top: 4rem;
	}
	
	.lisakuvat > .kehys {
	    display: block;
	}
	
	.lisakuvat {
	    padding-bottom: 4rem;
	}
	
	main.referenssit {
	    padding: 4rem 0;
	}
	
	.referenssit h3 {
	    margin-top: 2rem;
	}

    .google-maps {
		padding-bottom: 50%;
	}

	.yhteyshenkilot > * {
	    width: 100%;
	    box-sizing: border-box;
	    margin-bottom: 3rem;
	}
	
	.yhteyshenkilot {
	    margin-bottom: 3rem;
	    display: block;
	}
	
	.laskutustiedot {
	    margin-bottom: 4rem;
	}
		
	.paateksti_kuviolla_data {
	    background-position: right top -30px !important;
	    background-size: auto 25vw !important;
	    padding-top: 23vw;
	    padding-right: 2rem;
	}
	
	.tekstijakuva > .kehys,
	main.tekstijakuva > .kehys {
	    display: flex;
	    flex-direction: column-reverse;
	}
	
	.tekstijakuva,
	main.tekstijakuva {
	    padding: 4rem 0;
	}
	
	.tekstijakuva > .kehys > *,
	main.tekstijakuva > .kehys > * {
	    display: block;
	    width: 100%;
	}

	span.lukunosto_otsikko {
	    font-size: 1.25rem;
	    margin-bottom: 0.4em;
	}
	
	span.lukunosto_luku {
	    font-size: 3rem;
	}
}

@media screen and (max-width: 750px) {
    .footnote span.jakaja {
        display: block;
        color: var(--musta);
        font-size: 0.1rem;
        line-height: 1rem;
    }

    .footnote {
        padding: 3rem 0;
    }
}

@media screen and (max-width: 700px) {
    html, body {
        font-size: 18px;
    }

    nav.paavalikko ul.sub-menu,
    nav.paavalikko > ul > li > a,
    .ylapalkki_rajoittaja,
    .kehys {
        padding-left: 2rem;
        padding-right: 2rem;
    }

	.paateksti_kuviolla .kehys {
		/* padding-left: 0; */
		padding-right: 0;
	}

    li.menu-item-has-children > a {
        background-position: center right 2rem !important;
    }

    main.etusivuteksti {
        padding-left: 2rem;
    }

    .palvelut_1, .palvelut_2 {
        padding-right: 0;
    }

    .palvelut_3 {
        right: -2rem;
    }
}

@media screen and (max-width: 600px) {
    html, body {
        font-size: 17px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .alarivi_3_ylaosa {
        display: grid;
        grid-template-columns: calc(34% - 2rem) calc(25% - 2rem) calc(41% - 2rem);
        gap: 3rem;
        justify-content: center;
        margin-top: 4rem;
    }

    .alarivi_3_ylaosa img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
    }

    .palvelut_3 {
        top: -100px;
        width: 200px;
        height: 230px;
    }
    
    footer.alapalkki {
        padding: 4rem 0;
    }

	.kaksirivissa {
	    display: block;
	}
}

@media screen and (max-width: 500px) {
    html, body {
        font-size: 16px;
    }

    nav.paavalikko ul.sub-menu, nav.paavalikko > ul > li > a, .ylapalkki_rajoittaja, .kehys {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    li.menu-item-has-children > a {
        background-position: center right 1.5rem !important;
    }

    main.etusivuteksti {
        padding-left: 1.5rem;
    }

    .iso_hero_laatikko {
        border-radius: 0 100px 0 100px;
        padding: 3rem 1.4rem;
    }

    .etusivuteksti_kuvio {
        border-radius: 100px 0 0 0;
    }

    .nosto_kuva_aspectratio {
        border-radius: 0 100px;
    }

    main.etusivuteksti {
        padding-top: 0;
    }

    .etusivuteksti_data {
        padding-bottom: 4rem;
    }

    .nostot {
        padding: 2rem 0 0 0;
    }

    article.nosto {
        margin-bottom: 0.5rem;
    }

    .palvelut_3 {
        top: -100px;
        right: -1.5rem;
        width: 150px;
        height: 175px;
    }

	.palvelut a {
		font-size: 1rem;
		margin: 1em 0;
	}

	.tekstiosio {
		padding: 4rem 0;
	}

	footer.alapalkki {
		padding: 4rem 0;
	}

	.alapalkki_ylarivi {
		padding-bottom: 1rem;
	}

	.alarivi_3_ylaosa {
        margin-top: 4rem;
    }

	.paateksti_kuviolla_data {
	    padding-right: 1.5rem;
		background-position: right top -10px !important;
	}
}

@media screen and (max-width: 400px) {
    html, body {
        font-size: 15px;
    }
    
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }

	nav.paavalikko ul.sub-menu a {
		white-space: initial;
	}

	.footnote p {
		width: 270px;
	}

	span.paikkakunta:nth-of-type(5)::before {
	    display: inline-block;
	}

	span.paikkakunta:nth-of-type(4)::before {
	    display: none;
	}

	.footnote > .kehys {
		padding-left: 10px;
		padding-right: 10px;
	}
}