@charset "UTF-8";
:root{
	--acc:#b68366; --acc-d:#668b72;
	--ink:#070605; --mut:#070605;
	--line:#ece3d6; --soft:#f6f0e7; --bg:#f3eeeb; --lite:#4d4e4c; --bglite: #f4f1f8; --litetext: #918a8a;
	--fs1:52px; --fs2:32px; --fs3:20px; --fs4:16px; --fs5:13px;
  --button-gradient: linear-gradient(90deg, #070605 0%, #070605 50%, #070605 100%);
}
html, body { overflow-x: clip; }

 /* ===== Сброс ===== */
  *, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

    section.se-drop {
    padding: 0px 100px 0px 100px;
    }
section.slideallwid.hometop {
    padding-top: 140px;
}
  /* Chrome, Safari, Edge — скролл в тон сайта */
  ::-webkit-scrollbar {
    width: 12px;
  }
  ::-webkit-scrollbar-track {
    background: var(--soft);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--acc);
    border-radius: 6px;
    border: 3px solid var(--soft);
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--acc-d);
  }
  p.bottomgap {
	margin-bottom: 20px;
  }

  /* Firefox */
  html {
    scrollbar-width: thin;
    scrollbar-color: var(--acc) var(--soft);
  }

  body, table {
	font-family: "Google Sans", sans-serif;
	font-weight: 400;
    background: url(/content/img/page/bg1.jpg);
    color: var(--lite);
  }
  p, ul, a, ol {
	font-size: 16px;
	line-height: 30px;
  }
  ol li {
    margin-left: 20px;
}
  .iconbig {
     height: 100px;
     width: auto;
     margin-bottom: 10px;
  }
article h2 {
    margin: 30px 0px 30px 0px;
}
.margintop90 {
    margin-top: 90px;
}
.margintop30 {
    margin-top: 30px;
}
.margintop50 {
    margin-top: 50px;
}
.margintop20 {
    margin-top: 20px;
}
.table-desktop table {
   
    border-collapse: collapse;
}
.table-desktop th,
.table-desktop td {
    padding: 2px 6px;
     border: 1px dashed var(--acc-d);
}
.flexbox {
  display: flex;
  align-items: baseline;
  gap: 30px;
  align-items: flex-start;
}
.flexboxcentery {
  display: flex;
  align-items: center;
  gap: 30px;
}

.flexboxcentery div {
    flex: 0 1 auto !important;
}
.flexboxspace-between {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  justify-content: space-between;
}
.flexboxspace-betweencenter {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}
.flexboxspace-betweenbottom {
  display: flex;
  align-items: flex-end;
  gap: 100px;
  justify-content: space-between;
  margin-bottom: 30px;
}
.flexbox div {
    flex: 0 1 auto !important;
}
.kurs img {
    border-radius: 10px;
}
ul.bggreen li {
    background-color: var(--acc-d);
    color: var(--bglite);
    outline: 1px dashed var(--acc-d);
}
ul.bggreen h3 {
    color: var(--bglite);
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--bglite);
}
.mintext {
	font-size: 13px;
	line-height: 22px;
  }
.mintextitalic {
	font-size: 13px;
	line-height: 22px;
    font-style: italic;
  }
.marginright100 {
    margin-right: 100px;
}
ul.ulline {
    display: flex;
    flex-direction: row;
    list-style: none;
	gap: 30px;
}
ul.ulline li {
border: 1px dashed var(--acc-d);
    padding: 20px;
    border-radius: 5px;
    flex: 1;
}
ul.ulline li::before {
	content: none;
}
.sectiongap30 {
	display: flex;
	flex-direction: column;
	gap: 30px;
	align-items: flex-start;
}
.flex-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.flex-3 > * { flex: 0 0 calc(33.333% - 14px); } 

.flex-5 {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.flex-5 > * {
    flex: 0 0 calc((100% - 90px) / 4);
    box-sizing: border-box;
}
nav.lekal-crumbs {
    font-size: 16px;
    line-height: 30px;
    margin-top: 120px;
}

footer.pf {
    padding: 80px 60px 20px 80px;
}
article.flexboxarticle {
    display: flex;
    flex-wrap: wrap;
    row-gap: 50px;
    column-gap: 100px;
}

article.flexboxarticle div {
    flex: 0 0 calc(50% - 50px); /* 50% минус половина gap */
    box-sizing: border-box;
}

/* Последний блок на всю ширину */
article.flexboxarticle div:last-child {
    flex: 0 0 100%;
}
article.flexboxarticletree {
    display: flex;
    flex-wrap: nowrap;
    row-gap: 50px;
    column-gap: 100px;
    flex-direction: row;
}
section.slideallwid.contact {
    align-items: flex-end;
}
.contact p {
    margin-bottom: 10px;
}
.contact h2 {
    margin-bottom: 40px;
}
.flexonlyline {
	display: flex;
	flex-direction: row;
	gap: 40px;
	align-items: center;
}
.borderradimg {
	border-radius: 15px;
}
a {
	text-decoration: none;
    color: var(--acc-d);
}
a:hover {
	text-decoration: none;
    color: var(--acc-d);
}
form.lekal-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pf-logo {
    text-align: center;
}
ul.pf-legal {
    flex: 2;
}
ul.pf-legal li {
    margin-bottom: 0px;
}
.attentions {
    font-size: 18px; padding: 2px 5px; border: 1px dashed var(--acc-d);
    border-radius: 50px;
}
.pf-text {
    flex: 3;
}
.pf-logo {
    flex: 1;
}
.maxwidth500 {
	max-width: 500px;
}
.buttonbrown {
    background: var(--acc);
    color: var(--soft);
    border: 1px dashed var(--soft);
    outline: 4px solid var(--acc);
    padding: 8px 10px;
    border-radius: 3px;
}
.buttonbrown:hover {
    background: var(--acc-d);
    color: var(--soft);
    outline: 4px solid var(--acc-d);
}
.buttongreen, .buttongreen a {
    background: var(--acc-d);
    color: var(--soft);
    border: 1px dashed var(--soft);
    outline: 4px solid var(--acc-d);
    padding: 8px 10px;
    border-radius: 3px;
}
.buttongreen:hover {
    background: var(--acc);
    color: var(--soft);
    border: 1px dashed var(--soft);
    outline: 4px solid var(--acc);
    padding: 8px 10px;
    border-radius: 3px;
}
.buttonempty {
    background: var(--line);
    color: var(--acc);
    border: 1px dashed var(--acc);
    outline: 4px var(--line);
    padding: 8px 10px;
    border-radius: 3px;
}
.buttona {
    font-size: 15px;
    padding: 10px 30px;
	  border-radius: 50px;
    cursor: pointer;
	  display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ffffff;
    outline: 4px solid var(--acc);
}
a.buttonfiol, button.buttona.buttonfiol {
    color: #ffffff;
    background: var(--button-gradient);
}
a.buttonwhite {
    font-size: 15px;
    padding: 10px 30px;
	  border-radius: 50px;
    cursor: pointer;
	  display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--acc);
    outline: 4px solid #ffffff;
    color: var(--button-gradient);
    background: #ffffff;
}
.button-nowrap {
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* Кнопка копирования артикула */
.lekal-copy-btn {
	background: none;
	border: none;
	padding: 0;
	margin-left: 4px;
	cursor: pointer;
	vertical-align: middle;
	color: #918a8a; /* Серый цвет как у подсказок */
	transition: color 0.2s, transform 0.1s;
	display: inline-flex;
	align-items: center;
}
.lekal-copy-btn:hover {
	color: var(--acc); /* Тёмный при наведении */
	transform: scale(1.1);
}
.lekal-copy-btn.copied {
	color: var(--acc-d); /* Зелёный при успешном копировании */
}

  /* ===== HEADER (фиксированная верхняя плашка) ===== */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 32px;
    z-index: 100;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    padding: 6px 90px;
  }
