/*
Theme Name: TKU-rakennus teema
Description: TKU-rakennus teema 2026
Author: Lycka Reklam AB & Web-kehitys Miikka Asukas
Theme URI: https://lyckareklam.fi/
Author URI: https://miikka-asukas.fi
Version: 1.0
-----------------------------------------------------------------------------*/

*, *::before, *::after {

	box-sizing: border-box;
}

html, body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, header, section, figcaption, footer, blockquote {

	margin: 0;
	padding: 0;
}

ul, ol {

	list-style: none;
}

b, strong {

	font-weight: 600;
}

html {

  --black: #000;
  --white: #fff;
	--light: #eeeded;
	--brown: #989191;
	--brown-light: #BFBABA;
	--font: "fira-sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-header: "fira-sans-2", -apple-system, BlinkMacSystemFont, sans-serif;
  --content-top: clamp(2.75rem, 10vw, 4.75rem);
  --content-padding: clamp(1rem, 4vw, 2rem);
	--content-width: 85.25rem;
	--border-radius: 1.5rem;
}

html, body {

	scroll-behavior: smooth;
	height: 100%;
	width: 100%;
}

body {

	-ms-touch-action: manipulation;
	touch-action: manipulation;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	text-rendering: optimizeSpeed;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1;
	font-size: 16px;
	background: var(--white);
	color: var(--black);
  font-family: var(--font);
  font-weight: 400;
  font-style: normal;
}

h1, h2, h3, h4, h5 {

  font-family: var(--font-header);
}

::selection {

  background: var(--brown);
  color: var(--white);
}

::-moz-selection {

	background: var(--brown);
  color: var(--white);
}

img::selection {

  background: rgba(255, 255, 255, 0.5);
}

img {

	display: block;
	max-width: 100%;
}

a {

	color: inherit;
	text-decoration: none;
}

p {

  font-size: 1rem;
}

svg {

  display: block;
}

