:root {
  --tdt-green: #279e03;
  --tdt-green-dark: #1f8102;
  --tdt-green-soft: #f1f9ee;
  --tdt-orange: #fc8100;
  --tdt-text: #24282d;
  --tdt-muted: #72777f;
  --tdt-border: #e2e5e8;
  --tdt-bg: #f6f7f8;
  --tdt-white: #fff;
  --tdt-error: #b42318;
  --tdt-radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--tdt-text);
  background: var(--tdt-white);
  font-family: Rubik, Arial, sans-serif;
  line-height: 1.45;
}

button, input, select { font: inherit; }

.tdt-page {
  width: 100%;
  padding: 38px 16px 60px;
}

.tdt-calculator {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.tdt-calculator__intro { max-width: 820px; margin-bottom: 30px; }

.tdt-calculator__eyebrow {
  margin: 0 0 8px;
  color: var(--tdt-green);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.tdt-calculator h1 {
  margin: 0 0 12px;
  font-size: clamp(29px, 4vw, 44px);
  line-height: 1.12;
}

.tdt-calculator__intro > p:last-child {
  margin: 0;
  color: var(--tdt-muted);
  font-size: 18px;
}

.tdt-calculator__shell {
  overflow: hidden;
  border: 1px solid var(--tdt-border);
  border-radius: 20px;
  box-shadow: 0 12px 38px rgba(30, 42, 51, .07);
}

.tdt-calculator__tabs {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: var(--tdt-bg);
  border-bottom: 1px solid var(--tdt-border);
}

.tdt-tab {
  min-height: 48px;
  padding: 10px 22px;
  color: #565c63;
  background: transparent;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 600;
  transition: .18s ease;
}

.tdt-tab:hover { color: var(--tdt-green-dark); background: #fff; }
.tdt-tab.is-active { color: #fff; background: var(--tdt-green); box-shadow: 0 5px 14px rgba(39, 158, 3, .22); }
.tdt-tab:focus-visible, .tdt-button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(252, 129, 0, .3); outline-offset: 2px; }

.tdt-calculator__body {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr);
  gap: 0;
}

.tdt-form { padding: clamp(20px, 4vw, 38px); }
.tdt-fieldset { min-width: 0; margin: 0 0 36px; padding: 0; border: 0; }

.tdt-fieldset legend {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 40px;
  padding: 0;
  font-size: 19px;
  font-weight: 600;
}

.tdt-fieldset legend span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex: 0 0 30px;
  color: var(--tdt-green);
  background: var(--tdt-green-soft);
  border-radius: 50%;
  font-size: 14px;
}

.tdt-film-types {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.tdt-film-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 156px;
  padding: 13px 11px 14px;
  align-items: center;
  flex-direction: column;
  color: var(--tdt-text);
  background: #fff;
  border: 1px solid var(--tdt-border);
  border-radius: 13px;
  cursor: pointer;
  text-align: center;
  transition: .18s ease;
}

.tdt-film-card:hover { border-color: #a9d89b; transform: translateY(-1px); }
.tdt-film-card.is-active { border-color: var(--tdt-green); box-shadow: inset 0 0 0 1px var(--tdt-green); background: var(--tdt-green-soft); }
.tdt-film-card input { position: absolute; opacity: 0; pointer-events: none; }
.tdt-film-card svg { width: 100px; max-width: 100%; height: 68px; margin-bottom: 5px; }
.film-fill { fill: rgba(39, 158, 3, .07); }
.film-fill--back { opacity: .55; }
.film-line, .film-dash { fill: none; stroke: #4d555b; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.film-dash { stroke: var(--tdt-green); stroke-dasharray: 3 3; }
.tdt-film-card span { font-size: 14px; font-weight: 600; }
.tdt-film-card small { display: block; margin-top: 4px; color: var(--tdt-muted); font-size: 13px; line-height: 1.25; }

.tdt-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tdt-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.tdt-input-unit {
  display: flex;
  height: 50px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ccd1d5;
  border-radius: 10px;
  transition: .18s ease;
}

.tdt-input-unit:focus-within { border-color: var(--tdt-green); box-shadow: 0 0 0 3px rgba(39, 158, 3, .1); }

.tdt-input-unit input {
  width: 100%;
  min-width: 0;
  padding: 0 14px;
  color: var(--tdt-text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 16px;
}

.tdt-input-unit > span, .tdt-input-unit select {
  display: flex;
  min-width: 62px;
  padding: 0 13px;
  align-items: center;
  justify-content: center;
  color: #616870;
  background: var(--tdt-bg);
  border: 0;
  border-left: 1px solid var(--tdt-border);
  white-space: nowrap;
}

.tdt-input-unit select { cursor: pointer; outline: 0; }
.tdt-field > small { display: block; margin-top: 6px; color: var(--tdt-muted); font-size: 13px; }

.tdt-known-switch {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 4px;
  gap: 4px;
  background: var(--tdt-bg);
  border-radius: 10px;
}

.tdt-known-switch label {
  position: relative;
  padding: 9px 15px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.tdt-known-switch label.is-active { color: var(--tdt-green-dark); background: #fff; box-shadow: 0 2px 8px rgba(23, 32, 38, .08); }
.tdt-known-switch input { position: absolute; opacity: 0; }
.tdt-field--known { max-width: 340px; }

.tdt-form__actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: -10px;
}

.tdt-form__actions > span { color: var(--tdt-muted); font-size: 15px; }
.tdt-button { min-height: 44px; padding: 8px 20px; border-radius: 9px; cursor: pointer; font-weight: 600; }
.tdt-button--secondary { color: #555b61; background: #fff; border: 1px solid #cfd4d8; }
.tdt-button--secondary:hover { color: var(--tdt-green-dark); border-color: var(--tdt-green); }

.tdt-results {
  position: sticky;
  top: 20px;
  align-self: start;
  min-height: 100%;
  padding: clamp(24px, 4vw, 38px);
  color: #fff;
  background: linear-gradient(145deg, #238f03, #176c01);
}

.tdt-results__label { margin: 0 0 5px; color: rgba(255,255,255,.72); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.tdt-results h2 { margin: 0 0 26px; font-size: 24px; }
.tdt-results__main { display: grid; gap: 10px; }

.tdt-results__main > div {
  padding: 16px 17px;
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
}

.tdt-results__main span { display: block; margin-bottom: 4px; color: rgba(255,255,255,.74); font-size: 13px; }
.tdt-results__main strong { display: block; font-size: clamp(25px, 3vw, 34px); line-height: 1.15; }
.tdt-results__main strong small { font-size: .5em; font-weight: 500; }

.tdt-results__details { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); }
.tdt-results__details > div { display: flex; justify-content: space-between; gap: 15px; padding: 7px 0; font-size: 16px; }
.tdt-results__details span { color: rgba(255,255,255,.72); }
.tdt-results__details b { text-align: right; }
.tdt-results__formula { margin: 21px 0 0; color: rgba(255,255,255,.74); font-size: 16px; }
.tdt-results__error { margin: 18px 0 0; padding: 12px; color: #7a271a; background: #fef3f2; border-radius: 9px; font-size: 13px; }

.tdt-calculator__help {
  display: grid;
  grid-template-columns: 1.5fr .8fr;
  gap: 28px;
  margin-top: 34px;
}

.tdt-calculator__help h2 { margin: 0 0 10px; font-size: 24px; }
.tdt-calculator__help p { margin: 0; color: var(--tdt-muted); }

.tdt-note {
  display: flex;
  gap: 13px;
  padding: 18px;
  background: #fff8ef;
  border: 1px solid #ffe0ba;
  border-radius: 13px;
}

.tdt-note svg { width: 23px; height: 23px; flex: 0 0 23px; fill: none; stroke: var(--tdt-orange); stroke-width: 1.8; stroke-linecap: round; }
.tdt-note p { color: #665442; font-size: 15px; }
.is-hidden { display: none !important; }

@media (max-width: 920px) {
  .tdt-calculator__body { grid-template-columns: 1fr; }
  .tdt-results { position: static; min-height: auto; }
  .tdt-results__main { grid-template-columns: repeat(3, 1fr); }
  .tdt-film-types { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .tdt-page { padding: 24px 12px 42px; }
  .tdt-calculator__intro > p:last-child { font-size: 16px; }
  .tdt-calculator__tabs { display: grid; grid-template-columns: 1fr; }
  .tdt-tab { text-align: left; }
  .tdt-form { padding: 22px 16px 28px; }
  .tdt-fieldset { margin-bottom: 30px; }
  .tdt-film-types, .tdt-fields-grid { grid-template-columns: 1fr; }
  .tdt-film-card { min-height: 118px; padding-left: 118px; justify-content: center; align-items: flex-start; text-align: left; }
  .tdt-film-card svg { position: absolute; left: 12px; top: 24px; width: 96px; }
  .tdt-known-switch { width: 100%; }
  .tdt-known-switch label { flex: 1; padding-inline: 8px; text-align: center; }
  .tdt-form__actions { align-items: flex-start; flex-direction: column; }
  .tdt-results { padding: 25px 18px; }
  .tdt-results__main { grid-template-columns: 1fr; }
  .tdt-calculator__help { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
.tdt-film-card
{
	border-radius: 5px;
	border: 1px solid #c2c8cc;
}
.tdt-film-card.is-active
{
	border-color: #7bc165;
    background: #f2f2f2;
	
}

select[name="thicknessUnit"]
{
		background-color: #279e03;
		border-radius:5px;
		color:#fff;
  appearance: none;           /* убираем стандартную стрелку */
  -webkit-appearance: none;
  -moz-appearance: none;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12"><polygon points="0,0 12,0 6,6" fill="%23fff"/></svg>') no-repeat right 10px center #279e03;
  display:none;
  
		
}

.tdt-input-unit input
{
	border:1px solid rgb(215, 216, 218)!important;
	box-shadow:none!important;
	height:44px;
	border-radius:5px;
	box-shadow:none!important;
}
.tdt-input-unit
{
	height:44px;
	border:0;
	border-radius:0;
}

.tdt-calculator__tabs
{
	background:none;
    border: 1px solid #bac0c6;
    padding: 1px;
    border-radius: 24px;
	padding:1px;
	width: 544px;
}



.tdt-tab
{
    border-radius: 24px;
    padding: 9px 17px;
	margin-right:24px;	
	
}
button[data-mode="rolls"]
{
	margin-right:0;
}
.tdt-known-switch
{
	background:none;
    border: 1px solid #bac0c6;
    padding: 1px;
    border-radius: 24px;
	padding:1px;

}
.tdt-known-switch label
{
	margin:0;
	box-shadow:none;
	border-radius: 24px;
}


.tdt-known-switch label.is-active
{
    border: 1px solid #279e03;
    background-color: #279e03;
    color: #fff;	
	box-shadow:none;
}

.tdt-input-unit
{
	overflow:visible;
}
.select_calc div[data-toggle="dropdown"]
{
	height:44px!important;
	border-left: 0!important;
    border-top-left-radius: 0!important;
    border-bottom-left-radius: 0!important;
	padding-right:35px!important;
	background:#279e03;
	color:#fff!important;
	width:77px!important;
}
.select_calc .btn-default:hover, .select_calc .btn-default:focus, .select_calc .btn-default:active, .select_calc .btn-default.active, .select_calc .open .dropdown-toggle.btn-default
{
	background:#279e03;
	color:#fff!important;
    border-color:rgb(215, 216, 218) !important;	
	box-shadow:none;
}
.select_calc .btn-group.type-select div.btn
{
	padding-right:35px!important;
}
.select_calc button[data-toggle="dropdown"]
{
	height:44px!important;
    position: absolute;
    right: 0;	
	border-left:0!important;
    border-top-left-radius: 0!important;
    border-bottom-left-radius: 0!important;	
}


.select_calc .btn-group > .btn:last-child:not(:first-child), .select_calc .btn-group > .dropdown-toggle:not(:first-child)
{
    border-top-left-radius: 0!important;
    border-bottom-left-radius: 0!important;	
	
}

.select_calc .dropdown-toggle .hl_arrow
{
	z-index:10;
}

.select_calc ul>li::before
{
	display:none;
}

.select_calc a
{
	text-decoration:none;
}
#tdt-thickness
{
	border-right:0;
	border-top-right-radius: 0!important;
    border-bottom-right-radius: 0!important;	
}

.tdt-field--known .tdt-input-unit
{
	border:1px solid rgb(215, 216, 218);	
	border-radius:5px;
}

.tdt-field--known .tdt-input-unit input
{
	border:0!important;
}
button.btn.btn-default[type="reset"]
{
	background-color:#fff;
	color:#000;
	border-color:#279e03;
}

button.btn.btn-default[type="reset"]:hover
{
	background-color:#279e03;
	color:#fff;
}


.tdt-results {
    position: sticky;
    top: 20px;
    min-width: 0;
    min-height: 100%;
    padding: 28px 24px;
    align-self: start;
    color: #333333;
    background: #f0f3f5;
    border-left: 1px solid #279e03;
}

.tdt-results__label {
    margin: 0 0 5px;
    color: #218702;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.tdt-results__main > div {
    padding: 14px 15px;
    background: #fff;
    border: 1px solid #e3e6e8;
    border-left: 3px solid #279e03;
    border-radius: 5px;
}

.tdt-results__main span {
    display: block;
    margin: 0 0 2px;
    color: #777777;
	font-weight: 800;
	font-size: 16px;	
}

.tdt-results__main strong {
    display: block;
    color: #262626;
    font-size: clamp(24px, 2.8vw, 32px);
    font-weight: 500;
    line-height: 1.15;
}


.tdt-results__main strong output
{
	display:inline;
    color: #262626;
    font-size: clamp(24px, 2.8vw, 32px);
    font-weight: 500;
    line-height: 1.15;
	
}

.tdt-results__details {
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid #d8dddf;
}

.tdt-results__details span {
    color: #777777;
}

.tdt-results__formula {
    margin: 19px 0 0;
    color: #777777;
    font-size: 16px;
    line-height: 1.45;
}

@media(max-width:768px)
{
	.tdt-calculator__tabs
	{
		width:100%;
		left:0;
		margin-left:0;
		position:relative;
		margin-bottom: 20px;
	}
	.tdt-tab
	{
		width:100%;
		text-align:center;
	}
	.tdt-known-switch
	{
		display:block;
	}
	.tdt-known-switch label
	{
		width:100%;
	}
}

.select_calc .dropdown-toggle .hl_arrow
{
	top:-1px;
}