/**
* Template Name: kot
*/

body {
  background-color: #89878D;
  font-family: "Verdana";
  font-weight: 300;
  font-size: 18px;
  color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
  margin-top: 70px;
}

/* Titles */

h1, h2, h3, h4, h5, h6 {
  font-family: "Segoe UI Historic";
  font-weight: 300;
  color: #FEEFDA;
}

/* Paragraph & Typographic */

p {
  line-height: 28px;
  margin-bottom: 25px;
}

.centered {
  text-align: center;
}

/* Links */

a {
  color: #2C120D;
  word-wrap: break-word;
  transition: color 0.1s ease-in, background 0.1s ease-in;
}

a:hover, a:focus {
  color: #FEEFDA;
  text-decoration: none;
  outline: 0;
}

a:before, a:after {
  transition: color 0.1s ease-in, background 0.1s ease-in;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

.navbar {
  font-weight: 800;
  font-size: 14px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.navbar-inverse {
  background: #1E1E1E;
  border-color: #E8E8E8;
}

.navbar-inverse .navbar-nav>.active>a {
  background: #695B4E
}

.navbar-inverse .navbar-brand {
  color: #FEEFDA;
  font-weight: bolder;
  font-size: 22px;
  letter-spacing: 1px;
}

.navbar-inverse .navbar-brand i {
  color: #695B4E;
  font-size: 22px;
  letter-spacing: 1px;
}

ul li {
  position: relative;
  display: inline-block;
}
ul li a {
  display: block;
  border: none;
  border-bottom: none;  
  text-decoration: none; 
  color: black;
  padding: 5px 2px; 
  
}

li ul {
  display: none;  
  position: absolute;  
  margin-top: 2px;
  width: 200px;  
  background: #d3d3d3;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  
}
li:hover ul {
  display: block;	
}

/*TILT*/

.tilt {
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  -ms-transition: all 0.5s ease;
  transition: all 0.5s ease;
}

.tilt:hover {
  -webkit-transform: rotate(-10deg);
  -moz-transform: rotate(-10deg);
  -o-transform: rotate(-10deg);
  -ms-transform: rotate(-10deg);
  transform: rotate(-10deg);
}

/* ==========================================================================
   Wrap Sections
   ========================================================================== */

#headerwrap {
  background: url(../img/header-bg.jpg) no-repeat center top;
  margin-top: -10px;
  padding-top: 20px;
  text-align: center;
  background-attachment: relative;
  background-position: center center;
  min-height: 500px;
  width: 100%;
  -webkit-background-size: 100%;
  -moz-background-size: 100%;
  -o-background-size: 100%;
  background-size: 100%;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

#headerwrap h1 {
  margin-top: 100px;
  color: #FBFFF3;
  font-size: 70px;
  font-weight: 300;
  letter-spacing: 3px;
}

#headerwrap h2 {
  color: #FBFFF3;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

@media (max-width: 768px ) {
  #headerwrap h1 {
    font-size: 50px;
  }

  #headerwrap h2 {
    font-size: 30px;
  }
}

/* Dark Grey Wrap */

#dg {
  background: #9D938B;
  padding-top: 70px;
  padding-bottom: 70px;
  text-align: center;
}

#dg h4 {
  font-weight: 700;
}

/* Light Grey */

#lg {
  background: #6C5F60;
  padding-top: 70px;
  padding-bottom: 70px;
  text-align: center;
}

#lg h4 {
  font-weight: 700;
}

/* Red Wrap */

#r {
  background: #534441;
  padding-top: 35px;
  padding-bottom: 35px;
}

#r h4 {
  color: white;
  font-weight: 700;
}

#r p {
  color: white;
}

/* Blue Wrap */

#blue {
  background: #3498db;
  padding-top: 35px;
  padding-bottom: 35px;
}

#blue h4 {
  color: white;
  font-weight: 700;
}

#blue p {
  color: white;
}

/* Footer Wrap */

#f {
  background: #2d2d2d;
  padding-top: 30px;
  padding-bottom: 30px;
}

#f i {
  color: #bdbdbd;
  font-size: 30px;
  padding: 20px;
}