.sr_only {

  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Button */

button {

	-webkit-font-smoothing: inherit;
	-moz-osx-font-smoothing: inherit;
	-webkit-appearance: none;
	appearance: none;
	outline: none;
	background: transparent;
	border: none;
	cursor: pointer;
  margin: 0;
	color: var(--dark);
}

button.button, a.button {

  --size: clamp(0.875rem, 2vw, 1.25rem);
	-webkit-font-smoothing: inherit;
	-moz-osx-font-smoothing: inherit;
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	display: inline-block;
  width: auto;
	min-width: 11.25rem;
	overflow: visible;
	font-family: inherit;
  font-size: var(--size);
  letter-spacing: calc(var(--size) * 0.001 * 170);
	font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
	padding: clamp(0.875rem, 3vw, 1rem) clamp(1rem, 3vw, 1.25rem);
  border: none;
	border-radius: 6px;
	background: var(--brown);
	color: var(--white);
  text-align: center;
  transition: none;
	user-select: none;
}

button.selected, a.button.selected {

  background: var(--brown);
}

button::-moz-focus-inner {

  border: 0;
  padding: 0;
}

button.loading {

	pointer-events: none;
	color: transparent !important;
}

button.loading:after {

	--size: clamp(1.5rem, 4vw, 2rem);
	--border: clamp(0.24rem, 0.75vw, 0.3rem);
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	margin: calc(var(--size) / 2 * -1) 0 0 calc(var(--size) / 2 * -1);
  border: var(--border) solid var(--white);
  border-top: var(--border) solid var(--brown);
  border-radius: 50%;
  width: var(--size);
  height: var(--size);
  animation: spin 1s linear infinite;
	transition: none;
}

@keyframes spin {

  0% { transform: rotate(0deg);  }
  100% { transform: rotate(360deg); }
}

@media screen and (pointer: fine) {

  button.button:hover, a.button:hover {

    background: var(--brown-light);
  }

	a[href^="tel:"]:hover, a[href^="mailto:"]:not(.button):hover {

		text-decoration: underline;
	}
}

/* Menu */

.menu {

	--color: var(--white);
	--color-open: var(--brown);
	--width: 2rem;
	--height: calc(var(--width) * 0.6);
	--border: calc(var(--height) * 0.18);
  position: relative;
  display: none;
	min-width: var(--width);
  width: var(--width);
  height: var(--height);
  background: linear-gradient(var(--color) 0, var(--color) 100%);
  background-size: 100% var(--border);
  background-position: center center;
  background-repeat: no-repeat;
  transition: background .1s .1s;
	margin-left: auto;
  border: none;
  padding: 0;
}

.menu:before,
.menu:after {

  content: "";
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  width: 100%;
  height: var(--border);
  background: var(--color);
  transition: .2s all ease;
  transform-origin: center center;
  will-change: transform, color, top;
}

.menu:before {

  top: 0;
}

.menu:after {

	bottom: 0;
}

.menu[aria-expanded="true"] {

	background-size: 100% 0;
	transition: none;
}

.menu[aria-expanded="true"]:before,
.menu[aria-expanded="true"]:after {

	top: 50%;
	bottom: auto;
	transform: translate(-50%, -50%) rotate(45deg);
	background: var(--color-open);
	transition: .2s all ease-out;
}

.menu[aria-expanded="true"]:before {

	transform: translate(-50%, -50%) rotate(-45deg);
}

/* Header */

.header {

	display: flex;
	flex-flow: column nowrap;
  position: relative;
	background: var(--light);
}

.header:has(.inner) {

	min-height: 100vh;
  min-height: -moz-available;
  min-height: -webkit-fill-available;
}


@-moz-document url-prefix() {

	.header:has(.inner) {

		height: 100%;
	}
}

.header .upper {

	display: flex;
	flex-flow: column nowrap;
	align-items: center;
	justify-content: center;
	background: var(--black);
	color: var(--white);
	gap: 0;
}

.header .logo {

	display: block;
	padding: 2rem 2rem 3rem 2rem;
	user-select: none;
}

.header .logo svg {

	width: 100%;
	max-width: clamp(10rem, 34vw, 21rem);
}

.header .logo svg path,
.header .logo svg polygon {

	fill: var(--white);
}

.header .nav {

	--size: 1rem;
	display: flex;
	gap: 3rem;
	text-transform: uppercase;
	font-weight: 600;
	font-size: var(--size);
  letter-spacing: calc(var(--size) * 0.001 * 60);
	padding-bottom: 1rem;
	line-height: 1.1;
}

.header .nav li:has([aria-current="page"]) {

	position: relative;
	color: var(--brown-light);
}

.header .nav li:has([aria-current="page"]):after {

	content: "";
	position: absolute;
	bottom: -6px;
	left: 0;
	width: 100%;
	height: 3px;
	border-radius: 3px;
	background: var(--brown-light);
}

.header .inner {

	flex: 1;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	position: relative;
	color: var(--white);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	background: var(--black);
}

.header .text_content {

	--padding: clamp(4rem, 18vw, 10rem);
	position: relative;
	padding: var(--padding);
	padding-bottom: 6rem; /*10rem*/;
	padding-top: 0;
	max-width: 74rem;
	z-index: 1;
	text-align: center;
}

.header .text_content:has(.buttons) {

	padding-bottom: 2rem;
}

.header .text_content p + .buttons {

	padding-top: clamp(2rem, 6vw, 6rem);
}

body.customize-support .header:has(.inner) {

	min-height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {

	body.customize-support .header:has(.inner) {

		min-height: calc(100vh - 46px);
	}
}

@media screen and (pointer: fine) {

	.header .nav a:hover {

		color: var(--brown-light);
	}
}

@media screen and (max-width: 47rem), screen and (max-width: 60rem) and (orientation: landscape) {

	.header .upper {

		position: relative;
		padding: 1rem;
		flex-flow: column nowrap;
		align-items: center;
		justify-content: center;
		gap: 1rem;
	}

	.header .logo {

		padding: 0;

	}

	.menu {

    display: block;
		margin: 0;
  }

  .header .nav {

		--size: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    background: var(--black);
    color: var(--white);
    margin: 0;
    padding: 2rem;
		padding-bottom: 2.5rem;
    transform: scaleY(0);
    transform-origin: top center;
    pointer-events: none;
    transition: 0.2s ease all;
		z-index: 3;
		gap: 1.875rem;
  }

  .header .nav li {

    opacity: 0;
  }

  .header .upper .menu[aria-expanded="true"] + .nav {

    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .header .upper .menu[aria-expanded="true"] + .nav li {

    opacity: 1;
    transition: 0.2s 0.2s ease all;
  }

	.header .text_content {

		padding: var(--content-padding);
		padding-bottom: clamp(4rem, 6vw, 6rem);
	}
}

/* Header animations */

.header .inner tku-rakennus-slider[loading] + .text_content,
.header .inner tku-rakennus-video[loading] + .text_content {

	opacity: 0;
}

@media screen and (prefers-reduced-motion: no-preference) {

	.header .inner[style*="background-image"] .text_content {

		opacity: 0;
	}

	.header .inner tku-rakennus-slider:not([loading]) + .text_content,
	.header .inner tku-rakennus-video:not([loading]) + .text_content,
	.header.show .inner[style*="background-image"] .text_content  {

		animation: header_text_in 0.4s ease 0s 1 forwards;
	}
}

@keyframes header_text_in {

  0% {

    opacity: 0;
    transform: translateY(10%);
  }

  100% {

    opacity: 1;
    transform: translateY(0);
  }
}

/* Lifts, Header & Footer Text settings */

.text_content h1 span,
.text_content h2 span {

	display: block;
	--size: clamp(0.75rem, 4vw, 1.25rem);
	font-family: var(--font);
	font-weight: 600;
	font-size: var(--size);
  letter-spacing: calc(var(--size) * 0.001 * 50);
	line-height: 1.33;
	text-transform: uppercase;
	font-style: normal;
}

.text_content h1,
.text_content h2 {

	--size: clamp(1.5rem, 5vw, 2.25rem);
	font-size: var(--size);
  letter-spacing: calc(var(--size) * 0.001 * 20);
	line-height: 1.33;
	font-weight: 600;
	font-style: italic;
}

.text_content h3 {

	--size: clamp(1rem, 2vw, 1.25rem);
	font-size: var(--size);
	font-family: var(--font);
  letter-spacing: calc(var(--size) * 0.001 * 50);
	line-height: 1.875;
	font-weight: 600;
	text-transform: uppercase;
}

.text_content p {

	--size: clamp(1rem, 2vw, 1.25rem);
	font-size: var(--size);
	font-family: var(--font-header);
  letter-spacing: calc(var(--size) * 0.001 * 20);
	line-height: 1.75;
	font-weight: 400;
	max-width: 54rem;
	margin-left: auto;
	margin-right: auto;
}

.text_content h1 + p,
.text_content h2 + p,
.text_content h1 + a.button,
.text_content h2 + a.button,
.text_content p + a.button {

	margin-top: 2rem;
}

.text_content .buttons,
.text.elem .buttons {

	display: inline-grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 8vw, 4rem);
}

@media screen and (max-width: 40rem) {

	.text_content .buttons,
	.text.elem .buttons {

		grid-template-columns: 1fr;
		grid-gap: 1rem;
	}
}

/* Content */

main {

  position: relative;
  z-index: 4;
  background: var(--white);
	overflow: hidden;
}

.content {

	position: relative;
  padding: var(--content-top) var(--content-padding);
}

.content.no_padding {

	padding-top: 0;
}

.content.black {

  background: var(--black);
	color: var(--white);
}

.content.brown {

	background: var(--brown);
	color: var(--white);
}

.content.brown button.button,
.content.brown a.button {

	background: var(--black);
	color: var(--white);
}

.content.brown .loading:after {

	border-top-color: var(--black);
}

.content .inner {

  max-width: var(--content-width);
  margin: 0 auto;
	text-align: center;
}

.content .inner > .elem + .elem:not(.no_margin) {

  margin-top: var(--content-top);
}

@media screen and (pointer: fine) {

	.content.brown button.button:hover,
	.content.brown a.button:hover {

		background: var(--brown-light);
	}
}

/* Text */

.text.elem {

	max-width: 68rem;
	margin: 0 auto;
}

.text.elem h2 {

	--size: clamp(2rem, 5vw, 2.25rem);
	font-size: var(--size);
  letter-spacing: calc(var(--size) * 0.001 * 20);
	line-height: 1.33;
	font-weight: 600;
	font-style: italic;
}

.text.elem h2.strong {

	font-family: var(--font);
	font-style: normal;
}

.text.elem h3 {

	--size: clamp(1rem, 2vw, 1.25rem);
	font-size: var(--size);
	font-family: var(--font);
  letter-spacing: calc(var(--size) * 0.001 * 50);
	line-height: 1.875;
	font-weight: 600;
	text-transform: uppercase;
}

.text.elem p {

	--size: clamp(1rem, 2vw, 1.25rem);
	font-size: var(--size);
	font-family: var(--font-header);
  letter-spacing: calc(var(--size) * 0.001 * 20);
	line-height: 1.75;
	font-weight: 400;
	margin: 2rem 0;
	margin-left: auto;
	margin-right: auto;
}

.text.elem p:first-child {

	margin-top: 0;
}

.text.elem p + a.button {

	margin-top: 3rem;
}

.text.elem p:last-child {

	margin-bottom: 0;
}

.text.elem a:not(.button) {

	text-decoration: underline;
}

.text.elem img {

	display: inline-block;
}

/* Lifts */

.lifts {

	display: grid;
	gap: var(--content-padding);
}

.lift {

	display: flex;
	flex-flow: row nowrap;
	border-radius: var(--border-radius); /* 2rem */
	overflow: hidden;
}

.lift.hide {

	display: none;
}

.lift .text {

	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--black);
	color: var(--white);
	padding: 4rem;
	text-align: left;
}

.lifts .img {

	flex: 1;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	position: relative;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
	background-color: var(--black);
	aspect-ratio: 16 / 9;
	color: var(--white);
}

.lifts .lift:has(.text) .img {

	min-width: 56%;
	padding-bottom: 48%;
	aspect-ratio: auto;
}

.lifts .text_content {

	--padding: clamp(1rem, 4vw, 4.25rem);
	position: relative;
	padding-bottom: var(--padding);
	max-width: 74rem;
	z-index: 1;
	text-align: center;
}

.lifts .lift:has(.text) .text_content {

	padding-bottom: 0;
	text-align: left;
}

.lift.reverse .text {

	order: 2;
}

.lifts.reverse .img {

	order: 1;
}

@media screen and (max-width: 64rem) {

	.lift {

		flex-flow: column nowrap;
	}

	.lift .text {

		order: 2;
		padding: clamp(2rem, 8vw, 4rem);
	}

	.lifts .lift:has(.text) .img {

		order: 1;
		min-width: inherit;
		padding-bottom: clamp(100%, 4vw, 56%);
	}
}

@media screen and (max-width: 47rem), screen and (max-width: 60rem) and (orientation: landscape) {

	.lifts .lift:has(:not(.text)) .img {

		aspect-ratio: auto;
	}

	.lifts .text_content a.button {

		min-width: 0;
	}

	.lifts .text_content {

		padding: calc(var(--padding) + (clamp(1.875rem, 4vw, 2.0625rem) * 4));
		padding-left: var(--content-padding);
		padding-right: var(--content-padding);
	}

	.lifts .lift:has(.text) .text_content {

		padding: 0;
		text-align: center;
	}
}

@media screen and (prefers-reduced-motion: no-preference) {

	.lifts .lift {

		opacity: 0;
	}

	.lifts .lift.show {

		animation: lift_in 0.3s ease 0s 1 forwards;
	}

	.lifts .lift:nth-of-type(even).show {

		animation: lift_in_reverse 0.3s ease 0s 1 forwards;
	}
}

@keyframes lift_in {

  0% {

    opacity: 1;
    transform: translateX(30%);
  }

  100% {

    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lift_in_reverse {

  0% {

    opacity: 1;
    transform: translateX(-30%);
  }

  100% {

    opacity: 1;
    transform: translateY(0);
  }
}

/* Header animations */

.lifts .img tku-rakennus-slider[loading] + .text_content,
.lifts .img tku-rakennus-video[loading] + .text_content {

	opacity: 0;
}

@media screen and (prefers-reduced-motion: no-preference) {

	.lifts .img tku-rakennus-slider:not([loading]) + .text_content,
	.lifts .img tku-rakennus-video:not([loading]) + .text_content {

		animation: header_text_in 0.3s ease 0s 1 forwards;
	}
}

/* Filters */

.filters {

	display: flex;
	align-items: center;
	justify-content: center;
	flex-flow: row wrap;
	gap: 2rem;
}

/* Asuntolistaus */

.apartments h2 {

	--size: clamp(2rem, 6vw, 3.75rem);
	font-size: var(--size);
  letter-spacing: calc(var(--size) * 0.001 * 20);
	line-height: 1.33;
	font-weight: 600;
	font-family: var(--font);
	font-style: normal;
	margin-bottom: var(--content-top);
}

.list_wrapper {

	--padding: 2.25rem;
	--size: clamp(1rem, 2vw, 1.25rem);
}

.list {

	width: 100%;
	border-collapse: collapse;
	margin-top: var(--content-top);
}

.list:not(.loading):has(:not(tbody)) {

	min-height: inherit;
}

.list.loading {

	position: relative;
	min-height: 100vh;
}

.list.loading:after {

	content: "";
  position: absolute;
  top: calc(-1 * var(--content-top));
  left: 50%;
	margin: -2rem 0 0 -2rem;
  border: 0.375rem solid var(--white);
  border-top: 0.375rem solid var(--black);
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  animation: spin 1s linear infinite;
  opacity: 1;
}

.list.loading *,
.list.loading thead tr th,
.list.loading tbody tr td {

	position: relative;
	opacity: 0;
	pointer-events: none;
	border-color: transparent !important;
}

.apartments:has(.list.loading) .filters {

	opacity: 0;
	pointer-events: none;
}

.list thead,
.list tbody {

	transition: 0.2s ease opacity;
}

.list th {

  font-size: var(--size);
  line-height: 1.222;
  letter-spacing: calc(var(--size) * 0.001 * 20);
	font-weight: 700;
	text-transform: uppercase;
	text-align: left;
	padding: 0.375rem 0;
	border-bottom: 1px solid var(--black);
}

.list td {

	position: relative;
	padding: 0.375rem 0;
	font-weight: 400;
	font-family: var(--font-header);
}

.list td, .list button.details {

  font-size: var(--size);
  line-height: 1.222;
  letter-spacing: calc(var(--size) * 0.001 * 20);
	text-align: left;
}

.list button.details {

	font-family: var(--font);
}

.list td .btns {

	display: flex;
	gap: 1rem;
}

.list td .btns button.button {

	color: var(--white);
}

.list tr {

	position: relative;
}

.list button.details {

	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-weight: 700;
	user-select: none;
	padding: 0;
}

.list button.details svg {

	width: clamp(0.5rem, 10vw, 0.75rem);
	height: auto;
}

.list button.details svg path {

	fill: none;
	stroke: var(--black);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 3px;
}

.list tr:not(.open) + tr.info td {

	padding: 0;
}

.list tr td:nth-of-type(2) {

	text-transform: uppercase;
}

.list tr td:last-child {

	text-align: right;
}

.list tbody tr:not(.open):not(.info):nth-last-of-type(2) td {

	border-bottom: 0;
}

.list tbody tr:not(.info) {

	border-bottom: 1px solid var(--black);
}

.list tbody tr:not(.info) td:nth-last-of-type(1) {

	display: flex;
	align-items: stretch;
	justify-content: flex-end;
	gap: 0.5rem;
}

.list tbody tr:not(.info) td:first-of-type {

	padding-left: 0.375rem;
}

.list tr.disabled {

	display: none;
}

.list button.button {

	--size: 1rem;
	padding: 0.5rem 1rem;
	min-width: 6.625rem;
	max-width: 6.625rem;
	font-weight: 500;
	line-height: 1;
	font-family: var(--font);
	letter-spacing: calc(var(--size) * 0.001 * 60);
}

.list button.button span {

	display: none;
}

.list button.button[data-state="1"] span:nth-of-type(1),
.list button.button[data-state="2"] span:nth-of-type(2),
.list button.button[data-state="3"] span:nth-of-type(3),
.list button.button[data-state="4"] span:nth-of-type(3) {

	display: inline;
}

.list button.button[data-state="3"] {

	opacity: 0.5;
	pointer-events: none;
}

.list button.button[data-state="4"] {

	opacity: 0;
	pointer-events: none;
}

.list td strong {

	font-family: var(--font);
}

.list tr.open td {

	background: var(--light);
}

.list tr.info td {

	border: none;
	text-align: left;
	padding-top: 0;
}

.list tr.info .collapse {

	position: relative;
	display: none;
	animation: none;
	transform-origin: top center;
	background: var(--light);
}

.list tr.open + tr.info .collapse {

	display: block;
	animation: apartment_in 0.3s ease 0s 1 forwards;
}

.list tr.info .collapse .info_inner {

	opacity: 0;
	animation: none;
}

.list tr.open + tr.info .collapse .info_inner {

	animation: apartment_inner_in 0.3s ease 0.3s 1 forwards;
}

.list .info_inner {

	padding: clamp(1rem, 4vw, 4rem);
}

.list .info_inner h3,
.list .info_inner h4 {

	--size: clamp(1rem, 2vw, 1.25rem);
  font-size: var(--size);
  line-height: 1.222;
  letter-spacing: calc(var(--size) * 0.001 * 10);
	text-align: left;
	color: var(--dark);
	font-family: var(--font);
	text-transform: none;
}

.list .info_inner h4,
.list .info_inner p {

	--size: clamp(1rem, 2vw, 1rem);
}

.list .info_inner p {

	margin: 0;
}

.list .info_row {

	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-top: 2rem;
	gap: 4rem;
}

.list .info_row .column {

	position: relative;
	order: 2;
	aspect-ratio: 1.5 / 1;
	border-radius: 1rem;
	overflow: hidden;
}

.list .grid {

	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem 2rem;
}

@keyframes apartment_in {

  0% {

    opacity: 0;
		transform: scaleY(0);
  }

  100% {

    opacity: 1;
		transform: scaleY(1);
  }
}

@keyframes apartment_inner_in {

	0% {

		opacity: 0;
	}

	100% {

		opacity: 1;
	}
}

@media screen and (pointer: fine) {

	.list button.details:hover {

		text-decoration: underline;
	}

	.list tbody tr:not(.info):hover td {

		background: var(--light);
		cursor: pointer;
		user-select: none;
	}
}

@media screen and (pointer: fine) and (min-width: 80rem) {

	.list tbody tr:not(.info):hover td:first-of-type:before,
	.list tbody tr:not(.info):hover td:last-of-type:after {

		content: "";
		position: absolute;
		top: 0;
		bottom: -1px;
		right: 100%;
		width: var(--padding);
		background: var(--light);
	}

	.list tbody tr:not(.info) td:last-of-type:after {

		right: auto;
		left: 100%;
	}
}

@media screen and (min-width: 80rem) {

	.list_wrapper {

		padding: 0 var(--padding);
	}

	.list tbody tr.info .collapse:before,
	.list tbody tr.info .collapse:after,
	.list tbody tr.open td:first-of-type:before,
	.list tbody tr.open td:last-of-type:after {

		content: "";
		position: absolute;
		top: 0;
		bottom: -1px;
		right: 100%;
		width: var(--padding);
		background: var(--light);
		transform-origin: top center;
	}

	.list tbody tr.info .collapse:after,
	.list tbody tr.open td:last-of-type:after {

		right: auto;
		left: 100%;
	}
}

@media screen and (max-width: 80rem) {

	.list thead tr th:nth-of-type(6),
	.list tbody tr td:nth-of-type(6) {

		display: none;
	}

	.list tbody tr:not(.info) td:last-of-type {

		padding-right: 0.375rem;
	}
}

@media screen and (max-width: 64rem) {

	.list .info_row {

		grid-template-columns: 1fr;
	}

	.list thead tr th:nth-of-type(5),
	.list tbody tr td:nth-of-type(5) {

		display: none;
	}
}

@media screen and (max-width: 48rem) {

	.list .info_row .column {

		position: relative;
		order: 2;
		aspect-ratio: 1 / 1;
	}
}

@media screen and (max-width: 44rem) {

	.list tbody tr:not(.info) td:nth-last-of-type(1) {

		flex-flow: column nowrap;
		align-items: flex-end;
	}

	.list tbody tr:not(.info) td:nth-last-of-type(1) button {

		order: 2;
	}

	.list tbody tr:not(.info) td:nth-last-of-type(1) button + button {

		order: 1;
	}

	.list tr td:nth-of-type(2) {

		word-break: break-word;
	}
}

@media screen and (max-width: 40rem) {

	.list thead tr th:nth-of-type(4),
	.list tbody tr td:nth-of-type(4) {

		display: none;
	}

	.list .info_row {

		gap: 2rem;
	}
}

@media screen and (max-width: 30rem) {

	.list thead tr th:nth-of-type(3),
	.list tbody tr td:nth-of-type(3) {

		display: none;
	}

	.list .grid {

		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 22rem) {

	.list thead tr th:nth-of-type(2),
	.list tbody tr td:nth-of-type(2) {

		display: none;
	}
}

/* Popup */

body:has(tku-rakennus-popup.open) {

	overflow: hidden;
}

.content tku-rakennus-popup h2 {

	font-family: var(--font-header);
	font-style: italic;
	line-height: 1.333;
	margin-bottom: 2rem;
}

.content tku-rakennus-popup p {

	margin-bottom: 2rem;
}

.content tku-rakennus-popup .form .thanks {

	background: var(--black);
}

.content tku-rakennus-popup .checkbox input + .checkmark:after {

	background: var(--black);
}

/* Boxes */

.boxes {

	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-auto-rows: 1fr;
	gap: 1rem;
}

.boxes.full {

	grid-template-columns: repeat(4, 1fr);
}

.boxes .box {

	display: flex;
	justify-content: center;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	background-color: var(--brown);
	color: var(--white);
	border-radius: var(--border-radius);
	padding: clamp(2rem, 8vw, 4rem);
}

.boxes.full .box {

	padding: 2rem;
	align-items: center;
}

.boxes .text_content h3 {

	--size: clamp(1.25rem, 2vw, 2.5rem);
	font-size: var(--size);
	font-family: var(--font-header);
  letter-spacing: calc(var(--size) * 0.001 * 20);
	line-height: 1.875;
	font-weight: 400;
	font-style: italic;
	margin: clamp(1rem, 4vw, 2rem) auto 0 auto;
	text-transform: none;
}

.boxes .box[style*="background-image"] {

	/*align-items: flex-end;*/
	aspect-ratio: 1.129 / 1;
}

@media screen and (max-width: 80rem) {

	.boxes.full {

		grid-template-columns: 1fr 1fr;
	}
}

@media screen and (max-width: 50rem) {

	.boxes,
	.boxes.full {

		grid-template-columns: 1fr;
		grid-auto-rows: 1fr;
	}

	.boxes .box {

		align-items: center;
	}

	.boxes .text_content h3 {

		--size: clamp(1rem, 4vw, 2.5rem);
	}
}

@media screen and (prefers-reduced-motion: no-preference) {

	.boxes .box {

		opacity: 0;
	}

	.boxes.show .box {

		animation: box_in 0.3s ease calc(var(--i) * 200ms) 1 forwards;
	}
}

@keyframes box_in {

  0% {

    opacity: 0;
    transform: translateY(20%);
  }

  100% {

    opacity: 1;
    transform: translateY(0);
  }
}

/* IMG */

.img.elem {

	border-radius: var(--border-radius);
	overflow: hidden;
}

@media screen and (prefers-reduced-motion: no-preference) {

	.img.elem {

		opacity: 0;
	}

	.img.elem.show {

		animation: img_in 0.4s ease 0s 1 forwards;
	}
}

@keyframes img_in {

  0% {

    opacity: 0;
  }

  100% {

    opacity: 1;
  }
}

/* Contacts */

.contacts {

	display: inline-grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem 1rem;
	font-family: var(--font-header);
}

.contacts.single {

	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	align-items: stretch;
}

.contacts:not(.single) .contact {

	flex: 1;
	width: 100%;
	width: 24.875rem; /*18.75rem;*/
	display: flex;
	flex-flow: column nowrap;
}

.contact figure {

	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	width: 100%;
	max-width: 24.75rem;
	aspect-ratio: 1 / 1.2642;
	border-radius: var(--border-radius);
	margin: 0 auto;
}

.contacts.single .contact figure {

	max-width: 16.4375rem;
}

.contacts.single figure {

	aspect-ratio: 1 / 1;
}

.contact .text_content {

	flex: 1;
	display: flex;
	flex-flow: column nowrap;
	gap: 1rem;
	margin-top: 1rem;
}

.contact .text_content p,
.contact .text_content h3 {

	line-height: 1;
}

.contact .text_content p {

	font-size: clamp(1rem, 2vw, 1.25rem);
	letter-spacing: inherit;
	margin-left: 0;
	margin-right: 0;
}

.contact .text_content p:has(a) {

	margin-top: auto;
	line-height: 1.5;
}

.contact .text_content h3 + p {

	font-style: italic;
}

.contact .text_content a {

	display: block;
	font-style: italic;
	text-decoration: underline;
}

.contact .text_content a + a {

	margin-top: 0.5rem;
}

@media screen and (max-width: 58rem) {

	.contacts:not(.single) {

		display: grid;
	}

	.contacts:not(.single) .contact {

		flex: 1;
		width: 100%;
	}
}

@media screen and (max-width: 35rem) {

	.contacts {

		grid-template-columns: 1fr;
	}
}

@media screen and (prefers-reduced-motion: no-preference) {

	.contacts .contact {

		opacity: 0;
	}

	.contacts.show .contact {

		animation: contact_in 0.3s ease calc(var(--i) * 200ms) 1 forwards;
	}
}

@keyframes contact_in {

  0% {

    opacity: 0;
    transform: translateY(20%);
  }

  100% {

    opacity: 1;
    transform: translateY(0);
  }
}

/* Map */

.map {

	position: relative;
	max-width: 50.625rem;
	margin: 0 auto;
	aspect-ratio: 16 / 9;
	filter: grayscale(100%);
}

/* Statistics */

.statistics {

	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: clamp(2rem, 8vw, 8rem);
}

.statistics .side {

	display: flex;
	flex-flow: column nowrap;
}

.statistics .side:first-of-type {

	gap: 1rem;
}

.statistics .side:last-of-type {

	justify-content: space-between;
	gap: 3rem;
}

.statistics h2 {

	--size: clamp(1.25rem, 3vw, 2.5rem);
	font-size: var(--size);
	font-family: var(--font-header);
  letter-spacing: calc(var(--size) * 0.001 * 20);
	line-height: 1;
	font-weight: 400;
	font-style: italic;
	text-transform: none;
	text-align: left;
	white-space: nowrap;
}

.statistics p {

	--size: clamp(1rem, 1.5vw, 1.375rem);
	font-size: var(--size);
	font-family: var(--font-header);
  letter-spacing: calc(var(--size) * 0.001 * 80);
	line-height: 1;
	font-weight: 200;
	font-style: italic;
	text-transform: uppercase;
}

.statistics h3 {

	--size: clamp(0.5rem, 3vw, 1rem);
	font-size: var(--size);
	font-family: var(--font);
  letter-spacing: calc(var(--size) * 0.001 * 20);
	line-height: 1.2;
	font-weight: 500;
	text-transform: uppercase;
}

.statistics .side:first-of-type h3 {

	text-align: left;
	margin-top: 1rem;
}

.statistics h4 {

	--size: clamp(2rem, 6vw, 6.1rem);
	font-size: var(--size);
	font-family: var(--font);
  letter-spacing: calc(var(--size) * 0.001 * 20);
	line-height: 1;
	font-weight: 900;
	text-transform: uppercase;
	white-space: nowrap;
}

.statistics .details {

	--gap: clamp(1rem, 6vw, 3rem);
	flex: 1;
	position: relative;
	display: flex;
	flex-flow: row nowrap;
	gap: var(--gap);
}

.statistics .details.full {

	justify-content: space-between;
}

.statistics .summary {

	flex: 1;
	position: relative;
	display: grid;
	gap: 0;
}

.statistics .details.full .summary {

	flex: auto;
}

.statistics .details:not(.full) .summary + .summary:before {

	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc(var(--gap) / 2 * -1);
	width: 1px;
	background: var(--white);
}

.statistics .details .border:before {

	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 1px;
	background: var(--white);
}

.statistics .highlight {

	display: grid;
	gap: 1.25rem;
	background: var(--brown);
	padding: 1.25rem 1rem;
	border-radius: 0.5rem;
}

.statistics .highlight h3 {

	--size: clamp(1rem, 3vw, 2.75rem);
	line-height: 1;
}

.statistics .highlight h4 {

	--size: clamp(1.25rem, 5vw, 3.875rem);
	line-height: 1;
}

.statistics svg {

	width: 100%;
	height: auto;
}

.statistics svg line {

	fill: none;
	stroke: var(--white);
	stroke-width: 2px;
}

.statistics svg text {

	font: italic 14px var(--font-header);
	fill: var(--white);
	dominant-baseline: middle;
}

.statistics svg .text_x text {

	text-anchor: middle;
}

.statistics svg rect {

	stroke: none;
	fill: var(--brown);
}

@media screen and (max-width: 60rem) {

	.statistics {

		display: grid;
		justify-content: center;
		gap: 4rem;
	}

	.statistics .side:first-of-type {

		order: 2;
	}

	.statistics .side:last-of-type {

		order: 1;
	}

	.statistics h2 {

		white-space: normal;
	}

	.statistics .summary {

		gap: 0.5rem;
	}
}

@property --num {

  syntax: '<integer>';
  initial-value: 0;
  inherits: false;
}

@property --percent {

  syntax: "<number>";
  initial-value: 0;
  inherits: false;
}

@property --temp {

  syntax: "<number>";
  initial-value: 0;
  inherits: false;
}

@property --v1 {

  syntax: "<integer>";
  initial-value: 0;
  inherits: false;
}
@property --v2 {

  syntax: "<integer>";
  initial-value: 0;
  inherits: false;
}

@media screen and (prefers-reduced-motion: no-preference) {

	.statistics h2,
	.statistics .side:first-of-type h3,
	.statistics h4[style],
	.statistics svg,
	.statistics .highlight {

		opacity: 0;
	}

	.statistics h4[style*="--total"] {

		position: relative;
	  counter-set: num var(--num);
		color: rgba(255, 255, 255, 0);
	}

	.statistics h4[style*="--percent"] {

	  --temp: 0;
	  --v1: max(var(--temp) - 0.5, 0);
	  --v2: calc((max((var(--temp) - var(--v1)) * 100 - 0.5, 0)) / 10);
		counter-reset: v1 var(--v1) v2 var(--v2);
		color: rgba(255, 255, 255, 0);
	}

	.statistics h4[style*="--total"]:after,
	.statistics h4[style*="--percent"]:after {

		content: counter(num);
		position: absolute;
		left: 0;
		right: 0;
		opacity: 1;
		color: var(--white);
	}

	.statistics h4[style*="--percent"]:after {

		content: counter(v1) "," counter(v2) "%";
	}

	.statistics h2.show {

		animation: statistics_header_in 0.3s ease 0s 1 forwards;
	}

	.statistics .side:first-of-type h3.show,
	.statistics svg.show,
	.statistics .highlight.show {

		animation: statistics_in 0.3s ease 0s 1 forwards;
	}

	.statistics .side:first-of-type h3.show {

		animation-delay: 200ms;
	}

	.statistics h4[style*="--total"].show {

		animation: counter 1s 1 forwards ease-out;
	}

	.statistics h4[style*="--percent"].show {

		animation: counter_percent 1s 1 forwards ease-out;
	}
}

@keyframes statistics_header_in {

  0% {

    opacity: 0;
    transform: translateX(-30%);
  }

  100% {

    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes statistics_in {

  0% {

    opacity: 0;
    transform: translateY(20%);
  }

  100% {

    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes counter {
  0% {

    --num: 0;
		opacity: 0;
  }
  100% {
		opacity: 1;
    --num: var(--total);
  }
}

@keyframes counter_percent {
  0% {

    --temp: 0;
		opacity: 0;
  }
  100% {
		opacity: 1;
    --temp: calc(var(--percent) * 100);
  }
}

/* Form */

input[type="text"], input[type="tel"], input[type="email"], textarea {

	appearance: none;
	-webkit-appearance: none;
	font-family: var(--font-header);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: normal;
	color: var(--black);
	background: var(--white);
	padding: 1rem 2rem;
  margin: 0;
	width: 100%;
	border: none;
	border-radius: 0.5rem;
	font-weight: 400;
	outline: none;
	resize: none;
	text-align: left;
}

textarea {

  resize: vertical;
  min-height: 12.5rem;
}

::placeholder {

	color: var(--dark);
	text-align: center;
}

.form .thanks {

  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: var(--brown);
  z-index: 1;
  opacity: 0;
	padding: 2rem var(--content-padding);
  pointer-events: none;
  visibility: hidden;
  transition: 0.3s ease all;
}

.form.success .thanks {

  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: none;
}

.form.wait form {

  pointer-events: none;
}

.form .thanks p {

  margin: 2rem 0;
}

.form form {

  display: grid;
  grid-gap: 0.5rem;
  max-width: 51.25rem;
  margin: 0 auto;
}

.form form a {

  text-decoration: underline;
}

.checkbox {

  --size: 1.375rem;
  display: inline-block;
	position: relative;
	cursor: pointer;
	user-select: none;
	padding-left: calc(var(--size) + 0.5rem);
	line-height: var(--size);
	text-align: left;
	margin: 0;
  font-size: clamp(0.875rem, 3vw, 1.25rem);
	font-family: var(--font-header);
}

.checkbox.hide {

	display: none;
}

.form form div .checkbox {

	margin-top: 0.5rem;
}

.checkbox input {

  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox input + .checkmark,
.checkbox input + .checkmark {

  position: absolute;
  top: 0;
  left: 0;
  height: var(--size);
  width: var(--size);
  background-color: var(--light);
  border-radius: 50%;
	transition: 0.3s ease all;
}

.checkbox input + .checkmark:after {

	content: "";
	position: absolute;
  left: 50%;
  top: 50%;
	transform: translate(-50%, -50%) scale(0);
  width: 100%;
  height: 100%;
	background: var(--brown);
	border-radius: 50%;
	transition: 0.3s ease all;
}

.checkbox input:checked + .checkmark:after {

	transform: translate(-50%, -50%) scale(1);
}

.form .checkbox input + .checkmark:after {

	width: calc(var(--size) * 0.45);
  height: calc(var(--size) * 0.45);
}

.form .submit {

  margin-top: 2rem;
}

.form input[name="data[customer][address]"],
.form input[name="data[customer][city]"],
.form input[name="data[customer][postal_code]"] {

	display: none;
}

/* Footer */

.footer .inner {

	max-width: 68rem;
	margin: 0 auto;
}

.footer .some {

	margin-top: 2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.footer .some a {

	display: block;
}

.footer .some svg {

	width: 2.25rem;
	height: auto;
}

.footer .some svg path {

	stroke: none;
	fill: var(--black);
}

.footer .some svg path:not(.tube):first-of-type {

	fill: var(--white);
}

.footer .copy {

	font-size: 0.875rem;
	margin-top: 4rem;
}

.footer .copy span {

	padding: 0 1rem;
}

.footer a {

	text-decoration: underline;
}

@media screen and (pointer: fine) {

	.footer .some a:hover svg path:not(.tube):first-of-type {

		fill: var(--light);
	}
}

@media screen and (max-width: 30rem) {

	.footer .copy span {

		display: none;
	}

	.footer .copy a {

		display: block;
		text
	}
}
