/* Шрифти Unbounded та Onest лежать у плагіні (ліцензія SIL OFL 1.1), сайт не звертається до сторонніх серверів. */
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("fonts/unbounded-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/onest-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/onest-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* НаОККОлиці: придорожній обмінник. Головний елемент сторінки — табло курсів
   у вигляді зеленого дорожнього знака; усе інше тихе й світле. */

.nok {
	--nok-paper: #f4f7f1;
	--nok-white: #ffffff;
	--nok-ink: #10221a;
	--nok-muted: #56675d;
	--nok-line: #d9e2d6;
	--nok-green: #0a6a3b;
	--nok-green-deep: #06432a;
	--nok-signal: #ffc61a;
	--nok-signal-ink: #1d1a05;
	--nok-display: "Unbounded", "Arial Black", "Segoe UI", sans-serif;
	--nok-body: "Onest", "Segoe UI", Roboto, Arial, sans-serif;

	box-sizing: border-box;
	background: var(--nok-paper);
	color: var(--nok-ink);
	font-family: var(--nok-body);
	font-size: 17px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
.nok *,
.nok *::before,
.nok *::after { box-sizing: border-box; }

.nok h1, .nok h2, .nok p, .nok ul, .nok dl, .nok dd, .nok fieldset, .nok legend { margin: 0; padding: 0; border: 0; }
.nok ul { list-style: none; }
.nok a { color: inherit; text-decoration: none; }
.nok a:focus-visible,
.nok input:focus-visible,
.nok .nok-seg input:focus-visible + span { outline: 3px solid var(--nok-signal); outline-offset: 2px; }

.nok .nok-wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.nok .nok-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nok .nok-icon { flex: none; }

/* Типографіка */
.nok .nok-h1 {
	font-family: var(--nok-display);
	font-weight: 600;
	font-size: clamp(30px, 4.6vw, 54px);
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--nok-ink);
	text-wrap: balance;
}
.nok .nok-h2 {
	font-family: var(--nok-display);
	font-weight: 600;
	font-size: clamp(22px, 2.6vw, 30px);
	line-height: 1.15;
	letter-spacing: -0.015em;
	color: var(--nok-ink);
	text-wrap: balance;
}
.nok .nok-lead { font-size: 18px; color: var(--nok-muted); max-width: 46ch; }
.nok .nok-note { font-size: 15px; color: var(--nok-muted); max-width: 40ch; }

.nok .nok-wordmark {
	font-family: var(--nok-display);
	font-weight: 700;
	font-size: 22px;
	letter-spacing: -0.02em;
	line-height: 1;
	color: var(--nok-ink);
	white-space: nowrap;
}
.nok .nok-wordmark span { color: var(--nok-green); }

/* Кнопки */
.nok .nok-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 12px 22px;
	border: 2px solid transparent;
	border-radius: 14px;
	font-family: var(--nok-body);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.12s ease, background-color 0.12s ease;
}
.nok .nok-btn:active { transform: translateY(1px); }
.nok .nok-btn--signal { background: var(--nok-signal); color: var(--nok-signal-ink); }
.nok .nok-btn--signal:hover { background: #ffd447; color: var(--nok-signal-ink); }
.nok .nok-btn--ink { background: var(--nok-ink); color: var(--nok-white); }
.nok .nok-btn--ink:hover { background: #1c3a2c; color: var(--nok-white); }
.nok .nok-btn--line { background: transparent; border-color: var(--nok-ink); color: var(--nok-ink); }
.nok .nok-btn--line:hover { background: var(--nok-ink); color: var(--nok-white); }
.nok .nok-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Шапка */
.nok.nok-header { padding-block: 18px; }
.nok .nok-header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nok .nok-brand { display: flex; flex-direction: column; gap: 6px; }
.nok .nok-brand__tag { font-size: 14px; color: var(--nok-muted); line-height: 1; }
.nok .nok-header__call { min-height: 46px; padding: 10px 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Перший екран */
.nok.nok-hero { padding-block: 28px 72px; }
.nok .nok-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.nok .nok-hero__text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.nok .nok-facts { display: flex; flex-direction: column; gap: 10px; }
.nok .nok-facts li { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.nok .nok-facts .nok-icon { margin-top: 3px; color: var(--nok-green); }

/* Табло-знак */
.nok .nok-hero__sign { position: relative; min-width: 0; padding-bottom: 56px; }
.nok .nok-hero__sign::before,
.nok .nok-hero__sign::after {
	content: "";
	position: absolute;
	bottom: 0;
	width: 12px;
	height: 60px;
	background: linear-gradient(90deg, #b9c4b8, #dfe6dd 45%, #a9b5a8);
}
.nok .nok-hero__sign::before { left: 22%; }
.nok .nok-hero__sign::after { right: 22%; }

.nok .nok-board {
	position: relative;
	z-index: 1;
	padding: 8px;
	container-type: inline-size;
	border-radius: 26px;
	background: var(--nok-green);
	color: var(--nok-white);
	box-shadow: 0 22px 40px -24px rgba(6, 67, 42, 0.65);
}
.nok .nok-board__inner { padding: 8px 24px 16px; border: 3px solid var(--nok-white); border-radius: 19px; }
.nok .nok-board__head,
.nok .nok-board__row { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: 14px; }
.nok .nok-board__head { padding-block: 12px 10px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, 0.82); }
.nok .nok-board__head span:not(:first-child),
.nok .nok-board__num { text-align: right; }
.nok .nok-board__row { padding-block: 16px; border-top: 2px solid rgba(255, 255, 255, 0.28); }
.nok .nok-flag { flex: none; display: block; width: 30px; height: 20px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.9); }
.nok .nok-board__cur { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nok .nok-board__cur .nok-flag { width: 36px; height: 24px; border-radius: 5px; }
.nok .nok-board__name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
@container (max-width: 420px) {
	.nok .nok-board__cur { gap: 8px; }
	.nok .nok-board__cur .nok-flag { width: 24px; height: 16px; border-radius: 3px; }
	.nok .nok-board__cur small { display: none; }
}
.nok .nok-board__cur b { font-family: var(--nok-display); font-weight: 600; font-size: 22px; font-size: clamp(15px, 5cqi, 28px); line-height: 1; letter-spacing: 0.01em; }
.nok .nok-board__cur small { font-size: 14px; line-height: 1.2; color: rgba(255, 255, 255, 0.82); }
.nok .nok-board__num {
	font-family: var(--nok-display);
	font-weight: 600;
	font-size: 24px;
	font-size: clamp(14px, 6.6cqi, 40px);
	line-height: 1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.nok .nok-board__num--long { font-size: 18px; font-size: clamp(12px, 4.8cqi, 30px); }
.nok .nok-board__foot { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 2px solid rgba(255, 255, 255, 0.28); font-size: 15px; color: rgba(255, 255, 255, 0.9); }
.nok .nok-board__foot i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--nok-signal); }
.nok.nok-board-only { background: transparent; }

/* Калькулятор */
.nok.nok-calc { padding-block: 64px; background: var(--nok-white); border-block: 1px solid var(--nok-line); }
.nok .nok-calc__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.nok .nok-calc__intro { display: flex; flex-direction: column; gap: 12px; }
.nok .nok-calc__form { display: flex; flex-direction: column; gap: 18px; min-width: 0; margin: 0; }
.nok .nok-calc__form > .nok-seg { align-self: flex-start; }
.nok .nok-calc__line { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }

.nok .nok-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--nok-paper); min-width: 0; }
.nok .nok-seg label { position: relative; display: block; margin: 0; cursor: pointer; }
.nok .nok-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.nok .nok-seg span { display: block; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 16px; line-height: 1.2; color: var(--nok-muted); }
.nok .nok-seg input:checked + span { background: var(--nok-ink); color: var(--nok-white); }
.nok .nok-seg--cur span { display: flex; align-items: center; gap: 8px; }
.nok .nok-seg--cur .nok-flag { width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px var(--nok-line); }

.nok .nok-field { display: flex; flex-direction: column; gap: 6px; margin: 0; flex: 1 1 160px; min-width: 0; font-size: 14px; font-weight: 500; color: var(--nok-muted); }
.nok .nok-input {
	width: 100%;
	height: 54px;
	padding: 8px 16px;
	border: 2px solid var(--nok-line);
	border-radius: 14px;
	background: var(--nok-white);
	color: var(--nok-ink);
	font-family: var(--nok-display);
	font-size: 22px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}
.nok .nok-input:focus { border-color: var(--nok-green); }
.nok .nok-calc__result { min-height: 76px; font-size: 16px; color: var(--nok-muted); }
.nok .nok-calc__result b {
	display: block;
	font-family: var(--nok-display);
	font-weight: 600;
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--nok-green);
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

/* Адреса і карта */
.nok.nok-location { padding-block: 64px; }
.nok .nok-location__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: stretch; }
.nok .nok-location__text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.nok .nok-dl { display: flex; flex-direction: column; border-top: 1px solid var(--nok-line); }
.nok .nok-dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--nok-line); }
.nok .nok-dl dt { font-size: 15px; color: var(--nok-muted); }
.nok .nok-dl dd { font-weight: 500; }
.nok .nok-dl a { text-decoration: underline; text-underline-offset: 3px; }
.nok .nok-map { min-height: 340px; border-radius: 22px; overflow: hidden; background: var(--nok-line); }
.nok .nok-map iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }

