
#size-chart-page,
#size-calc-page {
	/*padding: 50px 0 70px;*/
}

.sc-inner {
	max-width: 720px;
	margin: 0 auto;
}


.sc-title {
	font-family: 'CPM', sans-serif;
	font-size: 28px;
	color: #000;
	margin-bottom: 14px;
	line-height: 1.2;
}

.sc-subtitle {
	font-size: 15px;
	color: #000;
	margin-bottom: 40px;
	line-height: 1.6;
}


.sc-step {
	margin-bottom: 32px;
}

.sc-step__label {
	font-family: 'CPM', sans-serif;
	font-size: 13px;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 16px;
}


.sc-gender-buttons {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.sc-btn--gender {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	background: #fff;
	border: 1.5px solid #d0d0d0;
	color: #000;
	font-family: 'CPM', sans-serif;
	font-size: 15px;
	cursor: pointer;
	transition: border-color .2s, background .2s, color .2s;
	border-radius: 0;
	min-width: 180px;
}

.sc-btn--gender:hover {
	border-color: #000;
}

.sc-btn--gender.active {
	background: #000;
	border-color: #000;
	color: #fff;
}


.sc-height-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.sc-btn--height {
	width: 64px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1.5px solid #d0d0d0;
	color: #000;
	font-family: 'CPM', sans-serif;
	font-size: 14px;
	cursor: pointer;
	transition: border-color .2s, background .2s, color .2s;
}

.sc-btn--height:hover {
	border-color: #000;
}

.sc-btn--height.active {
	background: #000;
	border-color: #000;
	color: #fff;
}


.sc-reset {
	display: flex;
	gap: 6px;
	background: none;
	border: none;
	padding: 0;
	font-family: 'CPM', sans-serif;
	font-size: 13px;
	color: #000000;
	cursor: pointer;
	transition: color .2s;
	white-space: nowrap;
}

.sc-reset:hover {
	color: #000;
}

.sc-reset svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}


.sc-fit {
	display: inline-block;
	padding: 3px 10px;
	font-family: 'CPM', sans-serif;
	font-size: 12px;
	border-radius: 2px;
	white-space: nowrap;
}

.sc-fit--slim,
.sc-fit--standard,
.sc-fit--comfort,
.sc-fit--comfort-plus {
	background: none;
	color: #000;
	padding: 0;
}


.sc-result {
	margin-top: 8px;
}

.sc-result__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
	gap: 12px;
}

.sc-result__title {
	font-family: 'CPM', sans-serif;
	font-size: 18px;
	color: #000;
}


.sc-table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.sc-table {
	width: 100%;
	min-width: 520px;
	border-collapse: separate;
	border-spacing: 0;
}

.sc-table thead td {
	background: #000;
	color: #fff;
	font-family: 'CPM', sans-serif;
	font-size: 13px;
	height: 42px;
	padding: 0 14px;
	text-align: center;
	border-right: 1px solid #333;
	border-bottom: 1px solid #333;
	white-space: nowrap;
}