#f i:hover {
  color: #FEEFDA;
}

/****** SECTIONS *****/

.w {
  padding-top: 35px;
}

.w h4 {
  font-weight: 700;
}

.w i {
  color: #6C5F60;
  font-size: 30px;
}

.wb {
  padding-top: 35px;
  margin-bottom: 0px;
}

.wb h4 {
  font-weight: 700;
}

.desc {
  padding-top: 35px;
}

.desc h4 {
  font-weight: 700;
}

.desc i {
  color: #6C5F60;
  font-size: 12px;
  padding: 5px;
}

/***** MODAL CONTACT *****/

.modal-content {
  border-radius: 0px;
}

.modal-header {
  background: #bdbdbd;
  color: white;
}

.modal-header h4 {
  font-weight: 700;
}

.modal-body {
  background: #f2f2f2;
  font-family: "Lato";
  font-weight: 300;
  font-size: 16px;
  color: #555;
}

.modal-footer {
  background: #f2f2f2;
  margin-top: 0px;
}

/* ==========================================================================
   Pricing Tables
   ========================================================================== */

.pricing-option {
  padding-bottom: 40px;
}

.pricing-option .pricing-top {
  position: relative;
  background: #222;
  color: white;
  text-align: center;
  font-weight: bold;
  padding: 40px 20px 30px 20px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.pricing-option .pricing-top .special-label {
  display: block;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: #1abc9c;
  text-transform: uppercase;
  font-size: 15px;
  font-weight: bold;
  padding: 3px 0;
}

.special .pricing-top {
  background: black;
}

.pricing-option .pricing-edition {
  text-transform: uppercase;
  display: block;
  font-size: 25px;
  letter-spacing: 8px;
}

.pricing-option .price {
  display: inline-block;
  position: relative;
}

.pricing-option .price sup {
  position: absolute;
  top: 50px;
  left: -10px;
  font-size: 24px;
}

.pricing-option .price .price-amount {
  font-size: 108px;
  letter-spacing: -4px;
}

.pricing-option .price small {
  position: relative;
  left: -10px;
  font-size: 18px;
}

.pricing-option ul {
  list-style: none;
  margin: 0;
  background: #eee;
  text-align: center;
  padding-left: 0px;
}

.pricing-option ul li {
  border-bottom: solid 1px #e1e1e1;
  padding-top: 20px;
  padding-bottom: 20px;
}

.pricing-option .pricing-signup {
  display: block;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  padding: 15px 10px;
  color: white;
  background: #1abc9c;
}

.pricing-option .pricing-signup:hover {
  background: #ff7878;
}

/* Contact Form */

.contact-form {
  text-align: left;
  padding: 0 15px;
}

.contact-form label {
   color: #999;
}

.contact-form input, .contact-form textarea {
  padding: 10px 12px;
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  height: auto;
}

.contact-form .form-send {
  text-align: center;
}

.contact-form .form-send button  {
  background: #d9534f;
  border: 0;
  padding: 10px 30px;
  color: #fff;
  transition: 0.4s;
  cursor: pointer;
}

.contact-form .form-send button:hover {
  background: #e65f5b;
}

.contact-form .validate {
  display: none;
  color: red;
  margin: 0 0 15px 0;
  font-weight: 400;
  font-size: 13px;
}

.contact-form .loading {
  display: none;
  color: #555;
  background: #fff;
  text-align: center;
  padding: 15px;
  margin: 15px 0;
}

.contact-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  -webkit-animation: animate-loading 1s linear infinite;
  animation: animate-loading 1s linear infinite;
}

@-webkit-keyframes animate-loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes animate-loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

.contact-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: center;
  padding: 15px;
  font-weight: 600;
  margin: 15px 0;
}

.contact-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  font-weight: 600;
  margin: 15px 0;
}

/* Copyrights */

#copyrights {
  background: #222222;
  padding: 20px 0;
  text-align: center;
  color: #fff;
}

#copyrights p {
  margin-bottom: 5px;
}

.credits {
  color: #999;
}