.onlyhead, .ck-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 0px 20px;
    background: url(/content/img/page/bg1.jpg);
    border-width: 0px 1px 1px 1px;
    border-style: dashed;
    border-color: var(--acc);
    outline: 8px solid #668b72;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}
section.se-drop {
    padding: 0px 100px 0px 100px;
}

  /* Состояние после прокрутки */
  .header--scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  }

  .header--scrolled .header__logo,
  .header--scrolled .header__menu li {
  }

  .header__logo {
    font-weight: 700;
    font-size: 18px;
  }

  .header__menu {
    display: flex;
    gap: 20px;
    list-style: none;
  }

  .header__menu li {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
  }

  .header__menu li:hover {
    opacity: 1;
  }
.lekal-text h2, h2.divonlycenter {
    font-size: 38px;
    line-height: 46px;
}

  /* ===== SIDEBAR (фиксированная левая панель кнопок) ===== */
  .sidebar {
    position: fixed;
    top: 60px;
    left: 15px;
    bottom: 0;
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    gap: 30px;
    z-index: 100;
	justify-content: center;
  }

  .sidebar__btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px dashed var(--acc);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
	color: var(--acc);
  }
  /* ДОБАВЬ ЭТОТ БЛОК */
.sidebar__btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

  .sidebar__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  .sidebar__btn svg {
    width: 25px;
    height: 25px;
    display: block;
}

  /* ===== СЛАЙД ===== */
  .slide {
    width: 100%;
    align-items: center;
    justify-content: center;
  }

.header__logo img {
    height: 70px;
    padding: 8px 0px;
}
.kurstwo .imgimg {
    flex: 0 0 33%;
}
.kurstwo .flexbox {
    flex: 1 1 0;
}
.padtop20 {
    padding-top: 20px;
}
section.slidecenter {
    display: flex;
    padding: 30px 60px 80px 80px;
    gap: 30px;
}
section.slideright {
    display: flex;
    padding: 0px 0px 0px 8%;
    gap: 60px;
}
section.slideallwid {
    display: flex;
    padding: 0;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: nowrap;
    justify-content: left;
}
section.slideallwidcenter {
    display: flex;
    padding: 0;
    gap: 30px;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-around;
}
div.paddingallcenter {
    padding: 100px 80px 20px 80px;
    text-align: center;
}
.tablemerki {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.tablemerki .lekal-field {
	flex: 1 1 100px;
}
p.lekal-field {
    display: flex;
    flex-direction: column;
}
section.slidenopadding {
    display: flex;
    padding: 0;
    gap: 30px;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: left;
}
.divonlycenter {
    text-align: center;
}

p.lekal-actions {
    text-align: center;
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: space-evenly;
}
.slideallwid div, .slidenopadding div  {
    flex: 1;
}
.pub-paper {
    margin: 120px 40px 0px 100px;
}
div.paddingtop {
    padding: 100px 0px 0px 0px;
}
div.paddingall {
    padding: 0px 80px 20px 80px;
}
ul.ulline img {
    width: 100%;
    border-radius: 5px;
}
.lekal-svg-wrap svg {
    padding-bottom: 50px;
}
.millimetr {
    background: url(/content/img/page/bg3.jpg);
    margin-right: 30px;
    border-radius: 15px;
    border: 1px dashed var(--acc);
    padding: 20px;
}
section.slidebottom {
    display: flex;
    padding: 8%;
    gap: 30px;
    flex-direction: column;
}
.divcenter {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 90px;
}
ul.colall {
    display: flex;
    list-style: none;
    gap: 50px;
}
.colall li  {
    flex: 1;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}
.colall h3 {
    margin-bottom: 10px;
}
h3 {
    font-size: 20px;
    line-height: 26px;  
    font-weight: 300;
    margin-bottom: 10px;
    color: var(--ink);
}
.headerwhite {
    color: #ffffff;
}
.innerright {
    margin: 30px 60px 30px 60px;
}
.innerleft {
    margin: 30px 60px 30px 60px;
}

.whiteblock {
    background: #ffffff;
    padding: 40px;
    border-radius: 40px;
}
.anonce {
    background: var(--button-gradient);
    padding: 0px;
    border-radius: 40px;
    display: flex;
    justify-content: space-around;
    gap: 40px;
    align-items: center;
    border: 1px dashed #ffffff;
    outline: 4px solid var(--acc);
}
.anoncedark {
    padding: 0px;
    border-radius: 40px;
    display: flex;
    gap: 40px;
    align-items: center;
    border: 1px dashed #ffffff;
    outline: 4px solid #0b0012;
    width: 100%;
    justify-content: space-between;
}
.anoncebottom {
    border-radius: 40px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    border: 1px dashed #ffffff;
    outline: 4px solid #0b0012;
    width: 100%;
    flex-direction: column;
}
.anonceleft {
    background: var(--button-gradient);
    padding: 60px;
    border-radius: 40px;
    display: flex;
    gap: 40px;
    align-items: center;
    border: 1px dashed #ffffff;
    outline: 4px solid var(--acc);
    width: 100%;
}
img.othertop {
    margin-top: -70px;
    z-index: 50;
}
.buttonwhite.button-nowrap {
    margin-right: 40px;
}
.ph-menu a {
	color: var(--ink);
}
nav.ph-menu {
    display: flex;
    flex-direction: row;
    gap: 20px;
}
.lekal-soon-box p {
    margin: 0px;
}
.lekal-soon-box h3 {
    margin: 10px 0px 20px 0px !important;
}
section.se-drop.articles h4 {
    margin: 20px 0px 20px 0px;
}
section.se-drop.articles .lekal-soon-box {
    margin: 40px 0px 40px 0px;
}
/* ===== бургер: на десктопе спит ===== */
.ph-burger { display: none; margin-left: auto; border: 0; background: none; cursor: pointer; }
/* ===== едущая пунктирная полоска под ссылкой ===== */
nav.ph-menu a { position: relative; }
nav.ph-menu a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	border-top: 2px dashed var(--acc);
	transition: width .3s ease;
}
nav.ph-menu a:hover::after { width: 100%; }
/*section.slidecenter > div {
  flex: 1;
}*/
.buttonfiol svg {
  margin-right: 10px;
}
.sectionwidth3 {
    flex: 3;
}
.sectionwidth1 {
    flex: 1;
}
.sectionwidth2 {
    flex: 2;
}
.badge {
  position: absolute;
  bottom: 30px;
  right: 30px;
}
.row2 {
  display: flex;
}

