/* Shared responsive presentation. Desktop branding and product data are retained. */
[hidden] {display:none !important;}
.page {box-sizing:border-box;width:100%;max-width:1200px;}
.company-home {color:inherit;text-decoration:none;}
.contacts-more summary,.mobile-menu-toggle,.mobile-nav {display:none;}
.contacts-more {display:block;}
.mobile-tools {display:contents;}
.colors-item img[src$='/graphite.jpg'] {aspect-ratio:4 / 3;object-fit:cover;}
.modal_window a.close {display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:44px;height:44px;padding:0;font:32px/1 Arial,sans-serif;text-decoration:none;border:1px solid #aaa;border-radius:4px;background:#fff;}
.table-scroll-shell {max-width:100%;min-width:0;margin:15px 0;}
.table-scroll {max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;}
.table-scroll > table {margin-top:0;margin-bottom:0;}
.table-scroll-hint {margin:0 0 8px;font-size:13px;text-align:left;color:#535d68;}
.mobile-nav a:focus-visible,.mobile-menu-toggle:focus-visible,.table-scroll:focus-visible,
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {outline:3px solid #e78700;outline-offset:3px;}

@media (max-width:1199px) {
  .page {padding:12px;margin:0 auto;}
  .header {display:flex;flex-direction:column;gap:14px;width:100%;height:auto;padding:18px;box-sizing:border-box;background:#087fa9;overflow:visible;}
  .header-two {display:contents;height:auto;}
  .company-name {position:static;order:0;font-size:clamp(24px,3.6vw,34px);line-height:1.15;overflow-wrap:break-word;}
  .company-name span {display:block;font-size:15px;line-height:1.4;margin-bottom:4px;}
  .company-name br {display:none;}
  .header .ip {position:static;order:1;font-size:14px;line-height:1.4;}
  .company-date {position:static;order:2;font-size:clamp(22px,calc(3.6vw - 2px),32px);line-height:1.25;overflow-wrap:break-word;}
  .header .contacts {position:static;order:3;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;text-align:left;font-size:16px;line-height:1.35;}
  .contacts-city {min-width:0;}
  .contacts-city-name {display:block;font-size:14px;font-weight:normal;}
  .header .contacts br {display:none;}
  .header .contacts a {display:flex;align-items:center;min-height:44px;font-size:15px;white-space:nowrap;}
  .header .contacts > .contacts-city > a {min-height:32px;}
  .contacts-more summary {display:flex;align-items:center;min-height:32px;font-size:14px;font-weight:normal;cursor:pointer;text-decoration:underline;text-underline-offset:3px;}
  .header .messangers {position:static;order:4;display:flex;flex-wrap:wrap;gap:8px 16px;margin:0;font-size:14px;line-height:1.4;overflow:visible;}
  .header .messangers-info {flex-basis:100%;margin:0;font-size:14px;}
  .header .messangers .col {display:flex;align-items:center;float:none;margin:0;min-width:0;gap:6px;}
  .header .messangers span {float:none;margin:0;}
  .messangers a,.messangers2 a {width:44px;height:44px;background-size:30px 30px;background-position:center;background-repeat:no-repeat;box-sizing:border-box;}
  .header .messangers a {float:none;margin:0;}
  .mobile-tools {order:5;display:grid;grid-template-columns:1fr 1fr;gap:12px;}
  .mobile-menu-toggle {display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 12px;font:700 16px/1.3 Arial,sans-serif;border:1px solid white;border-radius:5px;background:white;color:#075778;}
  .mobile-menu-toggle::before {content:'☰';font-size:20px;}
  .header-basket-link {position:static;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;box-sizing:border-box;margin:0;padding:8px 10px;font-size:16px;}
  .header-basket-link::before {content:'';display:block;flex:0 0 20px;width:20px;height:20px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 3h2l2.4 11.2a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.6L21 7H6M10 20a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm8 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 3h2l2.4 11.2a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.6L21 7H6M10 20a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm8 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z'/%3E%3C/svg%3E") center/contain no-repeat;}
  .header a.link-to-main {display:none;}
  .mobile-nav:not([hidden]) {display:block;max-height:70vh;overflow-y:auto;margin:8px 5px;background:#056b9b;border:1px solid #b5d3df;border-radius:8px;}
  .mobile-nav .menu {margin:0;}
  .mobile-nav ul.menu li a {box-sizing:border-box;min-height:44px;padding:12px 16px 12px 40px;font-size:15px;background-position:15px 13px;}
  .mobile-nav a[data-mobile-submenu-toggle] {position:relative;padding-right:44px;}
  .mobile-nav a[data-mobile-submenu-toggle]::after {content:'▾';position:absolute;right:16px;top:50%;font-size:18px;line-height:1;transform:translateY(-50%);transition:transform .15s ease;}
  .mobile-nav a[data-mobile-submenu-toggle][aria-expanded='true']::after {transform:translateY(-50%) rotate(180deg);}
  .mobile-nav ul.menu li ul {margin:0;padding:0 0 8px;}
  .mobile-nav ul.menu li li a {padding:10px 16px 10px 40px;font-size:14px;}
  .mobile-nav ul.menu li li:first-child {background:none;}
  .mobile-nav ul.menu > li > a[aria-current='page'] {color:#fff !important;text-decoration:none;background-color:#1496b8;box-shadow:inset 5px 0 #ffd000;}
  .content {margin:8px 0 0;padding:0;}
  table.cnt-tab {display:block;width:100%;}
  table.cnt-tab > tbody,table.cnt-tab > tbody > tr {display:block;width:100%;}
  table.cnt-tab > tbody > tr > td.left,table.cnt-tab > tbody > tr > td.right {display:block;box-sizing:border-box;width:100%;min-width:0;}
  table.cnt-tab > tbody > tr > td.center {display:none;}
  table.cnt-tab > tbody > tr > td.right {margin-top:16px;}
  table.cnt-tab > tbody > tr > td.right > .blue {display:none;}
  .textpage {padding:16px;min-width:0;overflow-wrap:break-word;}
  .textpage img {max-width:100%;height:auto;}
  .textpage iframe[src*='youtube'],.textpage iframe[src*='youtu.be'] {width:100% !important;max-width:100%;height:auto !important;aspect-ratio:16/9;display:block;}
  .textpage video {max-width:100%;height:auto;}
  .orangeblock {width:auto;height:auto;margin:0;padding:8px;border-radius:0 0 8px 8px;}
  .orangeblock ul {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0;overflow:visible;}
  .orangeblock li {float:none;width:auto;padding:0;min-width:0;}
  .orangeblock li a {box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-height:44px;height:100%;padding:8px;font-size:14px;line-height:1.3;background:linear-gradient(to bottom,#ff9400,#e65b00);}
  .orangeblock li a.green {background:linear-gradient(to bottom,#008b00,#006900);}
  .orangeblock li a:hover {background:linear-gradient(to bottom,#ff8500,#d94e00);}
  .orangeblock li a.green:hover {background:linear-gradient(to bottom,#007c00,#005b00);}
  .footer {margin:0;padding-bottom:0;}
  .copyright {position:static;padding:16px;font-size:14px;overflow-wrap:anywhere;}
  .price-link {margin:24px 0;}
  .manager {padding:16px;}
  .manager .name span {font-size:13px;line-height:1.5;}
  .manager p {line-height:1.5;}
  .manager a[href^='tel:'] {display:inline-flex;align-items:center;min-height:44px;}
  .manager-card {box-sizing:border-box;padding:0 16px 20px;text-align:center;}
  .manager-card .manager {padding:20px 0 0;overflow:visible;}
  .manager-card .manager img {display:block;float:none;margin:0 auto 12px;max-width:100%;height:auto;}
  .manager-card .manager .name {margin-bottom:6px;}
  .manager-card p {text-align:center;}
  .manager-card a[href='/contacts.php'],.manager-card a[href='/contacts_tlt.php'] {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 !important;}
  .manager-card table,.manager-card tbody,.manager-card tr {display:block;width:100%;}
  .manager-card td {display:block;box-sizing:border-box;width:100% !important;padding:0 !important;text-align:center !important;}
  .manager-card td:first-child img {display:block;margin:0 auto 8px;max-width:40px;height:auto;}
  .manager-card .tel a[href^='tel:'] {display:flex;align-items:center;justify-content:center;min-height:44px;font-size:15px;}
  .manager-card .tel br {display:none;}
  .manager-card > div[style*='padding-left'] {padding-left:0 !important;text-align:center;overflow-wrap:anywhere;}
  .vcard .messangers {margin:8px 0;}
  .vcard span[style*='padding-left'] {padding-left:0 !important;}
  .vcard a {overflow-wrap:anywhere;}
  .vcard a[href^='tel:'] {min-height:44px;display:inline-flex;align-items:center;}
  .step_1,.step_2,.step_4 {display:grid;gap:16px;margin:0 0 20px;padding:0;grid-template-columns:repeat(2,minmax(0,1fr));}
  .step_1 .item,.step_2 .item,.step_4 .item {box-sizing:border-box;width:auto;min-width:0;margin:0;padding:16px;}
  .step_4 .item_link {display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0;padding:0;}
  .step_4 .item_link a {box-sizing:border-box;display:flex;justify-content:center;align-items:center;width:auto;min-height:44px;margin:0;padding:8px;}
  .step_1 .item_link a {min-height:44px;box-sizing:border-box;padding:10px 20px;}
  .step_3 {padding:18px;gap:20px;box-sizing:border-box;}
  .step_3 .item_img {width:30%;}
  .step_3 .item_descript {padding:0;width:calc(70% - 20px);min-width:0;}
  .catalogTeplic {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 20px;overflow:visible;}
  .catalogTeplic .item {float:none;box-sizing:border-box;width:auto;min-width:0;margin:0;display:flex;flex-direction:column;}
  .catalogTeplic .item .name,.catalogTeplic .item .descript,.catalogTeplic .item .image {height:auto;}
  .catalogTeplic .item .label {position:static;text-align:right;}
  .catalogTeplic .item .name:after {display:none;}
  .catalogTeplic .item .link {margin-top:auto;padding-top:12px;}
  .catalogTeplic .item .link a,.buttonBuyItem,.big_green_button,.yarkaya {box-sizing:border-box;min-height:44px;padding-top:10px;padding-bottom:10px;}
  .catalogTeplic .item .link a {display:inline-flex;align-items:center;justify-content:center;min-width:136px;max-width:100%;padding:10px 20px;line-height:1.3;background:linear-gradient(to bottom,#008b00,#006900);text-decoration:none;}
  .catalogTeplic .item .link a:hover {background:linear-gradient(to bottom,#007c00,#005b00);text-decoration:none;}
  .org_catalog_item {gap:16px;}
  .org_catalog_item_img {width:35%;}
  .org_catalog_item_text {width:calc(65% - 16px);min-width:0;}
  .org_catalog_item_img img {max-width:100%;height:auto;}
  table.main_catalog,table.main_catalog > tbody {display:block;width:100%;}
  table.main_catalog > tbody > tr {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
  table.main_catalog > tbody > tr > td {box-sizing:border-box;display:block;width:auto;padding:12px 0 24px;min-width:0;}
  .table-scroll table.price {min-width:640px;}
  .quick_links {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 20px;}
  .quick_links a {display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:auto;min-height:44px;margin:0;padding:8px;font-size:16px;}
  .TeplicaDescriptGallery {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;overflow:visible;}
  .TeplicaDescriptGallery img {float:none;width:100%;height:auto;margin:0;}
  .colors {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;}
  .colors-item {width:auto;margin:0;min-width:0;}
  .colors-item img {box-sizing:border-box;width:100%;}
  .four-picture-line {display:flex;flex-wrap:wrap;gap:10px;margin:0;}
  .four-picture-line img {max-width:calc(50% - 10px);height:auto;margin:0;}
  .tepl-gallery {display:flex;gap:12px;flex-wrap:wrap;}
  .tepl-gallery a {float:none;box-sizing:border-box;max-width:100%;margin:0;}
}

@media (max-width:900px) {
  .catalogTeplic,table.main_catalog > tbody > tr {grid-template-columns:repeat(2,minmax(0,1fr));}
  .TeplicaDescript .images {width:38%;}
  .TeplicaDescript .text {margin-left:42%;}
}

@media (max-width:767px) {
  .textpage {padding:14px;}
  .textpage p {text-align:left;}
  form {box-sizing:border-box;max-width:100%;}
  form dl {overflow:visible;padding:0;margin:16px 0;}
  form dt {float:none;width:auto;margin:0 0 6px;font-size:16px;}
  form dd {margin:0;min-width:0;font-size:16px;}
  form dt:empty,form dd:empty {display:none;}
  form input[type='text'],form input[type='tel'],form input[type='email'],form select,form textarea {box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:10px;font-size:16px;line-height:1.4;}
  form textarea {min-height:100px;resize:vertical;}
  form input[type='radio'] {width:20px;height:20px;vertical-align:middle;margin-right:8px;}
  form input[type='radio'] + label {display:inline-flex;align-items:center;min-height:44px;}
  form button[type='submit'] {min-height:44px;font-size:16px;}
  .fancybox-slide--html {padding:12px;}
  .modal_window.fancybox-content {box-sizing:border-box;width:600px;max-width:100%;padding:20px;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;}
  .modal_window h2 {font-size:23px;line-height:1.3;padding-right:0;margin:0 0 16px;}
  .modal_window a.close {position:sticky;top:0;float:none;right:auto;min-height:44px;margin:0 0 12px auto;z-index:3;}
  .modal {box-sizing:border-box;width:calc(100% - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow:auto;left:12px;top:12px;margin:0;padding:48px 16px 16px;}
  .modal_cols div {float:none;width:auto;}
  .quantity {grid-template-columns:44px 36px 44px;gap:4px;min-height:44px;}
  .quantity__button {width:44px;height:44px;line-height:44px;font-size:20px;}
  .quantity__value {font-size:16px;}
  .product-order table.price,.basket table.price {display:block;width:100%;margin:16px 0;}
  .product-order table.price colgroup,.basket table.price colgroup {display:none;}
  .product-order table.price thead,.basket table.price thead {position:absolute;width:1px;height:1px;margin:-1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap;}
  .product-order table.price tbody,.basket table.price tbody {display:grid;gap:14px;width:100%;}
  .product-order table.price tr,.basket table.price tr {display:grid;width:100%;box-sizing:border-box;border:1px solid #c5c5c5;border-radius:6px;overflow:hidden;background:white;}
  .product-order table.price td,.basket table.price td {box-sizing:border-box;display:grid;grid-template-columns:minmax(80px,1fr) minmax(0,1.5fr);align-items:center;gap:10px;padding:10px 12px;width:auto;min-width:0;border:0;text-align:right;font-size:16px;}
  .product-order table.price td::before,.basket table.price td::before {content:attr(data-label);text-align:left;font-size:14px;color:#4c5661;}
  .product-order table.price .quantity,.basket table.price .quantity {justify-self:end;}
  .product-order table.price td:last-child,.basket table.price td:last-child {border-top:1px solid #e1e4e8;font-weight:bold;}
  .basket table.price tr {grid-template-columns:80px minmax(0,1fr);padding:12px;gap:8px;}
  .basket table.price td {grid-column:1/-1;padding:8px 0;}
  .basket table.price td:first-child {grid-column:1;display:block;}
  .basket table.price td:nth-child(2) {grid-column:2;display:block;text-align:left;overflow-wrap:anywhere;}
  .basket table.price td:first-child::before,.basket table.price td:nth-child(2)::before {display:none;}
  .basket_product_photo {display:block;width:80px;max-width:100%;height:auto;}
  .order_amount {text-align:left;overflow-wrap:break-word;font-size:18px;}
  .order_cartbutton .big_green_button {box-sizing:border-box;width:100%;}
  .basket_order_form {width:100%;max-width:100%;}
  .specs__item {align-items:baseline;gap:12px;justify-content:space-between;padding:7px 0;border-bottom:1px solid #e0e0e0;}
  .specs__name {min-width:0;flex:1 1 55%;}
  .specs__line {display:none;}
  .specs__value {flex:0 1 45%;max-width:45%;white-space:normal;overflow-wrap:break-word;}
  .devilery-payment {font-size:19px;padding:16px 10px;}
  .header .messangers .col {flex-wrap:wrap;}
}

@media (max-width:600px) {
  .header {padding:14px;gap:10px;}
  .header .contacts a {font-size:14px;}
  .header .messangers {gap:8px;}
  .header .messangers .col {flex:1 1 0;gap:0;}
  .header .messangers .col span {flex-basis:100%;}
  .company-name {font-size:25px;}
  .company-date {font-size:23px;}
  .orangeblock ul {grid-template-columns:1fr 1fr;}
  .orangeblock li:nth-child(2) {grid-column:1/-1;grid-row:1;}
  .orangeblock li a {font-size:13px;}
  .step_1,.step_2,.step_4,.catalogTeplic,table.main_catalog > tbody > tr {grid-template-columns:minmax(0,1fr);}
  .step_3 {display:block;padding:16px;}
  .step_3 .item_img,.step_3 .item_descript {width:100%;}
  .step_3 .item_img {margin:0 0 16px;}
  .step_3 .item_img img {width:100%;max-width:360px;}
  .TeplicaDescript .images {float:none;width:100%;max-width:420px;margin:0 auto 18px;}
  .TeplicaDescript .text {margin:0;}
  .TeplicaDescript .text h1 {text-align:left;font-size:23px;}
  .TeplicaDescriptGallery {grid-template-columns:minmax(0,1fr);}
  .org_catalog_item {display:block;}
  .org_catalog_item_img,.org_catalog_item_text {width:auto;}
  .org_catalog_item_img {margin-bottom:12px;}
  .plenka-item-img {float:none;width:100%;max-width:360px;margin:0 auto 16px;}
  .plenka-item-desc {margin:0;}
  .plenka-item {padding:12px;}
  .quick_links {grid-template-columns:repeat(2,minmax(0,1fr));}
  .colors {grid-template-columns:repeat(2,minmax(0,1fr));}
  .articlelist li {float:none;width:auto;margin:0 0 16px;}
  .news-item-left,.news-item-right {float:none;width:auto;margin:0 0 16px;}
  .textpage img.fr,.textpage img.fl {float:none;display:block;margin:0 auto 16px;}
  .vcard {line-height:1.6;}
  h1 {font-size:23px;line-height:1.3;}
  .crumbs {font-size:13px;line-height:1.7;overflow-wrap:anywhere;}
}