/* Підвал */
.nok.nok-footer { padding-block: 40px 28px; background: var(--nok-green-deep); color: rgba(255, 255, 255, 0.82); font-size: 15px; }
.nok.nok-footer .nok-wordmark { color: var(--nok-white); }
.nok.nok-footer .nok-wordmark span { color: var(--nok-signal); }
.nok .nok-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.nok .nok-footer__brand,
.nok .nok-footer__contact { display: flex; flex-direction: column; gap: 10px; }
.nok .nok-footer__contact { text-align: right; }
.nok .nok-footer__contact a { font-family: var(--nok-display); font-weight: 500; font-size: 20px; color: var(--nok-white); font-variant-numeric: tabular-nums; }
.nok .nok-footer__base { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 14px; }

/* Кнопки внизу екрана на телефоні */
.nok.nok-dock { display: none; }

@media (max-width: 860px) {
	.nok.nok-hero { padding-block: 12px 40px; }
	.nok .nok-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.nok .nok-hero__sign { order: -1; padding-bottom: 0; }
	.nok .nok-hero__sign::before,
	.nok .nok-hero__sign::after { display: none; }
	.nok .nok-hero__text .nok-actions { display: none; }
	.nok .nok-board { border-radius: 22px; }
	.nok .nok-board__inner { padding-inline: 14px; border-radius: 15px; }
	.nok .nok-board__head { font-size: 14px; }
	.nok .nok-board__cur small { font-size: 13px; }
	.nok.nok-calc,
	.nok.nok-location { padding-block: 44px; }
	.nok .nok-calc__grid,
	.nok .nok-location__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.nok .nok-map,
	.nok .nok-map iframe { min-height: 280px; }
	.nok .nok-footer__contact { text-align: left; }
	.nok.nok-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
	.nok.nok-dock {
		position: fixed;
		z-index: 50;
		inset: auto 0 0 0;
		display: grid;
		grid-template-columns: 1.3fr 1fr;
		gap: 10px;
		padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
		background: var(--nok-white);
		border-top: 1px solid var(--nok-line);
	}
	.nok.nok-dock .nok-btn { min-height: 50px; padding-inline: 12px; }
}

@media (max-width: 420px) {
	.nok .nok-header__call span { display: none; }
	.nok .nok-header__call { padding: 10px 14px; }
	.nok .nok-seg { display: flex; }
	.nok .nok-calc__form > .nok-seg { align-self: stretch; }
	.nok .nok-seg label { flex: 1 1 auto; text-align: center; }
	.nok .nok-seg span { padding-inline: 10px; }
}

/* Широкі монітори: сторінка пропорційно збільшується, щоб не лишатися вузькою колонкою посередині. */
@media (min-width: 1500px) { .nok { zoom: 1.1; } }
@media (min-width: 1800px) { .nok { zoom: 1.22; } }
@media (min-width: 2200px) { .nok { zoom: 1.38; } }
@media (min-width: 2500px) { .nok { zoom: 1.5; } }
@media (min-width: 3200px) { .nok { zoom: 1.85; } }

@media (prefers-reduced-motion: reduce) {
	.nok .nok-btn { transition: none; }
}