.row2 > div {
  flex: 1;
}
h1, h2, .anoncetitle {
	font-family: "Forum", serif;
	text-transform: uppercase;
	font-weight: 500;
}
h1 {
	font-size: 48px;
	line-height: 58px;
}
h2 {
	font-size:46px;
}
hr.beforeh2 {
	width: 60px;
    height: 2px;
    background: var(--acc);
    border: none;
    margin: 16px 0 0 0;
}
.anoncetitle {
    font-family: "Forum", serif;
	  text-transform: uppercase;
	  font-weight: 500;
    font-size: 30px;
    color: #ffffff;
    line-height: 35px;
}
.padding50 {
    padding: 50px;
}
.padding30 {
    padding: 30px;
}
p.afterh2 {
	font-family: "Forum", serif;
	text-transform: uppercase;
	font-weight: 500;
	font-size: 30px;
	color: var(--acc);
}
.coloracc {
	color: var(--acc);
}
.headerbig {
   font-size: 88px;
	line-height: 92px;
}
.decorative-title .text {
		white-space: normal;
		text-align: center;
        max-width: 80%;
        flex: 0 0 auto; 
        white-space: wrap;
	}
section.lekal-articles h3 {
    margin: 20px 0px;
}

@media (max-width: 768px) {
  .row2 {
    flex-direction: column;
  }
}
.paragragh {
    margin-bottom: 20px;
}

.decorative-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}


.decorative-title .text {
    white-space: wrap;
    padding: 0 10px;
}

.decorative-title .line {
    flex: 1;
    height: 1px;
    position: relative;
    min-width: 60px;  
}

.decorative-title .line.left {
    background: linear-gradient(90deg, transparent, var(--lite));
}

.decorative-title .line.right {
    background: linear-gradient(90deg, var(--lite), transparent);
}
section.lekal-merka-help {
    margin: 20px 0px 20px 0px;
}

/* Ромбики: только когда на обёртке оба класса */
.decorative-title.stars .line.left::after {
    content: '✦';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lite);
    font-size: 20px;
}
.decorative-title.stars .line.right::before {
    content: '✦';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lite);
    font-size: 20px;
}
ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    line-height: 26px;
}

ul li::before {
    content: '✦';
    position: absolute;  
    left: 0;
    top: 0;
    line-height: 25px; 
    color: var(--lite);
    font-size: 15px;    
}
.module-num {
    width: 45px;
    height: 45px;
    background: var(--acc-d);
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;  
    font-family: "Forum", serif;
    color: #ffffff;
    font-size: 25px;
    line-height: 30px;
    outline: 2px dashed var(--acc-d);
}
.module-numinner {
    width: 40px;
    height: 40px;
    background: var(--acc-d);
    outline: 2px dashed var(--acc-d);
    margin-top: -40px;
    position: relative;
    z-index: auto;
    box-shadow: 0 0 0 6px #f6f0e7;
}
.timeline-line {
    position: absolute;
    left: 20px;
    top: 100px;
    height: 300px;
    width: 30px;
}
.kursright .module-num {
    right: -30px;
    top: 20%;
}
.kursleft .module-num {
    left: -30px;
    top: 60%;
}
.imgcircle {
    background-size: cover;
	  background-position: center right;
	  background-repeat: no-repeat;
    border-radius: 12px;
    position: relative;
    padding: 0;
    margin: 0;
}
.imgimg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    position: relative;
    min-height: 90px; 
}
.kurstwo {
    display: flex;
    width: 100%;
    gap: 50px;
    align-items: center;
    padding: 0px 60px 0px 80px;
}
.kurstwo div {
    flex: 1;
}

/*выкройки*/
/* ====== ВЫКРОЙКИ: общий движок для всех слайдов ====== */
.pattern-draw svg {
	display: block;
	width: 100%;
	height: auto;
	opacity: 0;
	transition: opacity .3s ease;
}
.pattern-draw .fade-group { opacity: 0; }
.pattern-draw .draw-path { stroke-dasharray: 1; stroke-dashoffset: 1; }

.pattern-draw.kroy-go svg { opacity: 1; }
.pattern-draw.kroy-go .fade-group { animation: kroyFadeIn 1.6s ease forwards; }
.pattern-draw.kroy-go .draw-path { animation: kroyDrawLine 4s ease forwards; }

@keyframes kroyFadeIn { to { opacity: 1; } }
@keyframes kroyDrawLine { to { stroke-dashoffset: 0; } }

/* платье — slide5: узкая колонна, прижата к низу */
.slide--5 .pattern-draw {
	width: 208px;
	max-width: 100%;
	align-self: flex-end;
	margin: 0 auto 20px;
}
.slide--5 .pattern-draw svg { max-height: 730px; }

/* юбка — slide6: широкая, 538px = высота 730 при пропорции 375.1:509.2 */
/* юбка — slide6: 479px ширины = 650px высоты при пропорции 375.1:509.2 */
.slide--6 .pattern-draw {
	width: 479px;
	max-width: 100%;
  align-self: flex-end;
	margin: 0 auto 20px;
}
.slide--6 .pattern-draw svg { max-height: 650px; }