.block {
	position: relative;
}
.block:before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	bottom: 3px;
	right: 3px;
	background-color: #78757f;
	z-index: 1;
	border-radius: 4px;
}
.block:after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background: #ffffff4f;
	z-index: -1;
	border-radius: 4px;
}
.block-content {
	z-index: 999;
	position: relative;
	padding: 10px 30px;
	font-size: 16px;	
}

/* Shopping Cart-styles */
.cart-toggle {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 1050;
  background: linear-gradient(90deg, #4f46e5 0%, #6366f1 100%);
  color: #fff;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  cursor:pointer;
}
.cart-toggle .badge {
  position:absolute;
  top:6px;
  right:6px;
  background:#0a2265;
  color:#fff;
  font-size:12px;
  padding:2px 6px;
  border-radius:12px;
}

/* Modal Shopping Cart window */
.kg-cart-modal {
  position: fixed;
  right: 16px;
  bottom: 90px;
  width: 700px;
  max-width: calc(100% - 32px);
  max-height: 100vh;
  overflow: auto;
  background: #f2f2f2;
  color: #2C120D;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  z-index: 1060;
  transform-origin: right bottom;
  padding: 14px;
  display: none;
  font-family: Arial, sans-serif;
}
.kg-cart-modal.open { display:block; }


.kg-cart-modal h3 { margin:0 0 10px; font-size:16px; }


.kg-cart-item {
  display:flex;
  gap:10px;
  align-items:center;
  padding:8px 0;
  border-bottom:1px solid #eee;
}
.kg-cart-item img { width:56px; height:56px; object-fit:cover; border-radius:6px; }
.kg-cart-item .meta { flex:1; }
.kg-cart-item .meta .name { font-weight:600; font-size:14px; }
.kg-cart-item .meta .price { font-size:13px; color:#666; margin-top:4px; }
.kg-cart-item .qty {
  display:flex;
  align-items:center;
  gap:6px;
}
.kg-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;  
  text-align: center;       
  padding: 10px 18px;
  font-size: 16px;
  line-height: 1;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  user-select: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  background: linear-gradient(90deg, #4f46e5 0%, #6366f1 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(79,70,229,0.18);
  -webkit-tap-highlight-color: transparent;
}

.kg-btn__icon{
  width: 18px;
  height: 18px;
  display: inline-block;
  border-radius: 4px;
  background: rgba(255,255,255,0.18); 
  box-shadow: inset 0 -2px 0 rgba(255,255,255,0.06);
  flex-shrink: 0;
  transform-origin: center;
  transition: transform 220ms cubic-bezier(.2,.9,.3,1), background 180ms;
}

/* Hover */
.kg-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(99,102,241,0.18);
  background: linear-gradient(90deg, #5b48f2 0%, #6f7bff 100%);
}
.kg-btn:hover .kg-btn__icon{
  transform: translateX(3px) scale(1.03);
  background: rgba(255,255,255,0.22);
}

.kg-btn:active{
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(79,70,229,0.12);
}
.kg-btn:active .kg-btn__icon{
  transform: translateX(1px) scale(0.98);
}

.kg-btn:focus{
  outline: none;
  box-shadow: 0 0 0 4px rgba(99,102,241,0.16);
}

.kg-btn:disabled{
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.kg-btn--sm{
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 6px;
}

@media (max-width: 420px){
  .kg-btn{
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }
}
.kg-secondary {
  background:linear-gradient(90deg, #4f46e5 0%, #6366f1 100%);
  color:#fff;
}

.kg-cart-footer { margin-top:10px; display:flex; flex-direction:column; gap:8px; }
.kg-cart-total { font-weight:700; font-size:16px; text-align:right; }
.kg-cart-actions { display:flex; gap:8px; justify-content:space-between; flex-wrap:wrap; }

@media (max-width:600px) {
  .kg-cart-modal { right:8px; left:8px; padding-top: 80px; bottom:70px; width:auto; max-width:calc(100% - 16px); }
  .cart-toggle { right:12px; bottom:12px; }
}

.stroke-text{
  color:white;
  text-shadow:2px 0 0 #79767d,0 2px 0 #79767d,-2px 0 0 #79767d,0 -2px 0 #79767d;
}

.product .size-label {
  display: inline-block;
  margin-right: 8px;
  font-weight: 600;
  font-size: 14px;
}
.product .size-select {
  display: inline-block;
  padding: 6px 8px;
  font-size: 14px;
  border: 1px solid #ffff;
  border-radius: 8px;
  background: rgb(139, 136, 145);
  outline:none; 

}

/* ======================
   Improvements for the shopping cart
   ====================== */

@media (max-width: 420px) {
  .kg-btn {
    width: auto !important;        
    display: inline-flex !important;
    justify-content: center !important;
  }
}

.kg-cart-item .qty {
  display: flex;
  flex-direction: row;             
  gap: 8px;
  align-items: center;
}

.kg-cart-item .qty .kg-btn {
  padding: 6px;
  min-width: 36px;
  width: 36px;
  height: 36px;
  font-size: 14px;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.kg-btn--remove {
  background: linear-gradient(90deg,#ef4444 0%,#f97316 100%) !important;
  box-shadow: 0 6px 12px rgba(239,68,68,0.12);
  color: #fff;
}

.kg-cart-item .qty input[type="number"],
.kg-cart-item .qty input {
  width: 46px;
  padding: 6px;
  text-align: center;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
}

.kg-cart-actions {
  display: flex;
  gap: 12px;                 
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 576px) {
  .kg-cart-actions .kg-btn {
    flex: 1 1 calc(50% - 8px);   
    min-width: 120px;
    max-width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border-radius: 10px;
  }

 .kg-cart-actions .kg-btn--full {
    flex-basis: 100%;
    width: 100%;
  }

  }

.kg-cart-actions .kg-btn + .kg-btn {
  margin-left: 0; 
}

.kg-cart-actions .kg-btn {
  box-shadow: 0 8px 22px rgba(79,70,229,0.12);
}

@media (max-width: 420px) {
  .kg-cart-actions {
    gap: 10px 12px; 
  }
}

/* Локализованные переменные и базовые правила для галереи */
.mg-gallery-wrap{
  --bg: #f7f6f4;
  --card: #7c7a81;
  --accent: #c96f6f;
  --muted: #fff;
  --frame: #f2e9e4;
  --shadow: 0 10px 30px rgba(9,10,18,0.06);
  --radius: 12px;
  --gap: 25px;
  --thumb-min: 280px;
  --thumb-max: 750px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  padding: 18px;
  background: transparent; 
  box-sizing: border-box;
}

.mg-gallery{
  max-width: 1200px;
  margin: 0 auto;
}

.mg-gallery .mg-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:25px;
  margin-bottom: 12px;
}
.mg-gallery .mg-title h3{
  margin:0;
  font-size:1.725rem;
  font-weight:600;
  color: #fff;
}
.mg-gallery .mg-title .mg-actions{
  font-size:0.9rem;
  color: var(--muted);
}

.mg-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--thumb-min), 1fr));
  gap: var(--gap);
  align-items: stretch;
}

.mg-item{
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 260ms cubic-bezier(.2,.9,.25,1), box-shadow 260ms;
  display:flex;
  flex-direction:column;
}

.mg-thumb{
  display:block;
  width:100%;
  height: 0;
  padding-bottom: 90.66%; 
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f7f6 0%, #f3f2f1 100%);
}
.mg-thumb img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transition: transform 450ms cubic-bezier(.2,.9,.25,1);
  display:block;
}

