/*
Theme Name: Autofabrik Teema
Description: Autofabrik Teema 2024
Author: Web-kehitys Miikka Asukas
Theme URI: https://miikka-asukas.fi
Author URI: https://miikka-asukas.fi
Version: 1.0
-----------------------------------------------------------------------------*/

@font-face {

	font-family: "korolev";
	src: url("fonts/korolev_thin_italic.woff2") format("woff2");
	font-display: auto;
	font-style: italic;
	font-weight: 300;
	font-stretch: normal;
}

@font-face {

	font-family: "korolev";
	src: url("fonts/korolev_bold.woff2") format("woff2");
	font-display: auto;
	font-style: normal;
	font-weight: 700;
	font-stretch: normal;
}

@font-face {

	font-family: "korolev";
	src: url("fonts/korolev_medium.woff2") format("woff2");
	font-display: auto;
	font-style: normal;
	font-weight: 500;
	font-stretch: normal;
}

@font-face {

	font-family: "korolev";
	src: url("fonts/korolev_medium_italic.woff2") format("woff2");
	font-display: auto;
	font-style: italic;
	font-weight: 500;
	font-stretch: normal;
}

@font-face {

	font-family: "korolev";
	src: url("fonts/korolev_light.woff2") format("woff2");
	font-display: auto;
	font-style: normal;
	font-weight: 300;
	font-stretch: normal;
}

@font-face {

	font-family: "korolev";
	src: url("fonts/korolev_bold_italic.woff2") format("woff2");
	font-display: auto;
	font-style: italic;
	font-weight: 700;
	font-stretch: normal;
}

*, *::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: 500;
}

html {

  --dark: #000;
  --light: #fff;
  --gold: #AC9672;
  --grey: #5D5D5D;
	--font: "korolev", -apple-system, BlinkMacSystemFont,  sans-serif;
	--border-radius: 0.5rem;
	--button-border-radius: 0.25rem;
}

html, body {

	scroll-behavior: smooth;
	height: 100%;
	width: 100%;
}

body {

	display: flex;
	flex-flow: column nowrap;
	-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(--dark);
	color: var(--light);
  font-family: "korolev", -apple-system, BlinkMacSystemFont,  sans-serif;
  font-weight: 300;
  font-style: normal;
}

h1, h2, h3, h4, h5 {

  font-style: normal;
  font-weight: 500;
}

::selection {

  background: var(--gold);
  color: var(--white);
}

img::selection {

  background: rgba(255, 255, 255, 0.5);
}

::-moz-selection {

	background: rgba(36, 48, 58, 0.95);
	color: #fff;
}

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, a.button {

  --size: clamp(1rem, 4vw, 1.25rem);
	-webkit-font-smoothing: inherit;
	-moz-osx-font-smoothing: inherit;
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	display: inline-block;
  margin: 0;
  width: auto;
	overflow: visible;
	outline: none;
	font-family: inherit;
  font-size: var(--size);
  letter-spacing: calc(var(--size) * 0.001 * 200);
	font-weight: 300;
  line-height: 0.7;
  text-transform: uppercase;
	cursor: pointer;
	user-select: none;
	padding: 1.125rem 1.875rem;
  border: 1px solid var(--light);
	border-radius: var(--button-border-radius);
	background: transparent;
	color: var(--light);
  text-align: center;
  transition: none;
}

button.selected, a.button.selected {

  background: var(--gold);
}

button::-moz-focus-inner {

  border: 0;
  padding: 0;
}

button.loading {

	pointer-events: none;
	color: transparent;
}

/* Loader */

.loader, .loading:after {

  border: 0.3rem solid var(--light);
  border-top: 0.3rem solid var(--gold);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  animation: spin 1s linear infinite;
	transition: none;
}

.loading:after {

	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -1rem 0 0 -1rem;
}