.lekal-req-note { font-size: 13px; color: #666; line-height: 22px;}
.lekal-svg { width: 100%; height: auto; max-height: 500px; display: block; }
.lekal-svg path, .lekal-svg rect {
	fill: none; 
	stroke-dashoffset: 1;
	animation: lekal-svg 2.5s ease forwards;
}
.lekal-svg rect { animation-delay: 1.2s; }
.lekal-svg text { fill: #444; stroke: none; }
.lekal-notes { margin: 18px 0; }
.lekal-svg .lekal-cut  { stroke:#000000; stroke-width:0.5; stroke-dasharray:16 12; animation:none; }
.lekal-svg .lekal-fold { stroke:#888; stroke-width:2; stroke-dasharray:20 12; }
.lekal-svg .lekal-grain { stroke-width:1; }
.lekal-svg path.lekal-cut {
    stroke-dasharray: 15 5 !important; 
}
svg.lekal-svg.old path, svg.lekal-svg.old rect {
        stroke: #000000;
}
@keyframes lekal-svg { to { stroke-dashoffset: 0; } }

.articlecard {
    border: 1px dashed var(--acc-d);
    padding: 15px 15px 25px 15px;
    border-radius: 5px;
}
.articlecard img {
    width: 100%;
    border-radius: 5px;
}
.articlecard h3 {
    font-weight: 400;
    font-size: 20px;
    line-height: 26px;
    margin-top: 20px;
    font-family: "Google Sans", sans-serif;
    text-transform: none;
}

.cardmodels {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin: 0px 0px 0px 0px;
}
.cardmodelsblock {
    margin: 0px 0px 70px 0px;
}
.cardmodel {
    border: 1px dashed var(--acc-d);
    padding: 15px 15px 25px 15px;
    border-radius: 5px; 
    max-width: 300px;
}
.cardmodel img 
    { 
        width: 100%; border-radius: 5px;   
    }
.cardmodelimg {
    border: 1px dashed var(--acc-d);
    padding: 5px 5px 0px 5px;
    border-radius: 5px;
}
.cardmodel h3, h2.min {
    font-weight: 400;
    font-size: 20px;
    line-height: 26px;
    margin-top: 10px;
    font-family: "Google Sans", sans-serif;
    text-transform: none;
    margin-top: 20px;
    color: var(--ink);
}
strong, b {
    font-weight: 600 !important;
}
h2.min {
    text-decoration: underline dashed 2px var(--acc-d);
    text-underline-offset: 6px;
    margin-bottom: 10px;
    font-size: 17px;
    line-height: 22px;
}
.lekal-merka-help {
    border: 1px dashed var(--acc);
    padding: 30px 50px;
    border-radius: 15px;
}
.cutline { display: flex; align-items: center; gap: 12px; margin: 10px 0; color: var(--acc); }
.cutline-line { flex: 1 1 auto; height: 0; border-top: 1px dashed var(--acc); }
.cutline-scissors { flex: 0 0 auto; width: 20px; height: 20px; }
.cutline-scissors.flip { transform: scaleX(-1); }
img.svgmodel {
    max-height: 300px;
    position: absolute;
    top: 100px;
    right: 40%;
}
.cardmodel-short {
    font-size: 15px;
    line-height: 20px;
    margin-bottom: 20px;
}
.lekal-q {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 15px; height: 15px;
	margin-left: 6px;
	border-radius: 50%;
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
	vertical-align: middle;
    background: var(--acc-d);
    color: var(--soft);
    border: 1px dashed var(--soft);
    outline: 2px solid var(--acc-d);
    margin-top: -10px;
}
.lekal-q-tip {
	position: absolute;
	left: -12px;
	top: calc(100% + 12px);
	transform: none;
	white-space: normal;
	width: 230px;
	max-width: calc(100vw - 30px);
	background: var(--acc-d);
	border: 1px dashed var(--soft);
	border-radius: 8px;
	padding: 8px 10px;
	color: var(--soft);
	font-size: 13px;
	line-height: 18px;
	text-align: left;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease;
	pointer-events: none;
	z-index: 30;
	outline: 4px solid var(--acc-d);
}
.lekal-q-tip::after {
	content: '';
	position: absolute;
	bottom: calc(100% + 4px);
	left: 18px;
	transform: none;
	border: 8px solid transparent;
	border-bottom-color: var(--acc-d);
}
.lekal-q.is-open .lekal-q-tip {
	opacity: 1;
	visibility: visible;
}
input[type="number"], select.lekal-select-form {
    border: 1px dashed var(--acc);
    border-radius: 5px;
    padding: 10px 10px;
    margin-bottom: 10px;
    outline: 2px solid #ffffff;
    font-family: "Google Sans", sans-serif;
    color: #757575;
}

.lekal-help {
    margin-top: 20px;
}
.lekal-nowrap {
	white-space: nowrap;
}
.lekal-inputwrap {
	position: relative;
	display: block;
}
.lekal-inputwrap input, select.lekal-select-form {
	width: 100%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    font-size: 14px;
}
.imgbigmodel.mimg img {
    max-height: 800px;
}
.imgbigmodel.mimg {
    text-align: right;
}
.lekal-inputwrap input {
	display: block;
	margin-bottom: 10px;
    max-width: 150px;
}
.lekal-inputwrap {
	margin-bottom: 10px;
}
.lekal-ph {
	position: absolute;
	left: 11px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--lite);
	pointer-events: none;
	transition: opacity .25s ease;
}
.lekal-inputwrap input:focus ~ .lekal-ph,
.lekal-inputwrap input:not(:placeholder-shown) ~ .lekal-ph {
	opacity: 0;
}
div.rubnext {
	align-self: center;
	flex: 0 0 auto;
}
.rubnext svg {
	display: block;
	height: 170px;
	width: auto;
	color: var(--acc-d);
}
.pf-text, .pf-copy {
    font-size: 15px;
    line-height: 26px;
}
.pub-text h2 {
        font-size: 28px;
        line-height: 36px;
        margin-top: 20px;
    }
.ck-bar {
	position: fixed;
	left: 20px;
	bottom: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
	padding: 14px 20px;
	background: var(--soft);
	border-top: 1px dashed var(--acc);
	box-shadow: 0 -6px 24px rgba(0, 0, 0, .18);
}
.ck-bar p {
	font-size: 13px;
	line-height: 20px;
	max-width: 820px;
	margin: 0;
}
.lekal-merka-img {
	max-height: 250px;
    width: auto;
    height: 100%;
	margin: 10px 0 4px;
	background: #ffffff;
	border: 1px dashed var(--acc);
	outline: 4px solid var(--soft);
	border-radius: 10px;
	padding: 10px;
}
/* === всплывающие баннеры === */
.ban-pop { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(42, 36, 30, .45); }
.ban-pop[hidden] { display: none; }
.ban-card { position: relative; max-width: 430px; width: 100%; max-height: 90vh; overflow: auto; background: var(--soft); border: 1px dashed var(--acc); outline: 6px solid var(--soft); border-radius: 14px; padding: 28px 26px 20px; text-align: center; box-shadow: 0 12px 44px rgba(0, 0, 0, .3); }
.ban-close { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 16px; cursor: pointer; color: var(--lite); }
.ban-img { max-width: 100%; max-height: 220px; object-fit: contain; margin-bottom: 12px; }
.ban-title { font-family: "Forum", serif; font-size: 32px; line-height: 30px; margin-bottom: 8px; text-transform: uppercases;}
.ban-text { font-size: 14px; line-height: 21px; margin-bottom: 12px; }
.ban-video { aspect-ratio: 16 / 9; margin-bottom: 12px; }
.ban-video iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; }
.ban-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; }
.ban-arr { border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--acc-d); }
.ban-dots { display: inline-flex; gap: 6px; }
.ban-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--lite); opacity: .4; cursor: pointer; }
.ban-dots i.on { opacity: 1; background: var(--acc-d); }
/* баннер-попап — универсальный, под любого рекламодателя */
.ban-custom { text-align: left; }
.ban-custom .ban-tag { display: inline-block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--acc-d); border: 1px dashed var(--acc); border-radius: 999px; padding: 3px 12px; margin-bottom: 12px; }
.ban-custom h3 { font-family: "Forum", serif; font-size: 26px; line-height: 32px; margin-bottom: 8px; }
.ban-custom p { font-size: 14px; line-height: 21px; margin-bottom: 10px; }
.ban-custom .ban-note { font-size: 11px; opacity: .65; margin: 12px 0 0; }
.ban-late { opacity: 0; transition: opacity .4s; pointer-events: none; }
.ban-slide.revealed .ban-late { opacity: 1; pointer-events: auto; }
/* страница листов А4: превью в сетке, наш дизайн */
.a4grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 20px 0;
}