.sc-table thead tr td:first-child { border-left: 1px solid #333; }
.sc-table thead tr td:last-child  { border-right: 1px solid #333; }

.sc-table tbody td {
	background: #fff;
	font-family: 'CPR', sans-serif;
	font-size: 14px;
	height: 44px;
	padding: 0 14px;
	text-align: center;
	border-right: 1px solid #d8d8d8;
	border-bottom: 1px solid #d8d8d8;
	vertical-align: middle;
}

.sc-table tbody tr td:first-child    { border-left: 1px solid #d8d8d8; }
.sc-table tbody tr:nth-child(even) td { background: #f5f5f5; }


.sc-td-age {
	vertical-align: middle !important;
	border-left: 1px solid #d8d8d8;
	background: #fff !important;
}


.sc-table tbody tr td:first-child:not(.sc-td-age) {
	border-left: none;
}


.sc-td-note {
	text-align: left !important;
	font-size: 12px !important;
	color: #555;
	line-height: 1.5;
	padding: 8px 14px !important;
	min-width: 200px;
}


.scc-height-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}

.scc-input {
	width: 160px;
	height: 46px;
	border: 1.5px solid #d0d0d0;
	padding: 0 14px;
	font-family: 'CPM', sans-serif;
	font-size: 16px;
	color: #000;
	background: #fff;
	transition: border-color .2s;
	-moz-appearance: textfield;
}

.scc-input::-webkit-outer-spin-button,
.scc-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.scc-input:focus       { outline: none; border-color: #000; }
.scc-input.error       { border-color: #c0392b; }

.scc-unit {
	font-family: 'CPR', sans-serif;
	font-size: 15px;
	color: #828282;
}

.scc-height-hint {
	margin-top: 8px;
	font-family: 'CPR', sans-serif;
	font-size: 12px;
	color: #aaa;
}


.scc-bodytype-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	max-width: 480px;
}

.scc-bodytype { cursor: pointer; }

.scc-bodytype input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.scc-bodytype__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 16px 8px 14px;
	border: 1.5px solid #d0d0d0;
	color: #bbb;
	transition: border-color .2s, color .2s, background .2s;
	user-select: none;
}

.scc-bodytype__card:hover {
	border-color: #888;
	color: #666;
}

.scc-bodytype input[type="radio"]:checked + .scc-bodytype__card {
	border-color: #000;
	color: #000;
	background: #f8f8f8;
}

.scc-figure {
	width: auto;
	height: 140px;
	max-width: 100%;
	display: block;
	object-fit: contain;
}

.scc-bodytype__name {
	display: block;
	margin-top: 10px;
	font-family: 'CPR', sans-serif;
	font-size: 12px;
	text-align: center;
	line-height: 1.3;
	color: inherit;
}


.scc-field-error {
	display: none;
	margin-top: 8px;
	font-family: 'CPR', sans-serif;
	font-size: 13px;
	color: #c0392b;
}

.scc-step--error .sc-step__label {
	color: #c0392b;
}

.scc-step--error .sc-btn--gender:not(.active) {
	border-color: #f1a9a0;
}

.scc-step--error .scc-input {
	border-color: #c0392b;
}

.scc-step--error .scc-bodytype__card {
	border-color: #f1a9a0;
}

@keyframes sccShake {
	0%,100% { transform: translateX(0); }
	20%     { transform: translateX(-6px); }
	40%     { transform: translateX(6px); }
	60%     { transform: translateX(-4px); }
	80%     { transform: translateX(4px); }
}

.scc-shake {
	animation: sccShake .35s ease;
}


.scc-form-footer { margin-top: 8px; }

.scc-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	padding: 0 40px;
	background: #000;
	color: #fff;
	font-family: 'CPM', sans-serif;
	font-size: 14px;
	border: none;
	cursor: pointer;
	transition: background .2s;
	letter-spacing: 0.02em;
}

.scc-submit:hover { background: #333; }

.scc-error {
	display: none;
	margin-top: 12px;
	font-family: 'CPR', sans-serif;
	font-size: 13px;
	color: #c0392b;
}


.scc-result { margin-top: 8px; }

.scc-result__card {
	display: flex;
	align-items: flex-start;
	gap: 32px;
	padding: 28px 32px;
	background: #f8f8f8;
	border: 1px solid #e8e8e8;
	margin-bottom: 16px;
}

.scc-result__main {
	flex-shrink: 0;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.scc-result__block {
	display: flex;
	flex-direction: column;
}

.scc-result__label {
	font-family: 'CPR', sans-serif;
	font-size: 12px;
	color: #828282;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 8px;
}

.scc-result__size {
	font-family: 'CPB', sans-serif;
	font-size: 52px;
	line-height: 1;
	color: #000;
}

.scc-result__fit {
	font-family: 'CPM', sans-serif;
	font-size: 18px;
	line-height: 1.1;
	color: #000;
	white-space: nowrap;
}

.scc-result__params {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
	justify-content: center;
	padding-top: 4px;
	width: 100%;
}

.scc-param {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	border-bottom: 1px solid #e4e4e4;
	padding-bottom: 10px;
}

.scc-param:last-child { border-bottom: none; padding-bottom: 0; }

.scc-param__label {
	font-family: 'CPR', sans-serif;
	font-size: 13px;
	color: #828282;
	white-space: nowrap;
}

.scc-param__val {
	font-family: 'CPM', sans-serif;
	font-size: 15px;
	color: #000;
	white-space: nowrap;
}

.scc-result__note {
	font-family: 'CPR', sans-serif;
	font-size: 13px;
	color: #828282;
	line-height: 1.6;
	margin-bottom: 8px;
}

.scc-result__range-warn {
	display: none;
	font-family: 'CPR', sans-serif;
	font-size: 13px;
	color: #b06a00;
	background: #fff8ee;
	border: 1px solid #fde8bb;
	padding: 10px 14px;
	margin-bottom: 12px;
	line-height: 1.5;
}



#sc-height-step,
#sc-result,
.scc-result {
	animation: scFadeIn .25s ease forwards;
}

@keyframes scFadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}


@media (max-width: 767px) {
	#size-chart-page,
	#size-calc-page {
		/*padding: 32px 0 50px;*/
	}

	.sc-title  { font-size: 22px; margin-bottom: 10px; }
	.sc-subtitle { font-size: 14px; margin-bottom: 28px; }

	.sc-btn--gender {
		min-width: 140px;
		padding: 12px 20px;
		font-size: 14px;
	}

	.sc-btn--height { width: 56px; height: 40px; font-size: 13px; }
	.sc-result__title { font-size: 16px; }

	.sc-table { min-width: 520px; }
	.sc-td-note { min-width: 160px; }

	.sc-table thead td,
	.sc-table tbody td { padding: 0 10px; font-size: 13px; }

	
	.scc-bodytype-grid { gap: 8px; }

	.scc-bodytype__card { padding: 12px 4px 10px; }

	.scc-figure { width: auto; height: 74px; }

	.scc-bodytype__name { font-size: 11px; margin-top: 7px; }

	.scc-submit { width: 100%; }

	.scc-result__card { flex-direction: column; gap: 20px; padding: 20px; }

	.scc-result__main {
		width: 100%;
		gap: 14px;
	}

	.scc-result__label { margin-bottom: 4px; }
	.scc-result__size  { font-size: 44px; }
	.scc-result__fit   { font-size: 16px; }
}

@media (max-width: 480px) {
	.sc-gender-buttons  { flex-direction: column; gap: 10px; }
	.sc-btn--gender     { width: 100%; justify-content: center; }
	.sc-result__head    { flex-wrap: wrap; }
}

@media (max-width: 400px) {
	.scc-bodytype-grid { grid-template-columns: repeat(2, 1fr); }
}
