/*
	Theme Name: SSC Kinnisvara
	Theme URI: https://ssckinnisvara.ee
	Description: Custom teema SSC Kinnisvara veebilehele
	Author: Veebilahendused.ee
	Version: 1.0
	Text Domain: ssc
	*/

	@font-face {
		font-family: 'SSC';
		src: url('fonts/SSCRegular.woff2') format('woff2'),
			 url('fonts/SSCRegular.ttf') format('truetype');
		font-weight: normal;
		font-style: normal;
		font-display: swap;
	}

	@font-face {
		font-family: 'SSC';
		src: url('fonts/SSCSemiBold.woff2') format('woff2'),
			 url('fonts/SSCSemiBold.ttf') format('truetype');
		font-weight: 600;
		font-style: normal;
		font-display: swap;
	}

	:root {
		--primary: #d90730;
		--accent: #b30627;
		--black: #111111;
		--text: #333333;
		--muted: #666666;
		--light-bg: #fcf9f7;
		--card-bg: #f5ebe6;
		--border: rgba(0, 0, 0, 0.08);
		--white: #ffffff;
		--site-width: 1350px;
	}

	* { margin: 0; padding: 0; box-sizing: border-box; }

	body {
		font-family: 'SSC', Arial, sans-serif;
		font-size: 16px;
		line-height: 1.6;
		color: var(--text);
		background-color: var(--light-bg);
		overflow-x: hidden;
		-webkit-font-smoothing: antialiased;
	}

	h1, h2, h3, h4 {
		font-family: 'SSC', Arial, sans-serif;
		color: var(--black);
		font-weight: 600;
		letter-spacing: -0.5px;
	}

	h2 { font-size: 38px; line-height: 1.2; }

	.container { max-width: var(--site-width); margin: 0 auto; width: 100%; }
	section { width: 100%; padding: 120px 5%; }

	.btn {
		display: inline-block;
		padding: 14px 35px;
		text-decoration: none;
		text-transform: uppercase;
		font-size: 12px;
		font-weight: 600;
		letter-spacing: 1.5px;
		transition: all 0.4s ease;
		cursor: pointer;
		border-radius: 50px;
		border: none;
	}

	.btn-primary { background: var(--primary); color: var(--white); }
	.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }
	.btn-outline { border: 1px solid rgba(255,255,255,0.6); color: var(--white); background: transparent; }
	.btn-outline:hover { background: var(--white); color: var(--black); border-color: var(--white); }

	/* ─── Header ─── */
	header.site-header {
		position: fixed;
		top: 30px;
		left: 50%;
		transform: translateX(-50%);
		width: 90%;
		max-width: 1400px;
		z-index: 100;
		padding: 20px 5%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		border-radius: 100px;
		backdrop-filter: blur(15px);
		background: rgba(0,0,0,0.15);
	}

	.header-logo img { height: 45px; width: auto; }

	/* ─── Hero ─── */
	.hero {
		height: 100vh;
		min-height: 600px;
		display: flex;
		align-items: center;
		padding: 180px 5% 60px;
		color: var(--white);
		position: relative;
		overflow: hidden;
	}

	.hero-bg-picture { position: absolute; inset: 0; z-index: 0; }
	.hero-bg-picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
	.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%); }
	.hero-content { position: relative; z-index: 2; }

	.hero-content h1 { color: var(--white); font-size: 64px; line-height: 1.1; margin-bottom: 30px; }
	.hero-features { display: flex; gap: 30px; margin-bottom: 40px; text-transform: uppercase; font-size: 13px; letter-spacing: 1px; color: rgba(255,255,255,0.9); }
	.hero-btns { display: flex; gap: 30px; }

	/* ─── About ─── */
	.about-section { background-color: var(--light-bg); padding: 80px 5%; }
	.about-grid {
		display: grid;
		grid-template-columns: 1fr 1.3fr;
		grid-template-rows: auto auto;
		grid-template-areas:
			"text  image"
			"btn   image";
		gap: 30px 100px;
		align-items: center;
		max-width: 1000px;
		margin: 0 auto;
	}
	.about-text-content { grid-area: text; }
	.about-visual-wrapper { grid-area: image; }
	.about-btn-wrap { grid-area: btn; align-self: start; }

	.section-subtitle { display: block; font-size: 12px; font-weight: 600; color: #000000; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
	.about-text-content h2 { font-size: 48px; line-height: 1.1; margin-bottom: 30px; color: var(--black); }
	.about-text-content p { font-size: 16px; color: #000000; line-height: 1.5; margin-bottom: 0; }
	.about-text-content p b { color: #111111; font-weight: 600; }
	.about-visual-wrapper { position: relative; width: 100%; }
	.about-visual-wrapper::before { content: ''; position: absolute; bottom: 0; right: 0; width: 80%; height: 80%; border: 1px solid rgba(217,7,48,0.2); border-radius: 20px; z-index: 1; }
	.about-image-container { position: relative; z-index: 2; width: 100%; aspect-ratio: 16/10; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
	.image-tags { position: absolute; top: 25px; left: 25px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; z-index: 10; }
	.image-tags span { display: inline-block; padding: 6px 18px; border: 1px solid rgba(255,255,255,0.6); border-radius: 100px 8px 100px 100px; color: var(--white); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; backdrop-filter: blur(8px); background: rgba(255,255,255,0.1); }
	.about-image-container img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s ease; }
	.about-visual-wrapper:hover .about-image-container img { transform: scale(1.03); }

	/* ─── Projects ─── */
	.projects-section { background-color: var(--white); padding: 100px 5% 100px; }
	.projects-header { max-width: 550px; margin-bottom: 80px; }
	.projects-header .section-subtitle { display: block; font-size: 12px; font-weight: 600; color: #000000; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 18px; }
	.projects-header h2 { font-size: 48px; line-height: 1.1; }
	.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px 60px; max-width: var(--site-width); margin: 0 auto; }

	.project-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; opacity: 0; transform: translateY(30px); }
	.project-card.visible { animation: cardIn 0.6s ease forwards; }
	.project-card:nth-child(1) { animation-delay: 0.1s; }
	.project-card:nth-child(2) { animation-delay: 0.2s; }
	.project-card:nth-child(3) { animation-delay: 0.3s; }
	.project-card:nth-child(4) { animation-delay: 0.4s; }
	@keyframes cardIn { to { opacity: 1; transform: translateY(0); } }

	.project-img-wrap { position: relative; width: 100%; aspect-ratio: 3/2; border-radius: 12px; overflow: hidden; background: var(--card-bg); margin-bottom: 32px; }
	.project-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s cubic-bezier(0.25,0,0.25,1); }
	.project-img-wrap::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 35%; background: linear-gradient(to top, rgba(0,0,0,0.35), transparent); pointer-events: none; z-index: 2; }
	.project-card:hover .project-img-wrap img { transform: scale(1.05); }

	.project-energy-tag {
		position: absolute; top: 20px; left: 24px; z-index: 3;
		display: inline-block;
		padding: 6px 18px;
		border: 1px solid rgba(255,255,255,0.6);
		border-radius: 100px 8px 100px 100px;
		color: var(--white);
		font-size: 11px;
		font-weight: 600;
		letter-spacing: 1.2px;
		text-transform: uppercase;
		backdrop-filter: blur(8px);
		-webkit-backdrop-filter: blur(8px);
		background: rgba(255,255,255,0.1);
	}

	.project-status-ribbon {
		position: absolute; top: 20px; right: 20px; z-index: 3;
		width: 76px; height: 76px;
		border-radius: 50%;
		background: var(--primary);
		color: var(--white);
		font-size: 10px;
		font-weight: 700;
		letter-spacing: 0;
		text-transform: uppercase;
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;
		line-height: 1.2;
		padding: 0 8px;
	}

	.project-content h3 { font-size: 26px; line-height: 1.2; color: var(--black); margin-bottom: 14px; letter-spacing: -0.5px; font-weight: 600; }
	.project-content .project-desc { font-size: 14px; color: var(--muted); line-height: 1.65; text-align: left; flex: 1; }
	.project-bottom-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
	.project-info-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; margin-bottom: 28px; }

	.project-cta-link {
		display: inline-flex; align-items: center; gap: 14px;
		font-size: 14px; font-weight: 600;
		color: var(--white);
		text-decoration: none;
		padding: 13px 26px;
		background: var(--primary);
		border: none; border-radius: 50px;
		transition: all 0.3s ease;
		width: fit-content;
		letter-spacing: 0;
		text-transform: none;
	}
	.project-cta-link:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(217,7,48,0.25); }


	/* ─── Miks Valida ─── */
	.miks-valida-section { background-color: var(--white); padding: 100px 5% 100px; position: relative; overflow: hidden; }
	.miks-valida-header { max-width: var(--site-width); margin: 0 auto 70px; position: relative; z-index: 2; }
	.miks-valida-header h2 { font-size: 48px; line-height: 1.1; margin-bottom: 16px; }
	.miks-valida-header p { font-size: 16px; color: var(--muted); line-height: 1.7; max-width: 500px; }

	.mv-bento { max-width: var(--site-width); margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(220px, auto); gap: 16px; position: relative; z-index: 2; }
	.mv-bento-card { background: var(--light-bg); border-radius: 16px; padding: 36px 32px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; grid-column: span 2; }

	.mv-bento-large { grid-column: span 4; min-height: 360px; }
	.mv-bento-image { color: var(--white); padding: 40px 40px 36px; }
	.mv-bento-image .mv-bento-bg-img {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center;
		z-index: 0;
	}
	.mv-bento-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.65) 100%); z-index: 2; }

	.mv-bento-card:nth-child(5) { grid-column: 1 / span 2; grid-row: 3; }
	.mv-bento-card:nth-child(6) { grid-column: 3 / span 4; grid-row: 3; }

	.mv-bento-content { position: relative; z-index: 3; }
	.mv-bento-card .mv-num { display: block; font-size: 56px; font-weight: 600; color: var(--primary); line-height: 0.9; opacity: 0.25; letter-spacing: -2px; margin-bottom: 14px; }
	.mv-bento-image .mv-num { color: var(--white); opacity: 0.7; font-size: 48px; }
	.mv-bento-card h4, .mv-bento-card h3 { font-family: 'SSC', sans-serif; font-size: 20px; font-weight: 600; color: var(--black); margin-bottom: 10px; line-height: 1.25; letter-spacing: -0.3px; }
	.mv-bento-image h4, .mv-bento-image h3 { color: var(--white); font-size: 26px; margin-bottom: 12px; max-width: 60%; }
	.mv-bento-card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }
	.mv-bento-image p { color: rgba(255,255,255,0.9); font-size: 15px; line-height: 1.6; max-width: 60%; }

	/* ─── Stats + Map ─── */
	.stats-map-section { background-color: #ffffff; padding: 80px 5% 120px; position: relative; }
	.map-section-intro { max-width: var(--site-width); margin: 0 auto 60px; text-align: center; }
	.map-section-intro .section-subtitle { display: block; margin-bottom: 16px; }
	.map-section-intro h2 { font-size: 36px; line-height: 1.2; margin: 0 0 16px; color: var(--black); letter-spacing: -0.5px; }
	.map-section-intro p { font-size: 15px; color: var(--muted); line-height: 1.7; max-width: 560px; margin: 0 auto; }
	.map-wrapper { max-width: var(--site-width); margin: 40px auto 0; position: relative; background: #f4efe9; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.03); overflow: visible; }
	.map-top-row { display: flex; justify-content: flex-end; padding: 40px 5%; align-items: center; min-height: 140px; position: relative; z-index: 10; }
	.floating-red-box { position: absolute; left: -20px; top: 20px; background: #8a1c31; color: var(--white); padding: 40px 40px 40px 50px; border-radius: 20px 80px 20px 20px; width: 320px; z-index: 20; box-shadow: 0 15px 30px rgba(138,28,49,0.2); }
	.floating-red-box h3 { color: var(--white); font-size: 28px; line-height: 1.2; margin-bottom: 20px; font-weight: 400; }
	.google-map-link {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		background: var(--white);
		color: var(--primary);
		padding: 12px 28px;
		border-radius: 50px;
		font-size: 14px;
		font-weight: 600;
		text-decoration: none;
		transition: all 0.3s ease;
		width: fit-content;
	}
	.google-map-link:hover {
		background: var(--black);
		color: var(--white);
		transform: translateY(-2px);
	}
	.google-map-link i { font-size: 12px; margin-left: 0 !important; transition: transform 0.3s ease; }
	.google-map-link:hover i { transform: translateX(4px); }
	.map-icons-row { display: flex; gap: 40px; flex-wrap: wrap; padding-left: 340px; }
	.map-icon-item { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
	.map-icon-item strong { font-family: 'SSC', Arial, sans-serif; font-size: 42px; color: var(--black); font-weight: 600; line-height: 1; letter-spacing: -1px; margin-bottom: 4px; }
	.map-icon-item span { font-family: 'SSC', Arial, sans-serif; font-size: 13px; color: var(--muted); max-width: 160px; line-height: 1.4; }
	.map-visual { height: 600px; width: 100%; position: relative; border-radius: 0 0 20px 20px; z-index: 1; min-height: 600px; }
	.leaflet-container { background-color: #f4efe9 !important; border-radius: 0 0 20px 20px; height: 100% !important; width: 100% !important; }

	.stats-map-section.map-only { padding-top: 0; padding-bottom: 100px; }
	.stats-map-section.map-only .map-wrapper { margin-top: 0; background: transparent; box-shadow: none; }
	.stats-map-section.map-only .map-visual { border-radius: 20px; }
	.stats-map-section.map-only .leaflet-container { border-radius: 20px; }

	.stats-map-section.has-cta .map-wrapper { position: relative; }
	.map-cta-box {
		position: absolute;
		left: -20px;
		top: -20px;
		background: #8a1c31;
		color: var(--white);
		padding: 40px 40px 36px 50px;
		border-radius: 20px 80px 20px 20px;
		width: 340px;
		z-index: 20;
		box-shadow: 0 15px 30px rgba(138,28,49,0.2);
	}
	.map-cta-box h3 {
		color: var(--white);
		font-size: 28px;
		line-height: 1.2;
		margin: 0 0 24px;
		font-weight: 400;
	}
	.map-cta-btn {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		background: var(--white);
		color: var(--primary);
		padding: 12px 28px;
		border-radius: 50px;
		font-size: 14px;
		font-weight: 600;
		text-decoration: none;
		transition: all 0.3s ease;
	}
	.map-cta-btn:hover {
		background: var(--black);
		color: var(--white);
		transform: translateY(-2px);
	}
	.map-cta-btn i { font-size: 12px; transition: transform 0.3s ease; }
	.map-cta-btn:hover i { transform: translateX(4px); }
	.leaflet-tile-pane { -webkit-filter: url(#exact-map-colors) !important; filter: url(#exact-map-colors) !important; }

	.vl-custom-marker-wrapper { background: transparent; border: none; }
	.map-marker { cursor: pointer; }
	.marker-dot {
		width: 36px; height: 36px;
		background: #222; border-radius: 50%;
		color: var(--white);
		display: flex; justify-content: center; align-items: center;
		font-size: 14px;
		box-shadow: 0 4px 15px rgba(0,0,0,0.15);
		transition: background 0.3s;
	}
	.marker-dot:hover { background: #8a1c31; }

	.leaflet-tooltip.ssc-marker-tooltip {
		background: var(--white);
		border: none;
		border-radius: 8px;
		box-shadow: 0 5px 20px rgba(0,0,0,0.1);
		padding: 10px 16px;
		color: var(--black);
		font-size: 14px;
		font-weight: 600;
		white-space: nowrap;
		pointer-events: none;
	}
	.leaflet-tooltip.ssc-marker-tooltip::before { display: none; }

	.leaflet-popup.ssc-marker-popup {
		filter: none !important;
	}
	.leaflet-popup.ssc-marker-popup .leaflet-popup-content-wrapper {
		background: #ffffff !important;
		background-color: #ffffff !important;
		border-radius: 8px;
		box-shadow: 0 4px 12px rgba(0,0,0,0.08);
		padding: 0;
		overflow: hidden;
		opacity: 1 !important;
	}
	.leaflet-popup.ssc-marker-popup .leaflet-popup-content {
		margin: 0;
		padding: 0;
		color: var(--black);
		width: auto !important;
		min-width: 0;
		line-height: 1.3;
		background: #ffffff;
	}
	.leaflet-popup.ssc-marker-popup .marker-label {
		padding: 10px 16px 10px 10px;
		gap: 12px;
		background: #ffffff;
	}
	.leaflet-popup.ssc-marker-popup .marker-label .marker-thumb {
		width: 60px;
		height: 60px;
		border-radius: 6px;
	}
	.leaflet-popup.ssc-marker-popup .leaflet-popup-tip-container {
		overflow: visible;
	}
	.leaflet-popup.ssc-marker-popup .leaflet-popup-tip {
		background: #ffffff !important;
		background-color: #ffffff !important;
		box-shadow: none;
		opacity: 1 !important;
		border: none;
	}
	.leaflet-popup.ssc-marker-popup .leaflet-popup-close-button {
		display: none;
	}

	.ssc-region-label {
		background: transparent !important;
		border: none !important;
		box-shadow: none !important;
		color: #a89572;
		font-family: 'SSC', sans-serif;
		font-weight: 600;
		letter-spacing: 1.5px;
		text-transform: uppercase;
		text-shadow: 0 0 8px rgba(252,249,247,0.9), 0 0 4px rgba(252,249,247,0.9);
		white-space: nowrap;
		pointer-events: none;
		transform: translate(-50%, -50%);
	}
	.ssc-region-label--large { font-size: 14px; letter-spacing: 3px; color: #8a7656; }
	.ssc-region-label--small { font-size: 10px; letter-spacing: 1.2px; }

	.marker-label {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 12px;
	}
	.marker-label > div {
		display: flex;
		flex-direction: column;
		gap: 2px;
	}
	.marker-label strong { font-size: 14px; line-height: 1.2; }
	.marker-label small { font-size: 12px; color: var(--muted); font-weight: 400; }
	.marker-label .marker-thumb {
		width: 60px; height: 60px;
		border-radius: 6px;
		object-fit: cover;
		flex-shrink: 0;
	}

	.projects-footer { text-align: center; margin-top: 60px; }
	.projects-more-link { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--black); text-decoration: none; padding: 14px 35px; border: 1.5px solid var(--black); border-radius: 50px; text-transform: uppercase; letter-spacing: 1.5px; transition: all 0.3s ease; }
	.projects-more-link:hover { background: var(--black); color: var(--white); transform: translateY(-2px); }

	/* ─── Arendajast page ─── */
	.ar-story-section { background: var(--light-bg); padding: 80px 5%; }
	.ar-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: var(--site-width); margin: 0 auto; }
	.ar-story-text { padding-right: 40px; }
	.ar-story-text h2 { font-size: 36px; line-height: 1.2; margin-bottom: 20px; padding-right: 160px; }
	.ar-story-body { font-size: 16px; color: #000000; line-height: 1.5; margin-bottom: 45px; }
	.ar-story-body p { margin-bottom: 16px; }
	.ar-story-image { border-radius: 16px; overflow: hidden; }
	.ar-story-image img { width: 100%; height: auto; display: block; object-fit: cover; aspect-ratio: 16/9; }

	.ar-chars-section { background: var(--white); padding: 80px 5% 100px; }
	.ar-chars-section h2 { font-size: 36px; line-height: 1.2; margin-bottom: 40px; max-width: 600px; }
	.ar-chars-intro { font-size: 15px; color: var(--muted); line-height: 1.7; max-width: 700px; margin-top: -26px; margin-bottom: 50px; }

	.ar-chars-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(220px, auto); gap: 16px; }
	.ar-char-card {
		background: var(--light-bg);
		border-radius: 16px;
		padding: 36px 32px;
		position: relative;
		overflow: hidden;
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		grid-column: span 2;
	}
	.ar-char-card:nth-child(4) { grid-column: 1 / span 4; grid-row: 2; min-height: 340px; }
	.ar-char-card-image { color: var(--white); padding: 40px 40px 36px; min-height: 280px; }
	.ar-char-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 1; }
	.ar-char-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.65) 100%); z-index: 2; }
	.ar-char-content { position: relative; z-index: 3; }

	.ar-char-num {
		display: block;
		font-size: 56px;
		font-weight: 600;
		color: var(--primary);
		line-height: 0.9;
		opacity: 0.25;
		letter-spacing: -2px;
		margin-bottom: 14px;
	}
	.ar-char-card-image .ar-char-num { color: var(--white); opacity: 0.7; font-size: 48px; }

	.ar-char-text h4, .ar-char-text h3 {
		font-family: 'SSC', sans-serif;
		font-size: 20px;
		font-weight: 600;
		color: var(--black);
		margin: 0 0 10px;
		line-height: 1.25;
		letter-spacing: -0.3px;
	}
	.ar-char-card-image .ar-char-text h4, .ar-char-card-image .ar-char-text h3 { color: var(--white); font-size: 26px; margin-bottom: 12px; max-width: 80%; }
	.ar-char-text p {
		font-size: 14px;
		color: var(--muted);
		line-height: 1.6;
		margin: 0;
	}
	.ar-char-card-image .ar-char-text p { color: rgba(255,255,255,0.9); font-size: 15px; max-width: 80%; }

	@media (max-width: 968px) {
		.ar-story-grid { grid-template-columns: 1fr; gap: 30px; }
		.ar-story-text { padding-right: 0; }
		.ar-story-text h2 { padding-right: 0; }
		.ar-chars-grid { grid-template-columns: 1fr; }
		.kontakt-v2-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
		.kontakt-section-v2 { padding: 60px 5% 80px !important; }
		.kontakt-v2-card-inner { padding: 40px 32px !important; }
		.kontakt-v2-card-light { padding: 40px 32px !important; }
		.kontakt-v2-headline { font-size: 30px !important; }
		.kontakt-v2-form-row { grid-template-columns: 1fr !important; }
		.kontakt-v2-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
		.kontakt-v2-radio-grid { grid-template-columns: 1fr; }
		.kontakt-v2-radio-grid-inline { flex-direction: column; }
		.kontakt-v2-radio { width: 100%; }
		.kontakt-v2-card-dark::after { display: none !important; }
	}

	/* ─── Kontakti leht ─── */
	.kontakt-section-v2 {
		background: var(--light-bg);
		padding: 100px 5% 120px;
	}
	.kontakt-v2-grid {
		max-width: var(--site-width);
		margin: 0 auto;
		display: grid;
		grid-template-columns: 1fr 1.25fr;
		gap: 24px;
		align-items: stretch;
	}

	.kontakt-v2-card {
		border-radius: 28px;
		overflow: hidden;
		position: relative;
	}

	.kontakt-v2-card-dark {
		background: #161616;
		color: var(--white);
		display: flex;
		flex-direction: column;
	}
	.kontakt-v2-card-dark::after {
		content: '';
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		width: 90%;
		height: 90%;
		background-image: url('logo.svg');
		background-repeat: no-repeat;
		background-position: center;
		background-size: contain;
		opacity: 0.02;
		filter: brightness(0) invert(1);
		-webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 48%, transparent 52%);
				mask-image: linear-gradient(to bottom, #000 0%, #000 48%, transparent 52%);
		pointer-events: none;
	}
	.kontakt-v2-card-inner {
		padding: 64px 56px;
		display: flex;
		flex-direction: column;
		justify-content: center;
		height: 100%;
		position: relative;
		z-index: 2;
	}

	.kontakt-v2-eyebrow {
		font-size: 12px;
		text-transform: uppercase;
		letter-spacing: 2.2px;
		color: var(--primary);
		font-weight: 600;
		margin-bottom: 20px;
	}
	.kontakt-v2-headline {
		font-size: 40px;
		line-height: 1.05;
		letter-spacing: -1.2px;
		color: var(--white);
		margin: 0 0 24px;
		font-weight: 600;
	}
	.kontakt-v2-lead {
		font-size: 15px;
		line-height: 1.7;
		color: rgba(255,255,255,0.6);
		margin: 0 0 64px;
		max-width: 360px;
	}

	.kontakt-v2-details {
		display: flex;
		flex-direction: column;
		gap: 28px;
		margin-bottom: 56px;
	}
	.kontakt-v2-detail { display: flex; flex-direction: column; gap: 6px; }
	.kontakt-v2-detail-label {
		font-size: 11px;
		text-transform: uppercase;
		letter-spacing: 2px;
		color: rgba(255,255,255,0.4);
		font-weight: 600;
	}
	.kontakt-v2-detail-value {
		font-size: 17px;
		color: var(--white);
		text-decoration: none;
		font-weight: 400;
		line-height: 1.4;
		transition: color 0.3s ease;
	}
	a.kontakt-v2-detail-value:hover { color: var(--primary); }

	.kontakt-v2-footer {
		margin-top: auto;
		padding-top: 28px;
		border-top: 1px solid rgba(255,255,255,0.08);
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 20px;
	}
	.kontakt-v2-company {
		font-size: 17px;
		font-weight: 600;
		color: var(--white);
		letter-spacing: 0.3px;
	}
	.kontakt-v2-regnr {
		font-size: 14px;
		color: rgba(255,255,255,0.55);
		letter-spacing: 0.3px;
	}

	.kontakt-v2-card-light {
		background: #f4efe9;
		padding: 64px 56px;
	}
	.kontakt-v2-form { display: flex; flex-direction: column; gap: 20px; height: 100%; }
	.kontakt-v2-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

	.kontakt-v2-input {
		width: 100%;
		background: transparent;
		border: 1px solid rgba(0,0,0,0.28);
		border-radius: 8px;
		padding: 15px 20px;
		color: var(--black);
		font-family: 'SSC', sans-serif;
		font-size: 15px;
		outline: none;
		transition: border-color 0.3s;
	}
	.kontakt-v2-input::placeholder { color: rgba(0,0,0,0.45); }
	.kontakt-v2-input:focus { border-color: var(--black); }
	textarea.kontakt-v2-input { height: 120px; resize: vertical; }

	.kontakt-v2-checkbox {
		display: flex;
		align-items: center;
		gap: 12px;
		font-size: 14px;
		color: rgba(0,0,0,0.6);
		cursor: pointer;
	}
	.kontakt-v2-checkbox input[type="checkbox"] {
		width: 18px;
		height: 18px;
		accent-color: var(--black);
		cursor: pointer;
	}

	.kontakt-v2-submit {
		background-color: var(--black);
		color: var(--white);
		padding: 12px 35px;
		border: none;
		border-radius: 50px;
		font-weight: 600;
		font-size: 14px;
		text-transform: uppercase;
		letter-spacing: 1.5px;
		cursor: pointer;
		width: fit-content;
		transition: all 0.3s ease;
		font-family: 'SSC', sans-serif;
		margin-top: 10px;
		align-self: flex-start;
	}
	.kontakt-v2-submit:hover {
		background-color: var(--primary);
		color: var(--white);
		transform: translateY(-2px);
	}

	.kontakt-v2-field-group {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}

	.kontakt-v2-field-label {
		font-size: 11px;
		text-transform: uppercase;
		letter-spacing: 2px;
		color: rgba(0,0,0,0.5);
		font-weight: 600;
	}

	.kontakt-v2-cdd {
		position: relative;
		width: 100%;
	}

	.kontakt-v2-cdd-trigger {
		width: 100%;
		background: transparent;
		border: 1px solid rgba(0,0,0,0.28);
		border-radius: 8px;
		padding: 10px 18px 10px 12px;
		color: var(--black);
		font-family: 'SSC', sans-serif;
		font-size: 15px;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		transition: border-color 0.3s ease;
		min-height: 56px;
		text-align: left;
	}

	.kontakt-v2-cdd-trigger:hover {
		border-color: rgba(0,0,0,0.5);
	}

	.kontakt-v2-cdd.is-open .kontakt-v2-cdd-trigger {
		border-color: var(--black);
	}

	.kontakt-v2-cdd-selected {
		display: flex;
		align-items: center;
		gap: 14px;
		min-width: 0;
		flex: 1;
	}

	.kontakt-v2-cdd-selected-thumb {
		flex-shrink: 0;
		width: 36px;
		height: 36px;
		border-radius: 6px;
		overflow: hidden;
		background: rgba(0,0,0,0.05);
		display: flex;
		align-items: center;
		justify-content: center;
		color: rgba(0,0,0,0.4);
	}

	.kontakt-v2-cdd-selected-thumb img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		display: block;
	}

	.kontakt-v2-cdd-selected-label {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.kontakt-v2-cdd-arrow {
		flex-shrink: 0;
		color: var(--black);
		transition: transform 0.25s ease;
	}

	.kontakt-v2-cdd.is-open .kontakt-v2-cdd-arrow {
		transform: rotate(180deg);
	}

	.kontakt-v2-cdd-list {
		position: absolute;
		top: calc(100% + 6px);
		left: 0;
		right: 0;
		background: var(--light-bg);
		border: 1px solid rgba(0,0,0,0.12);
		border-radius: 12px;
		box-shadow: 0 12px 32px rgba(0,0,0,0.1);
		list-style: none;
		margin: 0;
		padding: 6px;
		max-height: 320px;
		overflow-y: auto;
		z-index: 50;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-6px);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	}

	.kontakt-v2-cdd.is-open .kontakt-v2-cdd-list {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.kontakt-v2-cdd-option {
		display: flex;
		align-items: center;
		gap: 14px;
		padding: 8px 10px;
		border-radius: 8px;
		cursor: pointer;
		transition: background 0.15s ease;
		font-size: 15px;
		color: var(--black);
	}

	.kontakt-v2-cdd-option:hover {
		background: rgba(0,0,0,0.04);
	}

	.kontakt-v2-cdd-option.is-active {
		background: rgba(0,0,0,0.06);
		font-weight: 600;
	}

	.kontakt-v2-cdd-option-thumb {
		flex-shrink: 0;
		width: 40px;
		height: 40px;
		border-radius: 6px;
		overflow: hidden;
		background: rgba(0,0,0,0.05);
		display: flex;
		align-items: center;
		justify-content: center;
		color: rgba(0,0,0,0.4);
	}

	.kontakt-v2-cdd-option-thumb img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		display: block;
	}

	.kontakt-v2-cdd-option-label {
		flex: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.kontakt-v2-cdd-list::-webkit-scrollbar { width: 6px; }
	.kontakt-v2-cdd-list::-webkit-scrollbar-track { background: transparent; }
	.kontakt-v2-cdd-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
	.kontakt-v2-cdd-list::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.3); }

	.kontakt-v2-radio-grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.kontakt-v2-radio-grid-inline {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
	}

	.kontakt-v2-radio {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		padding: 12px 18px;
		background: transparent;
		border: 1px solid rgba(0,0,0,0.28);
		border-radius: 50px;
		cursor: pointer;
		font-size: 14px;
		color: rgba(0,0,0,0.7);
		transition: all 0.25s ease;
		user-select: none;
		line-height: 1.2;
	}

	.kontakt-v2-radio:hover {
		border-color: rgba(0,0,0,0.5);
		color: var(--black);
	}

	.kontakt-v2-radio input[type="radio"] {
		appearance: none;
		-webkit-appearance: none;
		-moz-appearance: none;
		width: 16px;
		height: 16px;
		border: 1.5px solid rgba(0,0,0,0.3);
		border-radius: 50%;
		margin: 0;
		cursor: pointer;
		position: relative;
		flex-shrink: 0;
		transition: all 0.25s ease;
	}

	.kontakt-v2-radio input[type="radio"]:checked {
		border-color: var(--black);
		background: var(--black);
		box-shadow: inset 0 0 0 3px #f4efe9;
	}

	.kontakt-v2-radio:has(input[type="radio"]:checked) {
		border-color: var(--black);
		color: var(--black);
		background: rgba(0,0,0,0.04);
	}

	/* ═══════════════════════════════════════════
	   SSC AI CHAT — chat'i stiil kontakti lehel
	   (chat asub PAREMAS helebeež kaardis)
	   Saada nupp = .btn baasi peale (padding, font, letter-spacing)
	   ═══════════════════════════════════════════ */

	.kontakt-v2-card-light .ssc-ai-chat {
		border: none !important;
		background: transparent !important;
		padding: 0 !important;
		max-width: 100% !important;
		width: 100% !important;
		font-family: 'SSC', Arial, sans-serif !important;
		font-size: 15px !important;
		line-height: 1.6 !important;
		margin: 0 !important;
		box-sizing: border-box;
	}

	/* Vestluse log — TÄIESTI läbipaistev taust, ei mingit sisemist kasti.
	   Tervitustekst sulandub välimise helebeež kasti taustaga. */
	.kontakt-v2-card-light .ssc-ai-chat-log {
		background: transparent !important;
		border: none !important;
		border-radius: 0 !important;
		padding: 0 !important;
		margin-bottom: 32px !important;
		max-height: 400px !important;
		overflow-y: auto;
		box-sizing: border-box;
	}

	.kontakt-v2-card-light .ssc-ai-chat-line {
		margin-bottom: 14px;
		line-height: 1.6;
		font-family: 'SSC', Arial, sans-serif;
		font-size: 15px;
		color: var(--text);
	}
	.kontakt-v2-card-light .ssc-ai-chat-line:last-child { margin-bottom: 0; }
	.kontakt-v2-card-light .ssc-ai-chat-line.user { font-weight: 600; color: var(--black); }
	.kontakt-v2-card-light .ssc-ai-chat-line.bot { color: var(--text); }
	.kontakt-v2-card-light .ssc-ai-chat-line.bot strong { color: #333333; font-weight: 600; }
	.kontakt-v2-card-light .ssc-ai-chat-line.bot.waiting { opacity: 0.55; font-style: italic; }
	.kontakt-v2-card-light .ssc-ai-chat-line.bot.error { color: var(--primary); }

	.kontakt-v2-card-light .ssc-ai-chat-log::-webkit-scrollbar { width: 6px; }
	.kontakt-v2-card-light .ssc-ai-chat-log::-webkit-scrollbar-track { background: transparent; }
	.kontakt-v2-card-light .ssc-ai-chat-log::-webkit-scrollbar-thumb {
		background: rgba(0, 0, 0, 0.15);
		border-radius: 3px;
	}
	.kontakt-v2-card-light .ssc-ai-chat-log::-webkit-scrollbar-thumb:hover {
		background: rgba(0, 0, 0, 0.3);
	}

	/* Textarea — sama keel nagu .kontakt-v2-input */
	.kontakt-v2-card-light .ssc-ai-chat textarea {
		width: 100% !important;
		background: transparent !important;
		border: 1px solid rgba(0, 0, 0, 0.28) !important;
		border-radius: 8px !important;
		padding: 15px 20px !important;
		color: var(--black) !important;
		font-family: 'SSC', sans-serif !important;
		font-size: 15px !important;
		line-height: 1.5 !important;
		outline: none !important;
		transition: border-color 0.3s !important;
		height: 120px !important;
		min-height: 120px !important;
		resize: vertical !important;
		margin-bottom: 16px !important;
		box-sizing: border-box;
	}
	.kontakt-v2-card-light .ssc-ai-chat textarea::placeholder {
		color: rgba(0, 0, 0, 0.45) !important;
		font-family: 'SSC', sans-serif !important;
	}
	.kontakt-v2-card-light .ssc-ai-chat textarea:focus {
		border-color: var(--black) !important;
	}

	/* Saada nupp — TÄPSELT .btn baasi peale
	   Kasutame all: revert üle, et browseri user-agent <button> stiilid eemaldada,
	   ja siis ehitame nullist üles nagu .btn-il */
	.kontakt-v2-card-light .ssc-ai-chat button {
		all: unset !important;
		display: inline-block !important;
		background-color: var(--black) !important;
		color: var(--white) !important;
		padding: 14px 35px !important;
		border: none !important;
		border-radius: 50px !important;
		font-weight: 600 !important;
		font-size: 12px !important;
		font-family: 'SSC', Arial, sans-serif !important;
		font-style: normal !important;
		text-transform: uppercase !important;
		text-decoration: none !important;
		letter-spacing: 1.5px !important;
		line-height: 1.5 !important;
		cursor: pointer !important;
		transition: all 0.4s ease !important;
		margin: 0 !important;
		box-shadow: none !important;
		text-align: center !important;
		vertical-align: middle !important;
		width: auto !important;
		min-width: 0 !important;
		max-width: 100% !important;
		min-height: 0 !important;
		max-height: none !important;
		box-sizing: border-box !important;
		-webkit-appearance: none !important;
		appearance: none !important;
	}
	.kontakt-v2-card-light .ssc-ai-chat button:hover {
		background-color: var(--primary) !important;
		color: var(--white) !important;
		transform: translateY(-2px) !important;
	}
	.kontakt-v2-card-light .ssc-ai-chat button[disabled] {
		background-color: rgba(0, 0, 0, 0.4) !important;
		opacity: 0.5 !important;
		cursor: not-allowed !important;
		transform: none !important;
	}
	.kontakt-v2-card-light .ssc-ai-chat button[disabled]:hover {
		background-color: rgba(0, 0, 0, 0.4) !important;
		transform: none !important;
	}

	.kontakt-v2-card-light .ssc-ai-chat form {
		display: block !important;
		margin: 0 !important;
	}

	.kontakt-v2-content { width: 100%; }
	.kontakt-v2-content > *:first-child { margin-top: 0; }
	.kontakt-v2-content > *:last-child { margin-bottom: 0; }

	/* ─── Contact ─── */
	.final-contact-section { background-color: #42080f; color: var(--white); padding: 100px 5%; position: relative; overflow: hidden; }
	.final-contact-section::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 180%; height: 180%; background-image: url('logo.svg'); background-repeat: no-repeat; background-position: center; background-size: contain; opacity: 0.015; z-index: 1; pointer-events: none; filter: brightness(0) invert(1); }
	.final-contact-grid { max-width: var(--site-width); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.5fr; gap: 100px; align-items: center; position: relative; z-index: 2; }
	.fc-left { display: flex; flex-direction: column; gap: 25px; }
	.fc-left h2 { color: var(--white); }
	.fc-image-wrapper { position: relative; width: 100%; max-width: 320px; aspect-ratio: 1/1; border-radius: 40px 120px 40px 40px; overflow: hidden; }
	.fc-image-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; }
	.fc-image-wrapper::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(138,28,49,0.15) 0%, transparent 50%); pointer-events: none; }
	.fc-person-info { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
	.fc-name { font-size: 24px; font-weight: 600; }
	.fc-title { font-size: 15px; opacity: 0.8; margin-bottom: 6px; }
	.fc-contact-line { display: flex; align-items: center; gap: 12px; font-size: 15px; margin-top: 4px; }
	.fc-icon-wrap { width: 20px; font-size: 16px; color: var(--white); text-align: center; display: inline-flex; align-items: center; justify-content: center; }
	.fc-contact-line a { color: var(--white); text-decoration: none; }
	.fc-right { display: flex; flex-direction: column; gap: 30px; }
	.fc-right h2 { color: var(--white); margin-bottom: 10px; }
	.fc-form { display: flex; flex-direction: column; gap: 20px; }
	.fc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
	.fc-input { width: 100%; background: transparent; border: 1px solid rgba(255,255,255,0.4); border-radius: 8px; padding: 15px 20px; color: var(--white); font-family: 'SSC', sans-serif; font-size: 15px; outline: none; transition: border-color 0.3s; }
	.fc-input::placeholder { color: rgba(255,255,255,0.6); }
	.fc-input:focus { border-color: var(--white); }
	textarea.fc-input { height: 120px; resize: vertical; }
	.fc-checkbox-wrapper { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255,255,255,0.8); cursor: pointer; }
	.fc-checkbox-wrapper input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--white); cursor: pointer; }
	.fc-btn { background-color: var(--card-bg); color: var(--primary); padding: 12px 35px; border: none; border-radius: 50px; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; cursor: pointer; width: fit-content; transition: all 0.3s ease; font-family: 'SSC', sans-serif; margin-top: 10px; }
	.fc-btn:hover { background-color: var(--white); transform: translateY(-2px); color: var(--black); }

	/* ═══════════════════════════════════════════ Uudised ═══════════════════════════════════════════ */
	.articles-section { background: #f4efe9; padding: 100px 5%; }
	.articles-section .container { max-width: var(--site-width); margin: 0 auto; }

	.articles-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; gap: 40px; flex-wrap: wrap; }
	.articles-header-text .section-subtitle { display: block; margin-bottom: 12px; }
	.articles-header-text h2 { font-size: 42px; line-height: 1.1; margin: 0; letter-spacing: -0.8px; color: var(--black); }

	.articles-more-btn {
		display: inline-block;
		padding: 14px 35px;
		text-decoration: none;
		text-transform: uppercase;
		font-size: 12px; font-weight: 600;
		letter-spacing: 1.5px;
		transition: all 0.4s ease;
		border-radius: 50px;
		border: none;
		background: var(--primary); color: var(--white);
		white-space: nowrap;
	}
	.articles-more-btn:hover { background: var(--accent); transform: translateY(-2px); }

	.articles-more-bottom { display: none; }

	.articles-grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 40px 48px;
	}
	.articles-grid-archive { grid-template-columns: repeat(2, 1fr); gap: 50px 60px; }

	.articles-slider-wrap { position: relative; margin: 0 -5%; padding: 0 5%; }
	.articles-grid.articles-slider {
		display: flex;
		grid-template-columns: none;
		gap: 32px;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		padding: 4px 4px 30px;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}
	.articles-grid.articles-slider::-webkit-scrollbar { display: none; }
	.articles-grid.articles-slider .article-card {
		flex: 0 0 calc(50% - 16px);
		scroll-snap-align: start;
		min-width: 0;
	}
	.articles-slider-nav { display: flex; gap: 12px; }
	.articles-slider-btn {
		width: 48px;
		height: 48px;
		border-radius: 50%;
		border: 1.5px solid var(--black);
		background: transparent;
		color: var(--black);
		cursor: pointer;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		font-size: 14px;
		transition: all 0.3s ease;
		-webkit-tap-highlight-color: transparent;
	}
	@media (hover: hover) {
		.articles-slider-btn:hover { background: var(--black); color: var(--white); }
		.articles-slider-btn:disabled:hover { background: transparent; color: var(--black); }
	}
	.articles-slider-btn:disabled { opacity: 0.3; cursor: not-allowed; }

	.article-card {
		display: grid;
		grid-template-columns: 240px 1fr;
		gap: 28px;
		background: transparent;
		text-decoration: none;
		color: inherit;
		align-items: stretch;
		transition: transform 0.3s ease;
	}
	.article-card:hover { transform: translateY(-3px); }

	.article-img-wrap {
		width: 240px;
		min-height: 170px;
		overflow: hidden;
		background: #eee;
		border-radius: 12px;
	}
	.article-img-wrap img {
		width: 100%; height: 100%;
		object-fit: cover;
		display: block;
		transition: transform 0.5s ease;
	}
	.article-card:hover .article-img-wrap img { transform: scale(1.05); }

	.article-content {
		padding: 4px 0 0;
		display: flex;
		flex-direction: column;
		min-width: 0;
	}
	.article-title {
		font-size: 18px;
		font-weight: 600;
		color: var(--black);
		line-height: 1.3;
		margin: 0 0 10px;
		letter-spacing: -0.2px;
	}
	.article-excerpt {
		font-size: 14px;
		color: var(--muted);
		line-height: 1.6;
		margin: 0 0 20px;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
		max-height: calc(1.6em * 3 + 4px);
		padding-bottom: 4px;
	}
	.article-excerpt p {
		margin: 0;
		padding: 0;
		line-height: inherit;
		font-size: inherit;
		color: inherit;
		display: inline;
	}
	.article-footer {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-top: auto;
	}
	.article-cta-arrow {
		width: 36px; height: 36px;
		border-radius: 50%;
		background: var(--primary);
		color: var(--white);
		display: inline-flex; align-items: center; justify-content: center;
		font-size: 12px;
		transition: all 0.3s ease;
		flex-shrink: 0;
	}
	.article-cta-arrow svg { width: 14px; height: 14px; display: block; }
	.article-back-icon svg { width: 16px; height: 16px; display: block; }
	.articles-slider-btn svg { width: 14px; height: 14px; display: block; }
	.fc-icon-wrap svg { width: 18px; height: 18px; display: block; }
	.article-card:hover .article-cta-arrow { background: var(--black); }
	.article-date { font-size: 12px; color: var(--muted); letter-spacing: 0.5px; }

	.articles-archive-section { background: var(--light-bg); padding: 100px 5% 60px; }
	.articles-archive-section .container { max-width: var(--site-width); margin: 0 auto; }
	.articles-pagination { margin-top: 60px; text-align: center; }
	.articles-pagination .page-numbers {
		display: inline-block;
		padding: 10px 16px;
		margin: 0 4px;
		background: var(--white);
		border-radius: 8px;
		color: var(--black);
		text-decoration: none;
		font-weight: 600;
		font-size: 14px;
		transition: all 0.3s ease;
	}
	.articles-pagination .page-numbers.current { background: var(--primary); color: var(--white); }
	.articles-pagination .page-numbers:hover:not(.current) { background: var(--black); color: var(--white); }
	.articles-empty { text-align: center; color: var(--muted); font-size: 16px; padding: 40px 0; }

	.article-single { background: var(--white); }

	.article-single-hero {
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
		padding: 180px 5% 60px;
		min-height: 400px;
		display: flex;
		align-items: flex-end;
		position: relative;
	}
	.article-single-hero .container { max-width: 820px; margin: 0 auto; width: 100%; }

	.article-back-link {
		display: inline-flex; align-items: center; gap: 14px;
		color: rgba(255,255,255,0.9);
		font-size: 13px;
		text-decoration: none;
		text-transform: uppercase;
		letter-spacing: 1.5px;
		font-weight: 600;
		margin-bottom: 32px;
		transition: color 0.3s ease;
	}
	.article-back-icon {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 38px;
		height: 38px;
		border-radius: 50%;
		background: var(--primary);
		color: var(--white);
		font-size: 13px;
		transition: transform 0.3s ease, background 0.3s ease;
		flex-shrink: 0;
	}
	.article-back-link:hover { color: var(--white); }
	.article-back-link:hover .article-back-icon { transform: translateX(-4px); background: var(--accent, #b3052b); }
	.article-single-date {
		display: block;
		font-size: 14px;
		color: var(--white);
		font-weight: 600;
		letter-spacing: 1px;
		margin-bottom: 16px;
		opacity: 0.95;
	}
	.article-single-hero h1 {
		font-size: 48px;
		line-height: 1.15;
		letter-spacing: -1px;
		margin: 0 0 20px;
		color: var(--white);
		text-shadow: 0 2px 20px rgba(0,0,0,0.3);
	}
	.article-single-subtitle {
		font-size: 18px;
		color: rgba(255,255,255,0.92);
		line-height: 1.6;
		margin: 0;
		max-width: 700px;
	}
	.article-single-content { padding: 80px 5% 100px; }
	.article-single-content .container { max-width: 820px; margin: 0 auto; }
	.article-single-body { font-size: 17px; line-height: 1.5; color: var(--black); }
	.article-single-body p { margin-bottom: 24px; }
	.article-single-body h2 { font-size: 32px; margin: 48px 0 20px; letter-spacing: -0.5px; }
	.article-single-body h3 { font-size: 24px; margin: 36px 0 16px; }
	.article-single-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 32px 0; }
	.article-single-body a { color: var(--primary); }
	.article-single-body ul, .article-single-body ol { margin: 0 0 24px 24px; }
	.article-single-body li { margin-bottom: 10px; }
	.article-single-body blockquote { border-left: 3px solid var(--primary); padding: 8px 0 8px 24px; margin: 32px 0; font-style: italic; color: var(--muted); }

	/* ─── Footer ─── */
	.footer-section { background-color: #111; color: var(--white); padding: 80px 5%; font-size: 14px; }
	.footer-container { max-width: var(--site-width); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 60px; }
	.footer-left { display: flex; flex-direction: column; gap: 30px; max-width: 300px; }
	.footer-logo img { height: 35px; width: auto; }
	.footer-copyright { color: rgba(255,255,255,0.6); font-size: 13px; line-height: 1.8; }
	.footer-copyright a { color: var(--white); text-decoration: none; display: block; margin-top: 15px; transition: color 0.3s; }
	.footer-copyright a:hover { color: var(--primary); }
	.footer-right { flex-grow: 1; border-left: 1px solid rgba(255,255,255,0.4); padding-left: 80px; display: flex; flex-direction: column; gap: 50px; }
	.footer-links { display: flex; gap: 30px; flex-wrap: wrap; }
	.footer-links ul, .footer-menu { display: flex; gap: 30px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
	.footer-links li { list-style: none; }
	.footer-links a { color: var(--white); text-decoration: none; font-weight: 600; font-size: 15px; transition: color 0.3s; }
	.footer-links a:hover { color: var(--primary); }
	.footer-bottom-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; }
	.footer-contact-info { color: var(--white); font-size: 15px; font-weight: 600; letter-spacing: 0.5px; }
	.footer-contact-info span { margin: 0 12px; color: rgba(255,255,255,0.3); font-weight: 400; }
	.footer-social { display: flex; gap: 15px; }
	.footer-social a { width: 45px; height: 45px; border-radius: 50%; background-color: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: var(--white); text-decoration: none; transition: all 0.3s; font-size: 18px; }
	.footer-social a:hover { background-color: var(--primary); transform: translateY(-3px); }

	.desktop-nav a, .desktop-nav .menu-item a { color: var(--white); text-decoration: none; margin-left: 25px; font-size: 16px; font-weight: 400; transition: opacity 0.3s; }
	.desktop-nav a:hover, .desktop-nav .menu-item a:hover { opacity: 0.7; }
	header.site-header .desktop-nav { list-style: none; }
	header.site-header .desktop-nav li { list-style: none; margin: 0; padding: 0 8px; }

	@media (min-width: 1025px) {
		header.site-header .desktop-nav { display: flex; }
	}

	.mobile-menu-toggle { display: none; }
	.mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #42080f; z-index: 9999; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.2s ease, visibility 0.2s ease; overflow-y: auto; }
	.mobile-menu-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }

	.mobile-menu-overlay.active {
		opacity: 1;
		visibility: visible;
	}

	.mobile-menu-inner {
		min-height: 100vh;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		padding: 30px 8% 50px;
	}

	.mobile-menu-top {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 60px;
	}

	.mobile-menu-logo img { height: 40px; width: auto; }
	.mobile-menu-logo .custom-logo { height: 40px; width: auto; }

	.mobile-menu-close {
		background: none;
		border: none;
		color: var(--white);
		font-size: 28px;
		cursor: pointer;
		padding: 8px;
		transition: opacity 0.3s;
	}

	.mobile-menu-close:hover { opacity: 0.7; }

	.mobile-nav ul {
		list-style: none;
		padding: 0;
		margin: 0;
		display: flex;
		flex-direction: column;
		gap: 8px;
	}

	.mobile-nav ul li a,
	.mobile-nav a {
		color: var(--white);
		text-decoration: none;
		font-size: 32px;
		font-weight: 600;
		letter-spacing: -0.5px;
		display: block;
		padding: 12px 0;
		transition: color 0.3s;
		border-bottom: 1px solid rgba(255,255,255,0.08);
	}

	.mobile-nav ul li a:hover,
	.mobile-nav a:hover {
		color: var(--card-bg);
	}

	.mobile-menu-bottom {
		margin-top: 50px;
		display: flex;
		flex-direction: column;
		gap: 30px;
	}

	.mobile-menu-cta {
		display: block;
		text-align: center;
		padding: 18px 40px;
		background: var(--primary);
		color: var(--white);
		text-decoration: none;
		font-size: 16px;
		font-weight: 600;
		border-radius: 50px;
		transition: all 0.3s ease;
	}

	.mobile-menu-cta:hover {
		background: var(--accent);
		transform: translateY(-2px);
	}

	.mobile-menu-contact {
		display: flex;
		flex-direction: column;
		gap: 6px;
		font-size: 15px;
		color: rgba(255,255,255,0.6);
	}

	.mobile-menu-social {
		display: flex;
		gap: 12px;
	}

	.mobile-menu-social a {
		width: 45px;
		height: 45px;
		border-radius: 50%;
		background: rgba(255,255,255,0.08);
		display: flex;
		align-items: center;
		justify-content: center;
		color: var(--white);
		text-decoration: none;
		font-size: 18px;
		transition: all 0.3s;
	}

	.mobile-menu-social a:hover {
		background: var(--primary);
	}

	body.menu-open {
		overflow: hidden;
		background-color: #42080f;
	}

	/* ─── Responsive ─── */
	@media (max-width: 1024px) {
		.desktop-nav { display: none; }
		.mobile-menu-toggle { display: flex; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; z-index: 101; }
		.mobile-menu-toggle .hamburger-line { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s ease; }
		.mobile-menu-overlay { pointer-events: auto; }
		.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

		.about-grid {
			grid-template-columns: 1fr;
			grid-template-rows: auto auto auto;
			grid-template-areas:
				"text"
				"image"
				"btn";
			gap: 24px;
			max-width: 100%;
		}
		.about-btn-wrap { justify-self: start; }

		.image-tags { top: 20px; left: 20px; gap: 10px; }
		.image-tags span { padding: 6px 18px; font-size: 12px; }
		.miks-valida-header h2 { font-size: 36px; }
		.mv-bento { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 16px; }
		.mv-bento-card { grid-column: span 1 !important; min-height: 200px; padding: 28px; }
		.mv-bento-card:nth-child(5), .mv-bento-card:nth-child(6) { grid-column: span 1 !important; grid-row: auto !important; }
		.mv-bento-large { min-height: 280px; }
		.mv-bento-card .mv-num { font-size: 44px; }
		.mv-bento-image .mv-num { font-size: 44px; }
		.mv-bento-card h4, .mv-bento-card h3 { font-size: 18px; }
		.mv-bento-image h4, .mv-bento-image h3 { font-size: 22px; max-width: 100%; }
		.mv-bento-image p { font-size: 14px; line-height: 1.6; max-width: 100%; }

		.ar-story-section { padding: 60px 5%; }
		.ar-story-grid { gap: 20px; }
		.ar-story-body { font-size: 15px; }

		.ar-chars-section { padding: 60px 5%; }
		.ar-chars-grid {
			grid-template-columns: 1fr;
			grid-auto-rows: auto;
			gap: 16px;
		}
		.ar-char-card {
			grid-column: span 1 !important;
			min-height: 200px;
			padding: 28px;
		}
		.ar-char-card:nth-child(4) {
			grid-column: 1 !important;
			grid-row: auto !important;
			min-height: 280px;
		}
		.ar-char-num { font-size: 44px; }
		.ar-char-card-image .ar-char-num { font-size: 44px; }
		.ar-char-text h4, .ar-char-text h3 { font-size: 18px; }
		.ar-char-card-image .ar-char-text h4, .ar-char-card-image .ar-char-text h3 { font-size: 22px; max-width: 100%; }
		.ar-char-card-image .ar-char-text p { font-size: 14px; line-height: 1.6; max-width: 100%; }
		.map-top-row { flex-direction: column; align-items: flex-start; gap: 30px; padding-top: 240px; }
		.floating-red-box { top: 0; left: 0; border-radius: 0 0 20px 80px; width: 100%; }
		.map-cta-box { position: relative; top: 0; left: 0; width: 100%; border-radius: 20px 80px 20px 20px; margin-bottom: 20px; padding: 32px 30px; }
		.map-cta-box h3 { font-size: 22px; }
		.map-icons-row { padding-left: 0; justify-content: center; width: 100%; }
		.map-section-intro h2 { font-size: 28px; }
		.map-section-intro { margin-bottom: 40px; }
		.final-contact-grid { grid-template-columns: 1fr; gap: 50px; }
		.fc-form-row { grid-template-columns: 1fr; }
		.fc-image-wrapper { max-width: 250px; }
		.footer-container { flex-direction: column; align-items: flex-start; gap: 50px; }
		.footer-right { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 50px; width: 100%; }

		.footer-menu li:first-child { display: none; }

		.mobile-menu-contact,
		.mobile-menu-social {
			display: none;
		}
	}

	@media (max-width: 968px) {
		.projects-grid { grid-template-columns: 1fr; max-width: 600px; }
		.projects-header h2 { font-size: 36px; }
		.project-info-row { flex-direction: column; gap: 8px; }
		.project-info-row .project-desc { text-align: left; }
		.project-bottom-row { flex-direction: column; gap: 16px; }
		.hero-content h1 { font-size: 48px; }
	}

	@media (max-width: 768px) {
		header.site-header {
			top: 16px;
			width: 94%;
			padding: 12px 22px;
			border-radius: 60px;
		}
		.header-logo img { height: 34px; }
		.mobile-menu-toggle .hamburger-line { width: 22px; }

		.hero {
			height: auto;
			min-height: 380px;
			padding: 130px 5% 50px;
		}
		.hero-overlay {
			background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.55) 100%);
		}
		.hero-content h1 {
			font-size: 36px;
			line-height: 1.1;
			margin-bottom: 28px;
		}

		.hero-features { display: none; }

		.hero-btns { flex-wrap: wrap; gap: 12px; }
		.hero-btns .btn:nth-child(2) { display: none; }

		.about-section { padding: 60px 5%; }
		.projects-section { padding: 60px 5%; }
		.miks-valida-section { padding: 60px 5%; }
		.stats-map-section { padding: 60px 5%; }
		.articles-section { padding: 60px 5%; }
		.final-contact-section { padding: 60px 5%; }

		.map-wrapper {
			margin-top: 20px;
			border-radius: 16px 40px 16px 16px;
			overflow: hidden;
			box-shadow: 0 8px 20px rgba(0,0,0,0.03);
		}
		.stats-map-section.has-cta {
			background: var(--white);
			padding-top: 0;
		}

		.stats-map-section.has-cta .map-wrapper {
			margin-top: 0;
			border-radius: 0;
			overflow: visible;
			background: transparent;
			box-shadow: none;
		}

		.map-top-row {
			padding: 0;
			gap: 24px;
			padding-top: 0;
			min-height: 0;
		}

		.floating-red-box,
		.map-cta-box {
			position: relative;
			top: 0;
			left: 0;
			width: 100%;
			border-radius: 16px 40px 16px 16px;
			padding: 32px 26px;
			margin-bottom: 0;
			box-shadow: none;
		}
		.floating-red-box h3,
		.map-cta-box h3 {
			font-size: 22px;
			line-height: 1.25;
			margin-bottom: 18px;
		}

		.map-icons-row {
			display: grid;
			grid-template-columns: 1fr 1fr;
			gap: 28px 20px;
			padding: 0 24px 28px 24px;
			justify-content: flex-start;
			width: 100%;
		}
		.map-icon-item strong {
			font-size: 36px;
		}
		.map-icon-item span {
			font-size: 13px;
			max-width: 100%;
			line-height: 1.4;
		}

		.map-visual {
			height: 520px !important;
			min-height: 520px !important;
			border-radius: 0 0 16px 16px;
		}
		.stats-map-section.map-only .map-visual,
		.leaflet-container {
			border-radius: 0 0 16px 16px !important;
		}
		.stats-map-section.has-cta .map-visual {
			margin-top: -20px;
			border-radius: 16px;
			position: relative;
			z-index: 1;
		}
		.stats-map-section.has-cta .map-cta-box {
			position: relative;
			z-index: 2;
		}
		.stats-map-section.has-cta .map-visual .leaflet-container {
			border-radius: 16px !important;
		}

		.leaflet-tile-pane {
			filter: sepia(0.35) saturate(0.7) brightness(1.02) !important;
			-webkit-filter: sepia(0.35) saturate(0.7) brightness(1.02) !important;
		}

		.about-text-content h2,
		.projects-header h2,
		.miks-valida-header h2,
		.map-section-intro h2,
		.articles-header-text h2,
		.ar-story-text h2,
		.ar-chars-section h2,
		.fc-left h2,
		.fc-right h2,
		.kontakt-v2-headline {
			font-size: 38px;
			line-height: 1.05;
			letter-spacing: -1px;
		}

		.articles-header { flex-direction: column; align-items: flex-start; gap: 24px; }
		.articles-grid { grid-template-columns: 1fr; gap: 32px; }
		.articles-grid-archive { grid-template-columns: 1fr; }
		.articles-grid.articles-slider .article-card { flex: 0 0 calc(100% - 4px); }

		.articles-slider-nav {
			display: flex !important;
			gap: 8px;
			align-self: flex-start;
		}
		.articles-slider-btn {
			width: 40px;
			height: 40px;
		}
		.article-card { grid-template-columns: 140px 1fr; gap: 16px; align-items: start; }
		.article-img-wrap { width: 140px; height: 190px; min-height: 0; aspect-ratio: auto; }
		.page-hero-simple h1 {
			font-size: 36px !important;
			line-height: 1.1 !important;
		}

		.article-title { font-size: 16px; }
		.article-excerpt { margin-bottom: 8px; }
		.article-footer { margin-top: 0; }

		.articles-more-btn-top { display: none; }
		.articles-more-bottom {
			display: flex;
			justify-content: flex-start;
			margin-top: 40px;
		}

		.article-single-hero h1 { font-size: 32px; }
		.article-single-subtitle { font-size: 16px; }
		.article-single-hero { padding: 140px 5% 40px; min-height: 320px; }

		.footer-section { padding: 60px 5%; }

		.footer-container {
			display: flex;
			flex-direction: column;
			align-items: flex-start;
			gap: 28px;
		}

		.footer-left,
		.footer-right,
		.footer-bottom-row {
			display: contents;
		}

		.footer-links        { order: 1; width: 100%; }
		.footer-contact-info { order: 2; }
		.footer-social       { order: 3; }
		.footer-logo         { order: 4; margin-top: 20px; }
		.footer-copyright {
			order: 5;
			width: 100%;
			padding-top: 24px;
			border-top: 1px solid rgba(255,255,255,0.1);
		}

		.footer-logo img,
		.footer-logo .custom-logo {
			height: 55px !important;
			width: auto !important;
		}

		.footer-menu {
			flex-direction: column;
			gap: 14px;
		}

		.footer-menu a {
			font-size: 18px;
		}

		.footer-contact-info {
			font-size: 14px;
			line-height: 1.6;
		}

		.footer-copyright {
			font-size: 13px;
		}

		.footer-copyright a {
			margin-top: 10px;
		}

		/* SSC AI Chat mobiili tweaks — chat-log läbipaistev, ilma kastita */
		.kontakt-v2-card-light .ssc-ai-chat-log {
			max-height: 280px !important;
			padding: 0 !important;
		}
		.kontakt-v2-card-light .ssc-ai-chat textarea {
			height: 100px !important;
			min-height: 100px !important;
			padding: 14px 18px !important;
			font-size: 16px !important;
		}
		.kontakt-v2-card-light .ssc-ai-chat button {
			padding: 14px 35px !important;
		}
	}

	@media (max-width: 600px) {
		.map-icons-row { flex-wrap: wrap; gap: 30px; }
	}

	/* ─── Page Hero (subpages) ─── */
	.page-hero-simple { position: relative; padding: 140px 0 0; min-height: 360px; display: flex; align-items: flex-end; overflow: hidden; background-size: cover; background-position: center 50%; }
	.page-hero-simple::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%); z-index: 1; }
	.page-hero-simple .container { position: relative; z-index: 2; padding: 0 5% 40px; }
	.page-hero-simple h1 { font-size: 48px; color: var(--white); }

	/* ─── Contact extras ─── */
	.fc-intro { color: rgba(255,255,255,0.7); font-size: 16px; line-height: 1.7; margin-bottom: 0; }

	body:not(.home) .projects-section { padding: 40px 5% 100px; }

body.home .final-contact-section { display: none; }