.a4grid > div {
   /* flex: 1 1 calc((100% - 14px * 5) / 6); */
    flex: 0 1 150px; 
}
.a4grid.size220 > div {
    flex: 0 1 220px;  
    border: 1px dashed var(--acc-d);
    padding: 15px;
    border-radius: 5px;
}
.a4grid.size220 img.svgmin {
    max-width: 100px;
}
.a4grid.size220 h3 {
    margin: 10px 0px;
    font-size: 17px;
    line-height: 24px;
}
.a4grid.size220 p {
    margin-bottom: 0px;
}
.a4grid.size220 .cardmodelimg {
    width: 100%;
    overflow: hidden;
}

.a4grid.size220 .cardmodelimg img,
.a4grid.size220 .imgpodzap {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; 
    border-radius: 5px;
    margin-bottom: 5px;
}
.birka .a4grid.size220 .lekal-chip {
    margin-left: -15px;
}
.lekal-merka-text li, p {
    margin-bottom: 4px;
}
.a4prev { position: relative; width: 100%; aspect-ratio: 210 / 297; border: 1px dashed var(--acc); background: #fff; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.08); border-radius: 4px; }
.a4prev svg { display: block; width: 100%; height: 100%; }
.a4prev svg path { fill: none; stroke: var(--ink); stroke-width: 1; }
.a4prev svg .lekal-cut { stroke: var(--acc); stroke-width: 1; stroke-dasharray: 8 6; }
.a4prev svg .lekal-fold { stroke: var(--lite); stroke-width: .6; stroke-dasharray: 10 6; }
.a4prev svg .lekal-grain { stroke: var(--ink); stroke-width: .6; }
.a4prev svg rect { fill: none; stroke: var(--ink); stroke-width: 1; }
.a4prev svg rect[stroke] { stroke: var(--lite); stroke-width: .5; stroke-dasharray: 4 3; }
.a4num { position: absolute; right: 6px; bottom: 2px; font-size: 11px; color: var(--lite); background: rgba(255,255,255,.7); padding: 0 4px; border-radius: 3px; }
/* погашенная кнопка платной функции */
.buttonfaded { opacity: .45; cursor: not-allowed; }
.buttonfaded:hover { opacity: .45; }
.grid-2 {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    padding: 0;
}

.grid-2 > div {
    flex: 0 0 calc(50% - 25px);
    box-sizing: border-box;
}
.grid-2 > :last-child:nth-child(odd) {
    flex: 0 0 100%;
}
.lekal-merka-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 0 20px 0;
}
.lekal-merka-help li, .lekal-merka-help p {
    line-height: 24px;
}
/* Только на компьютерах — картинка слева, текст обтекает справа */

@media (min-width: 768px) {
    .lekal-merka-img {
        float: left;
        margin: 0 25px 15px 0; 
        max-width: 45%; 
    }
    
    .lekal-merka-help::after {
        content: "";
        display: table;
        clear: both;
    }
}