@keyframes spin {

  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media screen and (pointer: fine) {

  button:not(.menu):hover, a.button:hover {

    background: var(--gold);
		border-color: transparent;
  }

	a[href^="tel:"]:hover, a[href^="mailto:"]:not(.button):hover {

		text-decoration: underline;
	}
}

@media screen and (max-width: 30rem) {

  button, a.button {

    padding: 1rem;
    min-width: 0;
  }
}

/* Menu */

.menu {

  display: none;
	border: none;
	width: 2.875rem;
	height: 1.5rem;
	z-index: 4;
  min-width: 0;
	background-color: transparent;
	background: linear-gradient(var(--light) 0, var(--light) 100%);
  background-size: 100% 4px;
	background-position: center center;
	background-repeat: no-repeat;
	transition: all .1s 0s;
	transform-origin: center center;
	z-index: 3;
  box-sizing: content-box;
	padding: 0;
}

.menu:before, .menu:after {

  content: "";
	position: absolute;
	left: 50%;
	transform: translate(-50%, 0);
	width: 100%;
	height: 4px;
	background: var(--light);
	transition: .2s all ease;
	transform-origin: center center;
	will-change: transform, color, top;
}

.menu:before {

	top: 0;
}

.menu:after {

	bottom: 0;
}

.menu.open {

  background-size: 100% 0;
  transition: none;
}

.menu.open:before, .menu.open:after {

  left: 50%;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: .2s all ease-out;
}

.menu.open:before {

  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Header */

.header {


}

.header .inner {

  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 4rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem 1rem 1rem;
}

.header .logo {

  flex: 1;
  display: block;
  max-width: 10.5rem;
}

.header svg path {

  fill: var(--light);
}

.header .nav {

  display: flex;
  gap: 1rem;
}

.header .nav ul {

  display: grid;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 2;
  font-size: 1rem;
  padding: 1rem;
  gap: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: 0.1s ease all;
  background: var(--light);
  color: var(--dark);
  border-radius: 1rem;
}

.header .nav li {

  position: relative;
}

.header .nav ul li {

  white-space: nowrap;
}

.header .nav .liwrap label {

	display: none;
}

.header .nav a,
.header .car_nav a {

  display: block;
  font-weight: 500;
  text-transform: uppercase;
  padding: 1rem;
}

.header .nav ul li a {

  padding: 0.5rem;
  white-space: nowrap;
}

.header .nav a.selected,
.header .nav a[aria-current],
.header .nav ul li a[aria-current],
.header .nav li:hover ul li a[aria-current] {

  color: var(--gold);
}

.header .mobile {

  display: none;
}

@media screen and (pointer: fine) {

  .header .nav li:hover a {

    color: var(--gold);
  }

  .header .nav li:hover ul li a {

    color: var(--light);
  }

  .header .nav li:hover ul li a:hover {

    color: var(--gold);
  }
}

@media screen and (pointer: fine) and (min-width: 80rem) {

  .header .nav li:hover ul li a {

    color: var(--dark);
  }

  .header .nav li:hover ul {

    opacity: 1;
    visibility: visible;
  }
}

@media screen and (max-width: 80rem) {

  .header .inner {

    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
		height: 5.9375rem;
    gap: 2rem;
  }

  .menu {

    display: block;
  }

  .wrap {

    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: var(--dark);
    text-align: center;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    transition: 0.2s ease all;
		z-index: 2;
		padding: 5.9375rem 0;
  }

  .header .menu.open + .wrap {

    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  .header .nav {

    display: grid;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

	.header .nav .liwrap {

		display: flex;
		align-items: center;
		justify-content: center;
	}

	.header .nav .liwrap label {

		text-align: center;
		position: relative;
		display: block;
		font-size: clamp(1.5rem, 6vw, 2.5rem);
		padding: 0.5rem;
		width: 1rem;
	}

	.header .nav .liwrap label input {

		display: none;
	}

	.header .nav .liwrap label:before {

		content: "+";
	}

	.header .nav .liwrap label:has(input:checked):before {

		content: "-";
	}

	.header .nav .liwrap:has(label input:not(:checked)) + ul {

		display: none;
	}

	.header .nav .liwrap:has(label input:checked) + ul {

		display: grid;
	}

	.header .nav li:has(.liwrap label input:checked) {

		margin-bottom: 1rem;
	}

  .header .nav a {

    display: block;
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    font-weight: 300;
    text-transform: uppercase;
    padding: 0.5rem;
  }

  .header .nav ul {

    display: grid;
    position: static;
    padding: 0.5rem 0 1rem 0;
    gap: 0;
    opacity: 1;
    visibility: visible;
    transition: none;
    background: none;
    color: var(--light);
    border-radius: 0;
  }

  .header .nav ul li a {

    font-size: 1rem;
    padding: 0.5rem;
    white-space: normal;
  }

  .header .mobile {

    align-self: stretch;
    display: block;
    line-height: 1.5;
    padding: 0 4rem;
  }

  .header .mobile p {

    font-size: 0.75rem;
  }

  .header .mobile p a + a {

    padding-left: 0.5rem;
  }

  .header .mobile a.button {

    border-radius: 2rem;
    margin: 2rem 0 0 0;
  }

  .header .some {

    max-width: 25rem;
    margin: 2rem auto 0 auto;
    border-top: 1px solid var(--grey);
    border-bottom: 1px solid var(--grey);
  }
}

@media screen and (max-width: 80rem) and (orientation: landscape) {

  .wrap {

    justify-content: flex-start;
    padding: 4rem 0;
  }
}

@media screen and (max-width: 30rem) {

  .header .nav {

    gap: 0rem;
  }
}

@media screen and (max-width: 25rem) {

  .header .nav ul {

    padding: 0;
  }

  .header .mobile a.button {

    margin: 1rem 0;
  }

  .header .some {

    margin-top: 1rem;
  }
}

@media screen and (max-width: 20rem) {

  .header .mobile {

    padding: 0 1rem;
  }
}

/* Some */

.some {

  display: flex;
	flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.some a {

  display: block;
  padding: 1rem;
}

.some a svg {

	height: 1.5rem;
	width: auto;
}

.some a svg path {

	fill: var(--light);
}

@media screen and (pointer: fine) {

	.some a:hover svg path {

		fill: var(--gold);
	}
}

/* Landing */

.landing {

  display: grid;
  height: 50vw;
  padding: 0 2vw;
	margin: 0;
}

.landing .inner {

  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: var(--bg);
  border-radius: var(--border-radius);
}

.landing .inner h1 {

  --size: clamp(1rem, 5vw, 6.25rem);
  font-size: var(--size);
  font-weight: 300;
  letter-spacing: calc(var(--size) * 0.001 * 200);
  text-transform: uppercase;
  max-width: 75%;
  text-align: center;
  line-height: 1.4;
}

@media screen and (max-width: 64rem) {

	.landing {

	  padding: 0 1rem;
	}
}

/* Slider */

.auto_nav {

	display: flex;
	justify-content: space-between;
	padding: 0.5rem 5vw;
}

.auto_nav a {

	--size: clamp(1rem, 4vw, 1.25rem);
	display: block;
  font-size: var(--size);
  letter-spacing: calc(var(--size) * 0.001 * 50);
	line-height: 1.4;
	text-transform: uppercase;
}

.auto_nav img {

	display: block;
	position: relative;
	align-self: flex-start;
	z-index: 2;
	transform: translateY(-50%);
	width: 100%;
	max-width: clamp(2rem, 5vw, 6.25rem);
	height: auto;
}

@media screen and (pointer: fine) {

	.auto_nav a:hover {

		text-decoration: underline;
	}
}

@media screen and (max-width: 25rem) {

	.auto_nav img {

		display: none;
	}
}

.section figure,
.footer figure {

	margin: 0;
}

/* Section */

.section {

  padding: 3.75rem 2vw;
}

.section.no_padding {

	padding-top: 0;
}

.section.border {

	border-top: 1px solid var(--light);
}

.section .inner {

	position: relative;
	text-align: center;
}

.section h1,
.section h2 {

  --size: clamp(1.25rem, 5vw, 3rem);
  font-size: var(--size);
  letter-spacing: calc(var(--size) * 0.001 * 200);
  text-transform: uppercase;
  text-align: center;
}

.section h1 span,
.section h2 span {

	display: inline-block;
	margin: 0 2rem;
}

.section h3 {

  --size: clamp(1rem, 5vw, 2rem);
  font-size: var(--size);
  letter-spacing: calc(var(--size) * 0.001 * 200);
  text-transform: uppercase;
}

.section h4 {

  --size: clamp(1rem, 5vw, 1.25rem);
	color: var(--gold);
  font-size: var(--size);
  letter-spacing: calc(var(--size) * 0.001 * 200);
  text-transform: uppercase;
	margin: 4rem 0 2rem 0;
}

.section h4:first-child {

	margin: 0 0 2rem 0;
}

.section h1.new {

	display: flex;
	align-items: flex-end;
	justify-content: center;
	text-align: center;
}

.section h1.new:after,
.section h2.new:after {

	content: "Uusi";
	display: block;
	border-radius: 0 0.25rem 0.25rem 0;
	background: var(--gold);
	color: var(--light);
	padding: 0 0.5rem;
	line-height: 1.4;
	text-transform: uppercase;
	font-size: clamp(0.5rem, 4vw, 1.25rem);
	font-weight: 500;
	letter-spacing: 3px;
}

.section p {

	--size: 1rem;
  font-size: var(--size);
  letter-spacing: calc(var(--size) * 0.001 * 50);
	line-height: 1.6;
}

.section ul:not(.details) {

	--size: 1rem;
	display: inline-grid;
	list-style: disc;
	text-align: left;
  font-size: var(--size);
  letter-spacing: calc(var(--size) * 0.001 * 50);
	line-height: 1.6;
}

.section .text ul:not(.details) {

	display: inline-flex;
	flex-flow: column nowrap;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-weight: 500;
}

.section .elem + .elem {

  margin-top: 3.75rem;
}

.buttons {

  display: flex;
	flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  gap: 1.375rem;
}

.buttons a.button.selected {

	border-color: transparent;
}

.section .car_contact {

	display: inline-grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 1rem;
}

.section p.front {

	position: relative;
	--size: clamp(1.25rem, 3vw, 2.5rem);
  font-size: var(--size);
  font-weight: 300;
  letter-spacing: calc(var(--size) * 0.001 * 200);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.4;
	z-index: 1;
	max-width: 80rem;
	margin: 0 auto;
}


@media screen and (max-width: 64rem) {

	.section {

	  padding: 3.75rem 1rem;
	}

	.section h1 span,
	.section h2 span {

		margin: 0 0.5rem;
	}
}

@media screen and (max-width: 40rem) {

	.buttons {

		display: grid;
		grid-gap: 1rem;
	}
}

/* Section elements */

.text {

	max-width: 64rem;
	margin: 0 auto;
}

.text p {

	margin: 2rem 0;
}

.text p:first-child {

	margin-top: 0;
}

.text p:last-child {

	margin-bottom: 0;
}

.text a:not(.button) {

	text-decoration: underline;
}

.details {

	display: inline-grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 1rem;
}

.details li {

	--size: 1rem;
  font-size: var(--size);
  letter-spacing: calc(var(--size) * 0.001 * 20);
	line-height: 1.4;
	padding: 1rem;
	font-weight: 700;
	background: var(--gold);
}

.details h4 {

	font-size: 1rem;
	color: var(--light);
	text-transform: uppercase;
	margin: 0;
	font-weight: 300;
}

.section .details h4:first-child {

	margin: 0;
}

@media screen and (max-width: 40rem) {

	.details {

		grid-template-columns: 1fr;
	}
}

/* Filters */

.filters {

	position: absolute;
	top: 0;
	left: 0;
	min-height: 100%;
	width: 100%;
	background: var(--dark);
	visibility: hidden;
	opacity: 0;
	transition: all 0.3s ease;
	padding-bottom: 2rem;
	z-index: 1;
}

.filters.show {

	visibility: visible;
	opacity: 1;
}

.filters .filters_inner {

	max-width: 64rem;
	margin: 0 auto;
}

.filters .selection {

	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 2rem 1rem;
	max-width: 33.75rem;
	margin: 2rem auto;
}

.filters .selection select {

	--size: clamp(1rem, 4vw, 1.25rem);
	-webkit-appearance: none;
	appearance: none;
	background: var(--light);
	border-radius: var(--button-border-radius);
	color: var(--dark);
	line-height: 1.5;
	padding: 0.5em 2em 0.5em 1em;
	background-image: url(images/arrow.svg);
	background-position: calc(100% - 1em) calc(0.75em + 1px), calc(100% - 1em) calc(1em + 2px), calc(100% - 2.5em) 0.5em;
	background-repeat: no-repeat;
	font-family: var(--font);
  font-size: var(--size);
  letter-spacing: calc(var(--size) * 0.001 * 50);
	outline: none;
}

.filters button {

	border-radius: 0;
	background: var(--gold);
	border: none;
}

@media screen and (max-width: 40rem) {

	.filters .selection {

		grid-template-columns: 1fr;
	}
}

/* Lifts */

.lifts {

	position: relative;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: 5.5rem;
	max-width: 85rem;
	margin: 0 auto;
	min-height: 20rem;
}

.lifts .lift {

	display: block;
}

.lifts .lift.new {

	border: 2px solid var(--gold);
	overflow: hidden;
}

.lifts .gallery_inner {

	display: none;
}

.lift figure {

	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	background-image: var(--bg);
	aspect-ratio: 1.73 / 1;
	margin-bottom: 2rem;
	border-radius: var(--button-border-radius);
}

.lifts:not(.car_lifts) .lift figure {

	background-color: var(--light);
}

.lifts.car_lifts .lift figure:before {

	content: "";
	position: absolute;
	top: 2rem;
	left: 50%;
	transform: translateX(-50%);
	border: 0.3rem solid var(--light);
  border-top: 0.3rem solid var(--gold);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  animation: spin 1s linear infinite;
	transition: none;
	z-index: -1;
}

.lifts.car_lifts.loading .lift,
.lifts.car_lifts.loading button.load_more {

	display: none;
}

.section figure.load_more_loader {

	position: relative;
	width: 2rem;
	height: 2rem;
	margin: 0 auto;
	opacity: 0;
	visibility: hidden;
}

.section figure.load_more_loader.loading {

	opacity: 1;
	visibility: visible;
}

.lift.new figure:after {

	content: "Uusi";
	display: block;
	position: absolute;
	top: 1rem;
	left: 0;
	border-radius: 0 0.25rem 0.25rem 0;
	background: var(--gold);
	color: var(--light);
	padding: 0 0.5rem;
	line-height: 1.4;
	text-transform: uppercase;
	font-size: clamp(1rem, 5vw, 1.5rem);
	font-weight: 500;
}

.lift.video figure:after {

	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 2.5rem;
	height: 2.5rem;
	transform: translate(-50%, -50%);
	background-image :url(images/play.svg);
	background-repeat: no-repeat;
	background-size: contain;
}

.lift figure img {

	display: block;
	margin-bottom: -1rem;
}

.lifts .lift .lift_inner {

	padding: 0.5rem;
}

.lift h3 {

	--size: clamp(1.25rem, 5vw, 1.75rem);
  font-size: var(--size);
  letter-spacing: calc(var(--size) * 0.001 * 100);
  text-transform: uppercase;
  text-align: center;
	color: var(--gold);
	margin-bottom: 1rem;
}

.lift p {

	line-height: 1.2;
}

.lift p + button,
.lift p + a.button {

	margin-top: 2rem;
}

.lift p + p  {

	margin-top: 1rem;
}

.lift .color {

	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background-color: var(--bg);
	margin: 1rem auto 1rem auto;
}

.lift .year {

	color: var(--gold);
}

.lift a.button:hover {

	text-decoration: none;
}

@media screen and (pointer: fine) {

	.lifts .lift {

		transition: 0.2s ease all;
		border-radius: 0.25rem;
	}

	.lifts .lift:hover {

		background: rgba(255, 255, 255, 0.2);
	}

	.lifts .lift a:not(.button):hover {

		text-decoration: underline;
	}
}

@media screen and (max-width: 64rem) {

	.lifts {

		grid-template-columns: 1fr 1fr;
		grid-gap: 2rem 1rem;
	}
}

@media screen and (max-width: 40rem) {

	.lifts {

		grid-template-columns: 1fr;
	}
}

/* Car Listing */

.car_listing.loading:after {

	content: none;
}

.car_listing.loading .section .lifts:before {

	content: "";
	position: absolute;
	top: 2rem;
	left: 50%;
	transform: translateX(-50%);
	border: 0.2rem solid var(--light);
  border-top: 0.2rem solid var(--gold);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  animation: spin 1s linear infinite;
	transition: none;
}

.car_listing.loading .section .filter_btn {

	pointer-events: none;
	opacity: 0.5;
}

.car_listing.loading .section .lifts .lift {

	display: none;
}

/* Gallery */

.gallery {

	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 2rem;
	max-width: 54rem;
	margin: 0 auto;
}

.gallery a {

	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	background-image: var(--bg);
	aspect-ratio: 1.5 / 1;
	transform-origin: center center;
	transition: all 0.3s ease;
}

@media screen and (pointer: fine) {

	.gallery a:hover {

		transform: scale(1.02);
	}
}

@media screen and (max-width: 47rem) {

	.gallery {

		grid-template-columns: 1fr;
		grid-gap: 1rem;
	}
}

/* IMG Gallery */

.img_gallery {

	margin-left: auto;
	margin-right: auto;
	max-width: 80rem;
}

.img_gallery h2 {

	margin-bottom: 2rem;
}

.img_gallery_inner {

  display: grid;
  grid-template-columns: repeat(4, 1fr);
	grid-gap: 1rem;
}

.img_gallery_inner a {

  display: block;
  text-align: center;
}

.img_gallery_inner img {

	display: none;
}

.img_gallery_inner figure {

  background-image: var(--bg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  aspect-ratio: 1 / 1;
  margin: 0 0 1rem 0;
  transform-origin: center center;
  transform: scale(1);
  transition: 0.2s ease all;
	border-radius: 1rem;
	margin: 0;
}

.img_gallery_inner p {

  --size: clamp(0.875rem, 5vw, 1rem);
  font-size: var(--size);
  letter-spacing: calc(var(--size) * 0.001 * 100);
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.25;
}

.lg-sub-html h2 {

	font-family: "korolev", -apple-system, BlinkMacSystemFont,  sans-serif;
	line-height: 1.5;
	font-size: 0.875rem;
	margin-bottom: 0.5rem;
}

.lg-sub-html p {

	font-family: "korolev", -apple-system, BlinkMacSystemFont,  sans-serif;
	line-height: 1.5;
	margin-bottom: 0.5rem;
}

@media screen and (pointer: fine) {

  .img_gallery_inner a figure:hover {

    transform: scale(1.02);
  }

  .img_gallery_inner a p:hover {

    text-decoration: underline;
  }
}

@media screen and (max-width: 64rem) {

 	.img_gallery_inner {

    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 40rem) {

 	.img_gallery_inner {

    grid-template-columns: 1fr;
  }
}

/* Form */

input[type="text"], input[type="tel"], input[type="email"], textarea {

	appearance: none;
	-webkit-appearance: none;
	font-family: var(--font);
	--size: clamp(1rem, 4vw, 1.25rem);
  font-size: var(--size);
  letter-spacing: calc(var(--size) * 0.001 * 50);
	line-height: 1.4;
  font-weight: 300;
	color: var(--dark);
	background: var(--light);
	padding: 0.5rem 1rem;
  margin: 0;
	width: 100%;
	border: none;
	border-radius: 0;
	font-weight: 400;
	outline: none;
	resize: none;
	transition: all 0.3s ease;
	text-align: left;
}

.form {

	position: relative;
	margin: 0 auto;
	max-width: 64rem;
	padding: 0 1rem;
}

.form .thanks {

	position: absolute;
	top: -1rem;
	left: 0;
	width: 100%;
	height: calc(100% + 2rem);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: all 0.3s ease;
	background: var(--dark);
	z-index: 1;
}

.form .thanks button {

	margin-top: 2rem;
}

.form.success .thanks {

	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.form form {

	display: grid;
	grid-template-columns: 1fr;
	grid-gap: 1rem;
	margin-top: 1rem;
	transition: 0.3s ease all;
	max-width: 54.6875rem;
	margin: 0 auto;
}

.form form textarea {

	min-height: 5.8125rem;
}

.form.wait h3,
.form.wait form {

	pointer-events: none;
	opacity: 0.5;
}

.form form a {

	text-decoration: underline;
}

.form p {

	color: var(--gold);
	margin: 2rem 0;
}

.form .container {

	display: block;
	position: relative;
	cursor: pointer;
	user-select: none;
	padding-left: calc(1.375rem + 0.5rem);
	line-height: 1.375;
	text-align: left;
	margin: 0.5rem 0;
	--size: clamp(0.625rem, 3vw, 1.25rem);
  font-size: var(--size);
  letter-spacing: calc(var(--size) * 0.001 * 50);
}

.form .container input {

  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.form .container input[type="radio"] + .checkmark,
.form .container input[type="checkbox"] + .checkmark {

  position: absolute;
  top: 0;
  left: 0;
  height: 1.375rem;
  width: 1.375rem;
  background-color: var(--light);
	border: 1px solid #b2b2b2;
  border-radius: 50%;
	transition: 0.3s ease all;
}

.form .container input[type="radio"] + .checkmark:after,
.form .container input[type="checkbox"] + .checkmark:after {

	content: "";
	position: absolute;
  left: 50%;
  top: 50%;
	transform: translate(-50%, -50%) scale(0);
  width: 0.625rem;
  height: 0.625rem;
	background: var(--gold);
	border-radius: 50%;
	transition: 0.2s ease all;
}

.form .container input[type="radio"]:checked + .checkmark:after,
.form .container input[type="checkbox"]:checked + .checkmark:after {

	transform: translate(-50%, -50%) scale(1);
}

.form .center {

	display: flex;
	justify-content: center;
}

/* Row */

.rows {

	display: grid;
	grid-template-columns: 1fr;
}

.row {

	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 0;
}

.row figure {

	padding-bottom: 68.75%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	background-image: var(--bg);
}

.row .column {

	display: flex;
	justify-content: flex-start;
	padding: 4rem;
	text-align: left;
}

.row .column p {

	margin: 2rem 0;
}

.row .column .column_inner {

	max-width: 40.875rem;
}

.rows:not(.reverse) .row:nth-of-type(even) figure,
.rows.reverse .row:nth-of-type(odd) figure  {

	order: 2;
}

.rows:not(.reverse) .row:nth-of-type(even) .column,
.rows.reverse .row:nth-of-type(odd) .column {

	order: 1;
	justify-content: flex-end;
	text-align: right;
}

@media screen and (max-width: 80rem) {

	.row .column {

		padding: 2rem;
	}
}

@media screen and (max-width: 64rem) {

	.row {

		grid-template-columns: 1fr;
	}

	.rows .row:nth-of-type(even) figure,
	.rows.reverse .row:nth-of-type(odd) figure {

		order: 1;
	}

	.row .column,
	.rows .row:nth-of-type(even) .column,
	.rows.reverse .row:nth-of-type(odd) .column {

		order: 2;
		justify-content: center;
		text-align: center;
		padding: 4rem 0;
	}

	.rows .row:last-child .column {

		padding-bottom: 0;
	}
}

/* Sort */

.sort {

	position: relative;
	display: inline-grid;
}

.sort.disabled {

	opacity: 0.5;
	pointer-events: none;
}

.sort .select {

	position: absolute;
	top: 100%;
	width: 100%;
	display: grid;
	background: var(--gold);
	z-index: 1;
	opacity: 0;
	visibility: hidden;
	border-radius: 0 0 var(--button-border-radius) var(--button-border-radius);
}

.sort .select span {

	padding: 0.75rem 0.5rem;
	font-weight: 500;
	cursor: pointer;
}

.sort.open button {

	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	border-color: transparent;
	background: var(--gold);
}

.sort.open .select {

	opacity: 1;
	visibility: visible;
}

.sort .select span.selected {

	background: rgba(0, 0, 0, 0.3);
}

@media screen and (pointer: fine) {

	.sort:hover button {

		border-bottom-left-radius: 0;
		border-bottom-right-radius: 0;
		border-color: transparent;
		background: var(--gold);
	}

	.sort:hover .select {

		opacity: 1;
		visibility: visible;
	}

	.sort .select span:hover {

		background: rgba(0, 0, 0, 0.3);
	}
}

/* References */

.references {

  display: grid;
  gap: 4rem;
  max-width: 85rem;
  margin: 0 auto;
}

.references .reference {

	display: grid;
}

.references .reference .ref_upper {

  display: flex;
  flex-flow: row nowrap;
  gap: 1rem;
}

.references .reference .figure {

  flex: 3;
}

.references .reference .figure figure {

	position: relative;
  aspect-ratio: 5 / 3;
  background-color: var(--light);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  border-radius: 1rem;
  margin-top: 3rem;
}

.references .reference figure.gallery {

	cursor: pointer;
}

.references .reference figure.gallery:before {

	content: "";
	position: absolute;
	right: 1.5rem;
	top: 1.5rem;
	width: 1.5rem;
	height: 1.5rem;
	background-size: contain;
	background-position: center center;
	background-repeat: no-repeat;
	background-image: url(images/gallery.svg);
	opacity: 0.3;
	z-index: 1;
	transition: 0.2s ease all;
}

.references .reference figure.gallery:after,
.references .reference .ref_content .ref_inner_gallery figure:after {

	content: "";
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background: var(--dark);
	opacity: 0;
	transition: 0.2s ease all;
}

.references .reference .ref {

  flex: 4;
  display: flex;
  text-align: left;
}

.references:not(.plain) .reference:nth-of-type(even) .figure {

  order: 1;
}

.references:not(.plain) .reference:nth-of-type(even) .ref {

  order: 2;
}

.references .reference .ref .ref_inner {

	display: flex;
	flex-flow: column nowrap;
  padding: 1rem 1rem 0 1rem;
}

.references .reference .ref .ref_inner a.read_more,
.references .reference .ref_content a.close_more {

	margin-top: auto;
	font-size: 1.25rem;
	text-decoration: underline;
	color: var(--gold);
	padding-top: 2rem;
}

.references .reference.open .ref .ref_inner a.read_more,
.references .reference:not(.open) .ref_content a.close_more  {

	opacity: 0;
	pointer-events: none;
}

.references .reference .ref_content a.close_more {

	display: inline-block;
	margin: 2rem 0;
}

.references .reference .ref date {

  font-size: 1rem;
}

.references .reference .ref h3 {

  margin: 0 0 1rem 0;
}

.references .reference .ref date + h3 {

  margin-top: 1rem;
}

.references .reference .ref p + p {

  margin-top: 1rem;
}

.references .reference .ref a.button {

  margin-top: 2rem;
}

.references .reference .collapse {

	max-height: 0;
  overflow: hidden;
  transition: 0.6s ease all;
	opacity: 1;
}

.references .reference:not(.open) .collapse {

  transition: 0.4s ease all;
	opacity: 0;
}

.references .reference .ref_content {

	padding: 3rem 1rem 1rem 1rem;
	transition: 0.3s ease all;
}

.references .reference .ref_content h2 + p,
.references .reference .ref_content h3 + p,
.references .reference .ref_content p + p,
.references .reference .ref_content ul + p,
.references .reference .ref_content p + ul {

	margin-top: 1rem;
}

.references .reference .ref_content .video {

	margin-top: 4rem;
}

.references .reference .ref_content .video iframe {

	display: block;
	aspect-ratio: 16 / 9;
	width: 100%;
	max-width: 45rem;
	margin: 0 auto;
}

.references .reference .ref_content .ref_inner_gallery {

	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	gap: 1rem;
	max-width: 64rem;
	margin: 4rem auto 0 auto;
}

.references .reference .ref_content .ref_inner_gallery figure {

	flex: 1;
	position: relative;
	aspect-ratio: 1 / 1;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	cursor: pointer;
	max-width: 25%;
}

@media screen and (pointer: fine) {

	.references .reference figure.gallery:hover:after,
	.references .reference figure.gallery:hover:before,
	.references .reference .ref_content .ref_inner_gallery figure:hover:after {

		opacity: 0.5;
	}
}

@media screen and (max-width: 64rem) {

  .references {

    gap: 4rem;
  }

  .references .reference {

    display: flex;
    flex-flow: column nowrap;
    gap: 0rem;
  }

	.references .reference .ref_upper {

		display: grid;
	}

	.references .reference .figure figure {

		margin-top: 0;
	}

  .references .reference .figure,
  .references .reference:nth-of-type(even) .figure {

    order: 1;
  }

  .references .reference .ref,
  .references .reference:nth-of-type(even) .ref {

    order: 2;
  }

	.references .reference .ref_content {

		text-align: left;
		padding-top: 0;
	}

	.gallery {

		max-width: none;
	}

  .references .reference figure {

    aspect-ratio: 6 / 3;
		margin-top: 0;
  }

	.references .reference.open .ref .ref_inner a.read_more,
	.references .reference:not(.open) .ref_content a.close_more {

		padding: 0;
		max-height: 0;
		overflow: hidden;
	}
}

/* List */

.list {

	display: grid;
	grid-gap: 1rem;
	max-width: 54.6875rem;
	margin: 0 auto;
}

.list li {

	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.5rem 0;
	--size: clamp(1rem, 4vw, 1.25rem);
	background: var(--gold);
	color: var(--light);
	border-radius: 0.25rem;
	background-image: radial-gradient(white 1px, var(--gold) 0px);
	background-size: 8px 8px;
	background-repeat: repeat-x;
	background-position: left bottom 1rem;

  font-size: var(--size);
  letter-spacing: calc(var(--size) * 0.001 * 50);
	line-height: 1.8;
	text-align: left;
}

.list li span {

	display: block;
	background: var(--gold);
	padding: 0 1rem;
}

/* Boxes */

.boxes {

	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 2rem;
	padding-top: 3.75rem;
}

.boxes .box {

	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 73 / 28;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	border-radius: 1rem;
}

.boxes .box:before {

	content: "";
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background: #000;
	opacity: 0.3;
	transition: 0.2s ease all;
}

.boxes .box h3 {

	position: relative;
	--size: clamp(1.25rem, 3vw, 2.5rem);
  font-size: var(--size);
  font-weight: 300;
  letter-spacing: calc(var(--size) * 0.001 * 200);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.4;
	z-index: 1;
}

@media screen and (pointer: fine) {

	.boxes .box:hover:before {

		opacity: 0;
	}
}

@media screen and (max-width: 73rem) {

	.boxes {

		grid-template-columns: 1fr;
	}
}

/* Footer */

.footer {

	margin-top: auto;
	padding-top: 6rem;
}

.footer .inner {

	text-align: center;
	padding: 2rem;
}

.footer svg.logo {

	max-width: 10.5rem;
	margin: 2rem auto;
}

.footer svg path {

	fill: var(--light);
}

.footer .copy {

	font-size: 0.625rem;
	margin-top: 4rem;
}

/* Newsletter */

.newsletter {

	margin: 2rem auto;
	max-width: 20rem;
	margin: 0 auto 2rem auto;
	overflow: hidden;
}

.newsletter form {

	display: grid;
	gap: 0.25rem;
}

.newsletter .inp {

	display: flex;
	flex-flow: row nowrap;
	align-items: stretch;
}

.newsletter label {

	display: block;
	--size: 1rem;
  font-size: var(--size);
  letter-spacing: calc(var(--size) * 0.001 * 50);
	line-height: 1.6;
}

.newsletter input[type="email"] {

	--size: 1rem;
	flex: 1;
	border-radius: 2px 0 0 2px;
	line-height: 1;
	font-weight: 400;
	padding: 0.875rem 1rem;
}

.newsletter button {

	position: relative;
	border-radius: 0 2px 2px;
	padding: 0.5rem 1rem;
	border-left: none;
}

.newsletter button svg {

	width: 100%;
	max-width: 1.5rem;
	height: auto;
}

.newsletter button.loading:after {

	width: 1.5rem;
	height: 1.5rem;
	margin: -0.75rem 0 0 -0.75rem;
}

.newsletter button.loading svg {

	opacity: 0;
}

.newsletter button svg path {

	fill: var(--light);
}

@media screen and (pointer: fine) {

	.newsletter button:hover svg path {

		fill: var(--light);
	}
}

/* Animation */

@media screen and (prefers-reduced-motion: no-preference) {

	.car_listing .lifts .lift {

		opacity: 0;
		animation-delay: calc(var(--i) * 200ms);
		animation-name: lift_in;
		animation-duration: 0.4s;
		animation-timing-function: ease;
		animation-iteration-count: 1;
		animation-fill-mode: forwards;
	}

	.boxes .box,
	.references .reference,
	.img_gallery_inner a {

		opacity: 0;
		animation-delay: calc(var(--i) * 100ms);
		animation-name: lift_in;
		animation-duration: 0.4s;
		animation-timing-function: ease;
		animation-iteration-count: 1;
		animation-fill-mode: forwards;
	}
}

@keyframes lift_in {

	from {

		transform: translateY(25%);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Maintenance */

.maintenance {

	width: 100%;
	height: auto;
	max-width: 10.25rem;
	margin: 0 auto 2rem auto;
}


/* CopyDiv */

.copydiv {

	padding: 4rem;
	background: var(--light);
	color: var(--dark);
	text-align: center;
	display: grid;
	gap: 1rem;
	font-size: 1rem;
}