.mg-item:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(9,10,18,0.12);
}
.mg-item:hover .mg-thumb img{
  transform: scale(1.04);
}

.mg-meta{
  padding: 12px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.mg-meta .mg-caption{
  font-size:1.55rem;
  color:#F0EBD8;
  line-height:1.25;
  margin:0;
}
.mg-meta .mg-sub{
  font-size:0.82rem;
  color: var(--muted);
}

.mg-item.is-active{
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.mg-zoom-btn{
  position:absolute;
  right:10px;
  bottom:10px;
  background: rgba(0,0,0,0.48);
  color:#fff;
  padding:8px 10px;
  border-radius:8px;
  font-size:0.85rem;
  text-decoration:none;
  transition: background 200ms;
}
.mg-zoom-btn:hover{ background: rgba(0,0,0,0.6); }

@media (max-width: 900px){
  .mg-grid{ gap: 25px; }
  .mg-meta .mg-caption{ font-size:0.95rem; }
}
@media (max-width: 560px){
  .mg-grid{ grid-template-columns: repeat(1, 1fr); }
  .mg-thumb{ padding-bottom:75%; } 
}
@media (max-width: 360px){
  .mg-grid{ grid-template-columns: 1fr; }
}
	
.mg-lightbox-overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3,6,12,0.78);
  z-index: 12000;
  padding: 30px;
}
.mg-lightbox-overlay.open{
  display: flex;
}