@media (max-width: 768px) {
    .grid-2 {
        gap: 30px;
    }
    .grid-2 > div {
        flex: 0 0 100%;
    }
    .lekal-sign {
        font-size: 10px;
    }
    .lekal-merka-help {
        border: 1px dashed var(--acc);
        padding: 20px 20px;
        border-radius: 10px;
    }
    article.flexboxarticletree {
        flex-direction: column;
    }
    section.slideallwid.hometop {
        padding-top: 140px;
    }
    .tablemerki .lekal-field {
        flex: 1 1 150px;
    }
}
.pf-in {
    display: flex;
    gap: 80px;
}
.module-numinner svg {
    fill: var(--bg);
    max-width: 90%;
}
/* Подписи точек на выкройке */
.lekal-point-label {
	font-size: 12px;   
	fill: #888; 
	pointer-events: none; 
	user-select: none; 
}

  /* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */
  @media (max-width: 768px) {
    .header {
      height: 56px;
      padding: 0 16px;
      gap: 16px;
    }
    .kurstwo {
        display: block;
        width: 100%;
        padding: 0px 20px 0px 20px;
    }
    .pf-in {
        display: block;
    }
    .header__menu {
      gap: 12px;
    }
    .flexboxspace-betweencenter, .flexboxspace-betweenbottom {
        display: block;
        margin-bottom: 20px;
    }
    .sidebar {
      top: auto;
      bottom: 0;
      left: 10px;
      right: 0;
      width: 100%;
      height: 56px;
      flex-direction: row;
      justify-content: center;
      padding: 8px 16px;
      border-right: none;
      border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .sidebar__btn {
      width: 36px;
      height: 36px;
    }

    .main {
      margin-bottom: 56px;
    }
    div.paddingall {
        padding: 0px 20px 20px 20px;
    }
    .cardmodels {
        flex-direction: column;
        gap: 30px;
        margin: 40px 0px 0px 0px;
    }
    h1 {
        font-size: 34px;
        line-height: 45px;
        margin-bottom: 40px;
    }
    h2 {
        font-size: 36px;
        line-height: 46px;
    }
    .cardmodelsblock {
        margin: 40px 0px 40px 0px;
    }
    p.nomobile {
        display: none;
    }
    nav.pf-legal {
        margin-bottom: 20px;
    }
    section.slideallwid {
        display: flex;
		flex-direction: column;
    }
    .lekalmodelshow {
        order: -1; 
        margin: 120px 10px 10px 10px; 
        width: calc(100% - 20px) !important; 
        box-sizing: border-box;
    }

    .resultmodel {
        order: 0; 
    }
    div.imgbigmodel.mimg {
		order: -1;
		display: flex;
		justify-content: flex-end;
	}
    section.slideallwid.contact {
        align-items: flex-start;
    }
    section.slidecenter {
        display: block;
    }
    p.lekal-actions {
        flex-direction: column;
        align-items: center;
    }
    div.paddingtop {
        padding: 0px 0px 0px 0px;
        width: 100%;
    }
    .millimetr {
      margin: 0px;
      margin-right: 0px;
    }
    ul.ulline {
        display: block;
        margin-bottom: 30px;
    }
    .articlecard, ul.ulline li 
    {
        margin-bottom: 30px;
    }
    .marginright100 {
        margin-right: 0px;
    }
	.decorative-title {
		gap: 10px;
		padding: 0px;
	}
	.decorative-title .text {
		white-space: normal;
		text-align: center;
        max-width: 80%;
        flex: 0 0 auto;  
	}
	.decorative-title .line {
		min-width: 20px;
	}
	.decorative-title .cutline-scissors {
		width: 20px;
		height: 20px;
	}
	.decorative-title h2 {
		font-size: 26px;
		line-height: 32px;
	}
    .margintop50 {
        margin-top: 20px;
    }
    aside.sidebar {
        display: none;
    }
    .pub-paper {
        margin: 180px 20px 20px 20px;
    }
    .pub-paper h1 {
        font-size: 30px;
        line-height: 45px;
    }
    .a4grid.size220 > div {
        flex: 0 1 100%;
    }
    img.toplogoimg {
        width: 50px;
    }
    .cardmodel h3, h2.min, .pub-text h2 {
        font-size: 24px;
        line-height: 28px;
        margin-top: 20px;
    }
    footer.pf {
        padding: 20px 30px 40px 30px;
    }
    .pf-logo {
        padding-bottom: 30px;
    }
    .header__logo {
        margin-top: 25px;
    }
    .lekal-q-tip { left: auto; right: 0; }
    div.imgbigmodel.mimg {
		display: flex;
		justify-content: flex-end;
	}

	div.imgbigmodel.mimg > img {
		width: 25%;
		min-width: 100px;
		height: auto;
		border-radius: 0px 0px 0px 10px;
	}
	div.imgbigmodel.mimg .svgmodelmill {
		display: none;
	}
    div.paddingall.mform {
        padding: 0px 20px 0px 20px; 
    }
    section.lekal-merka-help {
        display: block;
    }
    .lekal-text h2, h2.divonlycenter {
        font-size: 30px;
        line-height: 38px;
    }
    .flex-3, .flex-5 { 
        display: block;
    }
    .contact h2 {
        margin-bottom: 40px;
        font-size: 35px;
    }
    flexboxcentery {
        display: block;
    }
    article.flexboxarticle {
        display: block;
    }
    section.se-drop {
        padding: 70px 20px 0px 20px;
    }
}
/* ===== МОБИЛЬНОЕ МЕНЮ: бургер + выпадашка ===== */
@media (max-width: 768px) {
	.ph-burger {
		display: flex;
		flex-direction: column;
		gap: 4px;
		padding: 8px;
	}
	.ph-burger span {
		width: 22px;
		height: 2px;
		border-radius: 2px;
		background: var(--ink);
	}
	nav.ph-menu {
		display: none;
		position: absolute;
		top: 60px;
		right: 16px;
		max-width: 220px;
		flex-direction: column;
		gap: 2px;
		background: var(--soft);
		border: 1px dashed var(--acc);
		outline: 4px solid var(--bg);
		box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
		padding: 8px 16px 14px;
		z-index: 50;
	}
	nav.ph-menu.open { display: flex; }
	nav.ph-menu.open a { padding: 11px 4px; }
	.onlyhead .pl-top { display: none; }
}
/* ===== Статус 2: калькулятор в разработке ===== */
.lekal-form-disabled input[type="number"],
.lekal-form-disabled input[type="text"] {
    background: var(--bg);
    color: var(--lite);
    cursor: not-allowed;
    opacity: .65;
}
.lekal-form-disabled .lekal-consent label {
    opacity: .65;
    cursor: not-allowed;
}
.lekal-soon-box, .attention {
    border: 2px dashed var(--acc);
    border-radius: 10px;
    padding: 26px 20px;
    margin: 20px 0;
    background: var(--soft);
    text-align: center;
}
.lekal-soon-box p {
    font-size: 16px;
    line-height: 26px;
    margin: 0;
    color: var(--ink);
}
/* ===== шоу перед чертежом: миллиметровка «думает» ===== */
.millimetr { position: relative; }
.millimetr.lekal-hold {
	background: linear-gradient(rgba(255, 255, 255, .35), rgba(255, 255, 255, .35)), url(/content/img/page/bg3.jpg);
    padding: 20px;
}
.millimetr.lekal-hold .lekal-svg { visibility: hidden; }
.millimetr.lekal-hold .lekal-svg path,
.millimetr.lekal-hold .lekal-svg rect { animation-play-state: paused; }
.millimetr + div { transition: opacity .6s ease; }
/* ===== кнопки ждут конца отрисовки ===== */
.lekal-actionsbox{transition:opacity .4s ease; margin-right: 30px;}
.millimetr:not(.lekal-done) ~ .lekal-actionsbox{opacity:0;pointer-events:none}

.lekal-show {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	pointer-events: none;
}
.lekal-show-content {
	display: flex; flex-direction: column; align-items: center; gap: 12px;
	transition: opacity .3s ease;
    justify-content: center;
    text-align: center; 
}
.lekal-show-content.off { opacity: 0; }

.lekal-show-icon {
	font-size: 48px;
	color: var(--acc-d);
	line-height: 1;
}

.lekal-show-text {
	font-size: 18px;
	line-height: 24px;
	color: var(--ink);
	letter-spacing: 0.03em;
}

.lekal-show-dots {
	display: flex; gap: 8px; margin-top: 4px;
}
.lekal-show-dots span {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--acc-d);
	opacity: 0.3;
	animation: lekal-dot-pulse 1.2s ease-in-out infinite;
}
.lekal-show-dots span:nth-child(2) { animation-delay: 0.2s; }
.lekal-show-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes lekal-dot-pulse {
	0%, 100% { opacity: 0.3; transform: scale(1); }
	50% { opacity: 1; transform: scale(1.3); }
}

