/* =========================================================================
   ATS hooldus – kogu lehe stiil.
   Mõõdud on võetud üks-ühele vanalt Elementoriga tehtud lehelt.
   ========================================================================= */

:root {
	--punane: #cb2027;          /* põhiline brändipunane (nupud, numbrid) */
	--punane-tume: #ae1b20;     /* sildid ja vormi nupp */
	--punane-grad: linear-gradient(150deg, #95060c 0%, #e24449 100%);
	--sinine: #29aed7;          /* päise nupp */
	--tume: #1a1b1c;            /* pealkirjad, jalus */
	--tint: #1c2329;            /* menüü tekst */
	--hall: #585965;            /* vormiväljade tekst */
	--vorm-taust: #f8f9fa;
	--konteiner: 1200px;
	--serv: 6%;
}

/* --- Alus ---------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	/* Vanal lehel oli sujuv kerimine ankrutele. */
	scroll-behavior: smooth;
}

/* Fikseeritud päis on 90px – ankruhype peatub selle võrra allpool, et
   sektsiooni pealkiri ei jääks päise alla peitu. */
[id] { scroll-margin-top: 90px; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body {
	margin: 0;
	/* Vanal lehel oli päise all 24px kõrgune riba + 2% marginaal. Sama vahe
	   hoiab kangelasploki täpselt samal kõrgusel nagu enne. */
	padding-top: calc(2% + 24px);
	background: #fff;
	color: var(--tume);
	font-family: Inter, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	overflow-x: hidden;
}

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

a { color: inherit; }

p { margin: 0 0 .9rem; }

h1, h2, h3 { margin: 0; font-weight: 500; }

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

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: 12px 20px;
	background: #fff;
	color: var(--tume);
}
.skip-link:focus { left: 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.wrap {
	max-width: var(--konteiner);
	margin: 0 auto;
}

/* --- Nupud --------------------------------------------------------------- */

.btn {
	display: inline-block;
	border: 0;
	border-radius: 3px;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: background-color .3s, transform .3s;
}

.btn--blue {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px 24px;
	background: var(--sinine);
	color: #fff;
	font-family: Roboto, sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 15px;
}
.btn--blue:hover,
.btn--blue:focus-visible { background: var(--tint); }
.btn__icon { width: 15px; height: 15px; }

.btn--red {
	padding: 18px 45px;
	border-radius: 6px;
	background: var(--punane);
	color: #fff;
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
}
.btn--red:hover,
.btn--red:focus-visible { transform: translateY(-8px); }

.btn--form {
	padding: 0 24px;
	height: 40px;
	background: var(--punane-tume);
	color: #fff;
	font-family: Roboto, sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 40px;
}
.btn--form:hover,
.btn--form:focus-visible { background: var(--punane); }

/* --- Silt ("Kiire reageerimine riketele") -------------------------------- */

.badge {
	display: inline-block;
	margin: 0;
	padding: 9px 25px 8px;
	border-radius: 50px;
	background: var(--punane-tume);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	transition: background 3s;
}

/* --- Sektsiooni pealkiri ------------------------------------------------- */

.section-title {
	margin: 20px 0 0;
	font-size: 44px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -1px;
	color: var(--tume);
}
.section-title--light { color: #fff; }

/* =========================================================================
   Päis
   ========================================================================= */

.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	background: #fff;
	box-shadow: 0 2px 5px rgba(0, 0, 0, .027);
}

.site-header__inner {
	display: flex;
	align-items: center;
	max-width: var(--konteiner);
	min-height: 90px;
	margin: 0 auto;
}

.site-header__brand { flex: 0 0 33.72%; padding: 10px; }
.site-header__logo { display: block; }
.site-header__logo img { display: block; width: 223px; }

.site-nav {
	flex: 0 0 51.083%;
	display: flex;
	justify-content: flex-end;
	padding-right: 20px;
}

.site-nav__list {
	display: flex;
	justify-content: flex-end;
}

.site-nav__list a {
	display: flex;
	align-items: center;
	position: relative;
	margin: 0 12px;
	padding: 8px 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 20px;
	color: var(--tint);
	text-decoration: none;
}
.site-nav__list li:first-child a { margin-left: 0; }
.site-nav__list li:last-child a { margin-right: 0; }

.site-nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--punane);
	opacity: 0;
	transition: opacity .3s;
}
.site-nav__list a:hover,
.site-nav__list a:focus-visible,
.site-nav__list .current a { color: var(--punane); }
.site-nav__list a:hover::after,
.site-nav__list a:focus-visible::after,
.site-nav__list .current a::after { opacity: 1; }

.site-nav__toggle { display: none; }

.site-header__cta {
	flex: 0 0 15.195%;
	display: flex;
	justify-content: flex-end;
}