.mg-lightbox-inner{
  position: relative;
  max-width: calc(100vw - 120px);
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.mg-lightbox-inner img.lb-image{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;

  display: block;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(2,6,23,0.7);
}

.mg-lb-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.71);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .18s;
  z-index: 12010;
}
.mg-lb-btn:hover{ background: rgba(0,0,0,0.71); }
.mg-lb-prev{ left: -30px; }
.mg-lb-next{ right: -30px; }

.mg-lb-close{
  position: absolute;
  right: -30px;
  top: -30px;
  background: rgba(0,0,0,0.71);
  color: #fff;
  border: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 18px;
  z-index: 12020;
}
.mg-lb-close:hover{ background: rgba(0,0,0,0.71); }

.mg-lb-caption{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -50px;
  min-width: 40%;
  max-width: calc(100% - 120px);
  color: #f3efe6;
  text-align: center;
  font-size: 15px;
  line-height: 1.3;
  z-index: 12010;
  background: rgba(0,0,0,0.71);
  padding: 3px 3px;
  border-radius: 8px;
}

.mg-lb-counter{
  position: absolute;
  left: -30px;
  top: -30px;
  color:#fff;
  background: rgba(0,0,0,0.71);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  z-index: 12010;
}

@media (max-width: 700px){
  .mg-lb-btn{ padding: 8px 10px; font-size: 18px; }
  .mg-lightbox-inner{ max-width: calc(100vw - 40px); max-height: calc(100vh - 40px); }
  .mg-lb-caption{ font-size: 13px; bottom: -82px; max-width: calc(100% - 40px); }
}

/* Разделитель в сетке — растягивается на всю ширину колоночной сетки */
.mg-grid .mg-section-title{
  grid-column: 1 / -1;         
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 6px;
  background: transparent;      
  border-bottom: 1px solid rgba(0,0,0,0.26);
  margin: 0;                  
}

.mg-section-title h4{
  margin: 20px;
  font-size: 1.725rem;
  color: #fff;
}
.mg-section-title .mg-actions{
  color: var(--muted);
  font-size: 0.95rem;
}

/* === Стилизация чекбокса согласия === */

.kg-agreement {
  margin: 12px 0;
}

.kg-checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #333;
  cursor: pointer;
  position: relative;
  padding-left: 0;
}

/* Прячем нативный чекбокс */
.kg-checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Кастомный квадратик */
.kg-checkbox-custom {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #888;
  border-radius: 4px;
  background: #fff;
  transition: all 0.2s ease;
  position: relative;
  margin-top: 1px;
}

/* При наведении */
.kg-checkbox-label:hover .kg-checkbox-custom {
  border-color: #555;
}

/* При фокусе (для доступности) */
.kg-checkbox-label input[type="checkbox"]:focus-visible + .kg-checkbox-custom {
  outline: 2px solid #4A90D9;
  outline-offset: 2px;
}

/* Когда отмечен — ставим галочку */
.kg-checkbox-label input[type="checkbox"]:checked + .kg-checkbox-custom {
  background: #4A90D9;
  border-color: #4A90D9;
}

.kg-checkbox-label input[type="checkbox"]:checked + .kg-checkbox-custom::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Если поле невалидно (required не выполнен) */
.kg-checkbox-label input[type="checkbox"]:invalid + .kg-checkbox-custom {
  border-color: #e74c3c;
  animation: kg-shake 0.3s ease;
}

<span style="color: hsl(var(--primary)); font-weight: 500;">@keyframes</span> kg-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