@media (max-width: 768px) {
	.lekal-show-icon { font-size: 36px; }
	.lekal-show-text { font-size: 15px; line-height: 20px; }
	.lekal-show-dots span { width: 6px; height: 6px; }
}

/* SEO-текст модели: во всю ширину под блоком с формой и фото */
.lekal-seo-wide, .lekal-articles { padding: 20px 60px 20px 80px; }
.lekal-seo-wide h2 {margin: 20px 0px 20px 0px;}

@media (max-width: 768px) {
	.lekal-seo-wide { padding: 40px 20px 20px; }
}
/* ===== страница отзывов ===== */
.lekal-rev-stars { color: var(--acc-d); }
.lekal-rev { border: 1px dashed var(--acc);  border-radius: 10px; padding: 18px 22px; margin: 0 0 18px;  }
/* ===== пагинация отзывов ===== */
.lekal-pager { display:flex; flex-wrap:wrap; gap:8px; margin:28px 0 0; }
.lekal-pager a, .lekal-pager span { border:1px dashed var(--acc); border-radius:8px; padding:6px 12px; color:var(--acc-d); font-size:14px; }
.lekal-pager span.on { background:var(--acc); color:#fff; border-style:solid; }

p.lekal-rev-avg {
    margin: 20px 0px 30px 0px;
}
/* ===== цены и пояснения на витрине ===== */
.cardmodel-price {
    margin: 0px;
    font: 600 18px sans-serif;
    text-transform: uppercase;
    font-family: 'Forum';
    letter-spacing: 1px;
    color: var(--acc);
    border-radius: 5px;
    text-decoration: underline dashed 2px var(--acc-d);
    text-underline-offset: 6px;
}
.cardmodel-price.pay{color:var(--acc)}
.lekal-price{margin:0 0 0px;font:14px/1.4 sans-serif;color:var(--acc-d)}
.lekal-price.pay{color:var(--acc)}
.lekal-note{margin:10px 0 0;font:13px/1.4 sans-serif;color:var(--lite);opacity:.8}
/* ===== подпись чертежа: пишется слева направо, кнопки ждут её ===== */
.millimetr{position:relative}

/* ===== подпись чертежа: управляется inline-стилями из PHP ===== */
.lekal-sign {
    position: absolute;
    left: 28px;
    bottom: 16px;
    font: 10px/1 Google Sans, serif;
    color: var(--litetext, #918a8a);
    pointer-events: none;
}

.lekal-sign span {
    display: block;
    clip-path: inset(0 100% 0 0);
    /* Задержка теперь берется из inline-стиля (Шаг 2), здесь только сама анимация */
    animation: lekal-write 1.1s ease-out forwards;
    animation-play-state: paused; /* Держим на паузе, пока JS не разрешит */
}

@keyframes lekal-write {
    to { clip-path: inset(0 0 0 0); }
}

/* Если JS держит класс lekal-hold, анимация гарантированно стоит */
.millimetr.lekal-hold .lekal-sign span {
    animation-play-state: paused !important;

}
/* ===== кружочки-ожидание на месте кнопок ===== */
.lekal-wait{display:flex;gap:8px;align-items:center;height:46px;margin:14px 0 0}
.lekal-wait i{width:10px;height:10px;border-radius:50%;background:#668b72;animation:lekal-waitjump 1s ease-in-out infinite}
.lekal-wait i:nth-child(2){animation-delay:.15s;background:#b68366}
.lekal-wait i:nth-child(3){animation-delay:.3s}
@keyframes lekal-waitjump{0%,100%{transform:translateY(0);opacity:.4}50%{transform:translateY(-6px);opacity:1}}
.millimetr.lekal-done ~ .lekal-wait{display:none}
/* ===== лист-замок на странице А4 ===== */
.a4prev-lock{background:var(--soft);border-style:solid;border-color:var(--acc);display:flex;align-items:center;justify-content:center}
.a4prev-lock svg{width:100%;height:100%}
.a4prev-lock .a4num{background:var(--acc);color:#fff}
.lekal-chip{display:inline-block;font:12px/1.4 sans-serif;color:var(--acc-d);border:1px dashed var(--acc-d);border-radius:999px;padding:2px 10px;margin:6px 0 0}
.lekal-chip a{color:var(--acc-d)}

.flexboxarticle h3 {display:inline-block; color:var(--acc-d);border:1px dashed var(--acc-d);border-radius:999px;padding:6px 20px;margin:20px 0 20px 0; }


/* Скрываем мобильную версию на десктопе */
.table-mobile {
    display: none;
}

/* Показываем таблицу на десктопе */
.table-desktop {
    display: block;
    overflow-x: auto; /* Горизонтальный скролл если нужно */
}
ul.yourmerki {
    display: flex;
    flex-wrap: wrap;
}
ul.yourmerki li {
    margin-right: 20px;
    padding-left: 15px;
}
ul.yourmerki li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 0;
    line-height: 20px;
    color: var(--lite);
    font-size: 10px;
}
h1.lekal-h1 {
    margin-bottom: 30px;
}
p.lekal-req-note {
    margin: 0px;
    padding: 0px;
}
/* На мобильных (до 768px) */
@media (max-width: 768px) {
    .table-desktop {
        display: none;
    }
    
    .table-mobile {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .card {
        background: #f5f5f5;
        padding: 16px;
        border-radius: 8px;
        border-left: 4px solid var(--acc-d);
    }
    .lekal-sign {
        position: absolute;
        left: 12px;
        bottom: 10px;
    }
    .lekal-svg-wrap svg {
        padding-bottom: 70px;
    }
    .card h3 {
        margin-top: 0;
        margin-bottom: 12px;
        color: #333;
    }
    
    .card-row {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid #ddd;
    }
    
    .card-row:last-child {
        border-bottom: none;
    }
    
    .label {
        font-weight: 600;
        color: #666;
    }
    
    .value {
        color: #333;
        text-align: right;
    }
    .table-mobile {
        margin-top: 40px;
    }
    .cardmodel {
        max-width: 400px;
    }
    .lekal-seo-wide, .lekal-articles {
        padding: 20px 20px 20px 20px;
    }
}

/* ===== Showcase трёх выкроек на главной ===== */
.patterns-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    height: 480px;
    padding: 40px 5%;
}
.patterns-showcase .pattern-draw {
    height: 100%;
}
.patterns-showcase .pattern-draw svg {
    height: 100%;
    width: auto;
}
.measurements-span {
    display: block;           /* или inline-block */
    word-wrap: break-word;     /* перенос длинных слов */
    word-break: break-word;   /* принудительный перенос, если слово очень длинное */
    max-width: 100%;          /* не вылезать за родителя */
    box-sizing: border-box;   /* чтобы padding не увеличивал ширину */
}


@media (max-width: 768px) {
    .patterns-showcase {
        gap: 30px;
        padding: 0px;
    }
    .patterns-showcase .pattern-draw {
        height: 280px;
    }
}
.articles h3, .articles h2 {
    margin: 30px 0px;
}
.articles h3 {
    font-weight: 600;
}
.articles p {
    margin-bottom: 10px;
}
@keyframes kroyFadeInLabel {
    to { opacity: 0.25; }
}
.lekal-detail-label {
        font-size: 16px;
        font-weight: bold;
        fill: #000;
        opacity: 0.25;
        letter-spacing: 1px;
        font-family: "Google Sans", sans-serif;
    }
@media print {
    .lekal-detail-label {
        font-size: 16px;
        opacity: 0.5;
    }
}
article.flexboxarticletree h3 {
    margin-top: 0px;
}
.article-header-new {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.article-header-image {
    flex-shrink: 0;
    max-width: 250px;
}

.article-header-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.article-header-content {
    flex: 1;
    min-width: 0;
    margin-top: auto; /* прижимает текст к низу */
}
.article-header-content h1 {
        margin-top: 20px;
    }
h1.hmin {
    font-size: 31px;
    line-height: 40px;
    letter-spacing: -1px;
}
.lekal-field label {
    line-height: 20px;
}
/* Мобильная версия */
@media (max-width: 768px) {
    .article-header-new {
        flex-direction: column;
    }
    
    .article-header-image {
        max-width: 100%;
    }
    
    .article-header-content {
        margin-top: 20px; /* на мобильных просто отступ */
    }
    nav.lekal-crumbs {
        font-size: 13px;
        line-height: 17px;
        margin-top: 50px;
    }
    nav.lekal-crumbs a {
        font-size: 13px;
        line-height: 17px;
    }
    .article-header-content h1 {
        margin-bottom: 0px;
    }
    .paddingall.resultmodel {
        margin-top: 80px;
    }
}
/* ===== Умная сетка для новых карточек моделей ===== */
.cardmodels-grid {
    flex-wrap: wrap; /* Разрешаем перенос карточек на новую строку */
}
.cardmodels-grid .cardmodel {
    max-width: 100%; /* Снимаем старое ограничение в 300px, чтобы карточка тянулась */
    flex: 1 1 calc(25% - 23px); /* По умолчанию 4 колонки (с учетом gap: 30px) */
}

/* Динамические колонки (управляется из PHP) */
.cardmodels-cols-2 .cardmodel { flex: 1 1 calc(50% - 15px); }
.cardmodels-cols-3 .cardmodel { flex: 1 1 calc(33.333% - 20px); }
.cardmodels-cols-4 .cardmodel { flex: 1 1 calc(25% - 23px); }
/* Добавляем поддержку 5 и 6 колонок */
.cardmodels-cols-5 .cardmodel { flex: 1 1 calc(20% - 24px); }
.cardmodels-cols-6 .cardmodel { flex: 1 1 calc(16.666% - 25px); }

/* Мобильная адаптация: всегда 1 колонка, чтобы было удобно читать */
@media (max-width: 768px) {
    .cardmodels-grid .cardmodel {
        flex: 1 1 100%; 
        max-width: 100%;
    }
}
/* Прибиваем кнопки к низу карточки в сетке */
.cardmodels-grid .cardmodel {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 100%; /* Снимаем старое ограничение 300px */
}

.cardmodels-grid .cardmodel h3 {
    margin-top: 10px;
    margin-bottom: 10px;
    min-height: 52px; /* Выравниваем заголовки по высоте (2 строки) */
}

.cardmodels-grid .cardmodel-short {
    flex: 1; /* Описание растягивается и занимает всё свободное место */
}

.cardmodels-grid .cardmodel-buy {
    margin-top: auto; /* Кнопки всегда внизу */
    padding-top: 15px;
}
/* Овечки: одинаковая толщина линий независимо от масштаба */
.sheep-group {
    vector-effect: non-scaling-stroke;
}    
.a4prev .sheep-group path {
   stroke-width: revert-layer;
}
a.lekal-vid-manual-ext {
    font-size: 12px;
}
.cardmodel-buy.flexboxspace-between a {
    min-width: 130px;
}
/* ===== АДАПТИВНАЯ СЕТКА КАРТОЧЕК ===== */

/* Планшет ГОРИЗОНТАЛЬНО (ландшафт): 1025px - 1200px */
@media (min-width: 1025px) and (max-width: 1200px) {
    .cardmodels-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    /* Отменяем классы PHP для этого диапазона */
    .cardmodels-grid[class*="cardmodels-cols-"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Планшет ВЕРТИКАЛЬНО (портрет): 768px - 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    .cardmodels-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    /* Отменяем классы PHP для этого диапазона */
    .cardmodels-grid[class*="cardmodels-cols-"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Мобильные: до 767px */
@media (max-width: 767px) {
    .cardmodels-grid {
        grid-template-columns: 1fr !important;
    }
    .cardmodels-grid[class*="cardmodels-cols-"] {
        grid-template-columns: 1fr !important;
    }
}