/* =========================================================================
   Kangelasplokk
   ========================================================================= */

.hero {
	position: relative;
	padding: 0 var(--serv);
	background: url("../img/hero-bg.jpg") center right / cover no-repeat;
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: #000;
	opacity: .8;
}

.hero__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	max-width: var(--konteiner);
	min-height: 70vh;
	margin: 0 auto;
	color: #fff;
}

.hero__title {
	margin: 20px 0 0;
	font-size: 58px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -1px;
	color: #fff;
}

.hero__text {
	width: 835px;
	max-width: 100%;
	font-size: 18px;
	line-height: 1.5;
}
.hero__text p { margin: 2% 25% 0 0; }

.hero__cta { margin: 35px 0 0; }

/* =========================================================================
   Sissejuhatuse kaart
   ========================================================================= */

.intro {
	position: relative; /* kaart peab jääma kangelasploki tumeda katte peale */
	z-index: 1;
	padding: var(--serv);
}

.intro__inner { max-width: var(--konteiner); margin: 0 auto; }

.intro__card {
	margin-top: -193px;
	padding: 36px 60px;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 2px 5px rgba(0, 0, 0, .15);
}

.intro__title {
	width: 400px;
	max-width: 100%;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -1px;
}
.intro__title a { text-decoration: none; }

.intro__text {
	margin: 0;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.5;
}

/* =========================================================================
   Teenused
   ========================================================================= */

.teenused { padding: 0 var(--serv); }
.teenused__inner { max-width: var(--konteiner); margin: 0 auto; }

.teenused__lead,
.hinnad__lead {
	margin-top: 20px;
	margin-bottom: 34.4px;
	font-size: 18px;
	line-height: 1.5;
}
.teenused__lead p,
.hinnad__lead p { margin: 0 0 14.4px; }
.teenused__lead a,
.hinnad__lead a { color: var(--punane); text-decoration: none; }

.teenused__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.teenus {
	display: flex;
	align-items: center;
	margin-top: 48px;
}

.teenus__img {
	flex: 0 0 38.17%;
	margin: 0 24px 0 0;
	/* 7px hoiab kaardi kõrguse täpselt sama, mis vanal lehel (seal tuli see
	   reavahest pildi all). */
	padding-bottom: 7px;
}
.teenus__img img {
	display: block;
	width: 100%;
	border-radius: 10px;
}

.teenus__title {
	margin: 8px 0 16px;
	font-size: 28px;
	font-weight: 500;
	line-height: 1.2;
}

.teenus__text {
	margin: 0;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.5;
}

/* =========================================================================
   Hinnad
   ========================================================================= */

.hinnad { padding: var(--serv) 0; }
.hinnad__inner { max-width: var(--konteiner); margin: 0 auto; }
.hinnad__lead { max-width: 835px; margin-bottom: 0; }

.hinnad__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.hind {
	margin: 9px;
	padding: 42px;
	border-radius: 15px 15px 15px 70px;
	background: #fff;
	box-shadow: 0 0 16px 4px rgba(0, 0, 0, .05);
	text-align: center;
}

.hind__amount {
	margin: 2px 0 0;
	font-size: 39px;
	font-weight: 600;
	line-height: 1;
	color: var(--punane);
}

.hind__title {
	margin: 26px 0 16px;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.2;
}

.hind__text {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: -.3px;
}

/* =========================================================================
   Klientide logod
   ========================================================================= */

.kliendid {
	padding: 0 var(--serv) var(--serv);
	background: #fff;
}
.kliendid__inner { max-width: var(--konteiner); margin: 0 auto; }

.logoriba {
	max-width: var(--konteiner);
	margin: 20px auto 0;
	overflow: hidden;
}

.logoriba__track {
	display: flex;
	width: max-content;
	/* Vana karussell liikus ~200px sekundis (1 slaid à 200px sekundis). */
	animation: logoriba 11s linear infinite;
}

.logoriba__item {
	flex: 0 0 min(200px, 15vw);
	display: flex;
	align-items: center;
	justify-content: center;
}
.logoriba__item img { display: block; width: 100%; height: auto; }

/* Vana leht keris logosid paremale (swiper dir="rtl"). */
@keyframes logoriba {
	from { transform: translateX(-50%); }
	to   { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
	.logoriba__track { animation: none; }
}

/* =========================================================================
   Miks valida meid
   ========================================================================= */

.miks {
	position: relative;
	padding: var(--serv);
	background: #cc5621 url("../img/cta-bg.jpg") center center / cover no-repeat;
}
.miks::before {
	content: "";
	position: absolute;
	inset: 0;
	background: #000;
	opacity: .87;
}

.miks__inner {
	position: relative;
	max-width: var(--konteiner);
	margin: 0 auto;
}

.miks .section-title { padding: 1% 0 2%; margin: 0; }

.miks__dots {
	position: absolute;
	width: 165px;
	color: #fff;
	pointer-events: none;
}
.miks__dots svg { display: block; width: 165px; height: 165px; fill: #fff; }
.miks__dots--right { top: 5%; right: -3%; }
.miks__dots--left  { top: 71%; left: -4%; }

.miks__card {
	display: flex;
	align-items: center;
	padding: 36px 60px;
	border-radius: 10px;
	background: #fff;
}

.miks__lead {
	flex: 0 0 33.52%;
	margin: 0;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -1px;
}

.miks__point { flex: 0 0 21.76%; }
.miks__point + .miks__point { flex-basis: 22.5%; padding-right: 35px; }

.miks__point-title {
	margin: 8px 0 10px;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -1px;
}

.miks__point-text {
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
}

.miks__badges {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 55px;
	flex: 0 0 22.22%;
}
.miks__badges img { width: auto; height: 75px; }
.miks__badges img:first-child { height: 70px; }

/* =========================================================================
   Kontakt
   ========================================================================= */

.kontakt {
	padding: var(--serv) 0;
	background: #fff;
}

.kontakt__inner {
	display: flex;
	align-items: center;
	max-width: var(--konteiner);
	margin: 0 auto;
}

.kontakt__form-col { flex: 0 0 53.25%; }

.kontakt__lead {
	margin: 20px 0 20px;
	font-size: 18px;
	line-height: 1.5;
}

.kontakt__info {
	flex: 1 1 auto;
	display: flex;
	padding-left: 50px;
}

.kontakt__block { flex: 0 0 44.42%; padding: 10px; }
.kontakt__block + .kontakt__block { flex-basis: 55.58%; }

.kontakt__heading {
	margin: 0 0 20px;
	font-size: 25px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -1px;
}

.kontakt__list li {
	display: flex;
	align-items: center;
	min-height: 24px;
	font-family: Roboto, sans-serif;
	font-size: 16px;
	line-height: 24px;
}
.kontakt__list a { text-decoration: none; }
.kontakt__list a:hover { color: var(--punane); }

.kontakt__icon {
	flex: 0 0 20px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}
.kontakt__icon svg {
	width: 14px;
	height: 16px;
	fill: var(--punane);
}
.kontakt__list--icons li > span:last-child { padding-left: 5px; }

/* --- Vorm ---------------------------------------------------------------- */

.vorm { max-width: 579px; }

.vorm__rida { margin: 0 0 19px; }

.vorm input,
.vorm textarea {
	display: block;
	width: 100%;
	border: 0;
	border-radius: 3px;
	background: var(--vorm-taust);
	color: var(--hall);
	font-family: Roboto, sans-serif;
	font-size: 15px;
	line-height: 21px;
}

.vorm input { padding: 8px 16px; height: 40px; }
.vorm textarea { padding: 5px 14px; height: 94px; resize: vertical; }

.vorm input::placeholder,
.vorm textarea::placeholder { color: var(--hall); opacity: 1; }

.vorm input:focus,
.vorm textarea:focus {
	outline: 2px solid var(--punane);
	outline-offset: 1px;
}

.vorm__peit {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}


.vorm__teade {
	margin: 0 0 19px;
	padding: 12px 16px;
	border-radius: 3px;
	font-size: 15px;
}
.vorm__teade--ok { background: #e8f5e9; color: #1b5e20; }
.vorm__teade--viga { background: #fdecea; color: #8b1a15; }

/* =========================================================================
   Jalus
   ========================================================================= */

.site-footer { background: var(--tume); }

.site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: var(--konteiner);
	min-height: 50px;
	margin: 0 auto;
	padding: 0 10px;
	color: #fff;
	font-size: 13px;
	line-height: 19.5px;
}

.site-footer__copy { margin: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--punane); }

.site-footer__nav { display: flex; gap: 20px; }

/* =========================================================================
   Tahvel (<= 1024px)
   ========================================================================= */

@media (max-width: 1024px) {
	.site-header__inner { max-width: 650px; }
	.site-header__brand { flex: 0 0 50%; padding: 0 0 0 5%; }
	.site-header__cta { flex: 0 0 25%; }
	.site-nav { flex: 0 0 25%; padding-right: 10px; }

	.site-nav__toggle {
		display: block;
		margin-left: auto;
		padding: 8px;
		border: 0;
		background: none;
		color: var(--tint);
		cursor: pointer;
	}
	.site-nav__bars,
	.site-nav__bars::before,
	.site-nav__bars::after {
		display: block;
		width: 24px;
		height: 2px;
		background: currentColor;
	}
	.site-nav__bars { position: relative; }
	.site-nav__bars::before,
	.site-nav__bars::after { content: ""; position: absolute; left: 0; }
	.site-nav__bars::before { top: -7px; }
	.site-nav__bars::after { top: 7px; }
	.site-nav__toggle[aria-expanded="true"] .site-nav__bars { background: transparent; }
	.site-nav__toggle[aria-expanded="true"] .site-nav__bars::before { top: 0; transform: rotate(45deg); }
	.site-nav__toggle[aria-expanded="true"] .site-nav__bars::after { top: 0; transform: rotate(-45deg); }

	.site-nav__list {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		margin-top: 25px;
		background: #fff;
		box-shadow: 0 2px 15px rgba(0, 0, 0, .1);
	}
	.site-nav__list.on { display: flex; }
	.site-nav__list li:not(:last-child) { border-bottom: 1px solid #efefef; }
	.site-nav__list a {
		margin: 0;
		padding: 25px 16px;
		font-family: Montserrat, Inter, sans-serif;
		font-size: 16px;
	}
	.site-nav__list a::after { display: none; }

	.hero { margin-bottom: 5%; }
	.hero__inner { max-width: 650px; min-height: 457px; }
	.hero__title { font-size: 46px; }
	.hero__text { font-size: 14px; }

	.intro { margin-top: 15%; }
	.intro__inner { max-width: 650px; }
	.intro__card { padding: 10% 6%; }
	.intro__title { font-size: 20px; }
	.intro__text { font-size: 14px; }

	.teenused__inner,
	.hinnad__inner,
	.kliendid__inner,
	.miks__inner,
	.kontakt__inner,
	.site-footer__inner,
	.logoriba { max-width: 650px; }

	.section-title { font-size: 32px; }

	.teenused__lead,
	.hinnad__lead,
	.kontakt__lead { font-size: 14px; }

	.teenused__grid { grid-template-columns: 1fr; }
	.teenus { margin-top: 5%; }

	.hinnad__grid { grid-template-columns: 1fr 1fr; }
	.hind__title { font-size: 18px; }
	.hind__text { font-size: 15px; }

	.logoriba__item { flex: 0 0 min(108px, 16vw); }

	.miks__card { flex-wrap: wrap; gap: 24px; padding: 10% 6%; }
	.miks__lead { flex: 0 0 100%; font-size: 20px; }
	.miks__point { flex: 1 1 40%; }
	.miks__point + .miks__point { flex-basis: 40%; padding-right: 0; }
	.miks__point-title { font-size: 18px; }
	.miks__point-text { font-size: 14px; }
	.miks__badges { flex: 1 1 100%; justify-content: flex-start; }
	.miks__dots { display: none; }

	.kontakt__inner { flex-direction: column; align-items: stretch; }
	.kontakt__form-col { flex: 1 1 auto; }
	.kontakt__info { padding: 30px 0 0; }
	.kontakt__heading { font-size: 32px; }

	.site-footer__inner { flex-direction: column; gap: 6px; padding: 12px 20px; text-align: center; }
	.site-footer__inner,
	.site-footer__nav { font-size: 10px; }
}

/* =========================================================================
   Mobiil (<= 767px)
   ========================================================================= */

@media (max-width: 767px) {
	.site-header__brand { padding: 0 0 0 20px; }
	.site-header__cta { display: none; }
	.site-nav { flex: 0 0 auto; margin-left: auto; padding-right: 20px; }

	.hero { margin-bottom: 0; }
	.hero__inner { min-height: 487px; }
	.hero__title { font-size: 35px; }
	.hero__text p { margin-right: 0; }
	.hero__cta { margin-top: 30px; }

	.badge { padding: 8px 16px 6px; }
	.btn--red { font-size: 16px; padding: 15px 35px; }

	.intro { margin-top: 25%; padding: 15% var(--serv); }
	.intro__title { font-size: 18px; }

	.section-title { font-size: 24px; }

	.teenus { display: block; padding-bottom: 10%; }
	.teenus__img { margin: 0; padding-bottom: 0; }

	.hinnad { padding: 0 var(--serv) 15%; }
	.hinnad__grid { grid-template-columns: 1fr; }

	.logoriba__item { flex: 0 0 42.3vw; }

	.miks__lead { font-size: 18px; }
	.miks__point { flex: 1 1 100%; }
	.miks__point-title { font-size: 20px; }

	.kontakt__info { flex-direction: column; gap: 0; }
	.kontakt__block,
	.kontakt__block + .kontakt__block { flex-basis: auto; }
	.kontakt__heading { font-size: 24px; }
}


/* =========================================================================
   Lihtne sisuleht (nt privaatsustingimused)
   ========================================================================= */

.sisuleht { padding: 60px var(--serv); }
.sisuleht__inner { max-width: 800px; margin: 0 auto; }
.sisuleht__sisu { margin-top: 24px; font-size: 18px; line-height: 1.6; }

