/*
Theme Name: Armzbut
Author: Артем
Author URI: https://artem.dp.ua
Description: Armzbut — современная и легкая тема WordPress.
Requires at least: 6.7
Template: blocksy
Tested up to: 6.9
Requires PHP: 7.2
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: armzbut
*/
:root{
    --swiper-navigation-size: 30px;
    --swiper-navigation-color: var(--theme-palette-color-4);
    --swiper-pagination-color: var(--theme-palette-color-4)
}
.ct-header-search.ct-toggle{
  width: 300px;
  justify-content: space-between;
  padding: 5px 10px !important;
  border: 1px solid var(--theme-palette-color-6) !important;
  border-radius: 3px !important;
}

/* === Header text links styling (Blocksy) === */
.ct-header-text[data-id="text"] .entry-content{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
}

/* базово: делаем место под иконку слева */
.ct-header-text[data-id="text"] .entry-content a{
  position:relative;
  display:inline-flex;
  align-items:center;
  margin: 0;
  padding-left:22px; /* место под svg */
  line-height:1.2;
}

.ct-header-text[data-id="text"] .entry-content a.ct-address,
.ct-header-text[data-id="text"] .entry-content a.lang-switch{
    margin-left: 20px;
}
.ct-header-text[data-id="text"] .entry-content a.lang-switch{
    text-transform: uppercase;
}

/* SVG как фон (подставьте свои файлы) */
.ct-header-text[data-id="text"] .entry-content a.ct-phone::before,
.ct-header-text[data-id="text"] .entry-content a.ct-address::before,
.ct-header-text[data-id="text"] .entry-content a.lang-switch::before{
  content:"";
  position:absolute;
  left:0;
  width:16px;
  height:16px;
  color: var(--theme-palette-color-3);
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  opacity:.9;
}

/* 1-й телефон — иконка слева */
.ct-header-text[data-id="text"] .entry-content a.ct-phone:first-of-type::before{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 452 452' fill='%230F2347'> <path style='stroke-width:20.8218' d='M 90.516386,0.02335086 C 78.826755,0.28883086 67.252754,3.5182608 57.037367,9.1882508 49.415051,13.358111 42.561525,18.817751 36.399792,24.919291 23.44629,37.159781 13.150183,52.336441 7.2674148,69.201811 1.7278028,84.747261 -0.55824427,101.37746 0.11420276,117.84757 1.0416807,143.27174 7.9641142,168.1883 18.185459,191.3829 c 11.026691,24.98589 25.211884,48.48423 41.108982,70.65504 18.313,24.93629 38.480976,48.51374 60.295919,70.45207 22.1649,21.69293 45.83687,41.85748 70.87432,60.16364 23.33009,16.69345 48.18876,31.39907 74.63039,42.60508 21.5948,9.07873 44.61069,15.33656 68.10099,16.28284 16.07689,0.72538 32.31444,-1.46906 47.5175,-6.79158 9.65578,-3.31947 18.87188,-7.95814 27.15407,-13.94237 8.69772,-6.25211 16.44158,-13.78229 23.24261,-22.04365 6.12566,-7.58095 11.13979,-16.0722 14.76501,-25.12078 3.89846,-9.96153 5.69398,-20.82527 4.67825,-31.5007 -0.67551,-6.44469 -2.40502,-12.77 -4.95735,-18.71925 -3.58784,-7.98634 -9.68807,-14.68758 -16.92689,-19.54182 -23.29601,-16.54909 -46.57121,-33.12803 -69.88021,-49.65849 -6.25938,-4.27265 -12.94458,-8.00296 -20.08724,-10.57972 -9.335,-3.28128 -19.71977,-3.88825 -29.23081,-0.97311 -3.74314,1.09948 -7.27189,2.81526 -10.60903,4.81724 -7.70661,4.11305 -14.29531,9.97579 -20.40278,16.15293 -3.85073,3.79827 -7.70145,7.59653 -11.55218,11.39479 -3.98868,-2.15196 -7.72334,-4.73815 -11.37305,-7.41601 -1.29777,-0.97118 -2.76175,-2.07412 -4.1026,-3.12788 -4.49746,-3.52671 -8.89462,-7.21993 -13.18286,-10.92452 -9.17424,-8.01364 -17.95594,-16.46501 -26.62621,-25.01716 -10.12945,-10.40022 -19.85829,-21.23083 -29.41854,-32.2122 -5.74108,-6.84037 -11.34742,-13.8531 -15.93171,-21.5363 -0.65933,-0.58338 0.0902,-1.00313 0.49428,-1.45679 5.19121,-5.43244 10.40129,-10.84777 15.59846,-16.27349 4.48854,-4.83845 8.55038,-10.10651 11.71829,-15.90996 4.48844,-7.82593 6.88352,-16.9542 6.1403,-25.98994 -0.44055,-5.89948 -2.21186,-11.61415 -4.56119,-17.01641 -2.77211,-6.77686 -6.74495,-12.977609 -11.05042,-18.871099 -15.80552,-22.29086 -31.63805,-44.56316 -47.4267,-66.86562 C 131.93057,14.701671 124.34463,8.7017208 115.81655,4.9698208 107.89897,1.4523208 99.172212,-0.22083914 90.516386,0.02335086 Z M 92.373808,35.232331 c 3.897625,0.041 7.816032,1.03831 11.206492,2.97195 2.65405,1.5286 4.676,3.90088 6.33881,6.43119 16.42975,23.23459 32.87216,46.4612 49.29454,69.700379 2.55901,3.91208 5.14137,8.04624 5.84277,12.75342 0.41378,3.15736 -1.29739,6.04795 -2.9653,8.57856 -2.84341,4.37526 -6.52706,8.09721 -10.14828,11.82067 -4.92778,5.14941 -9.90585,10.25232 -14.80346,15.42958 -4.55735,5.07296 -7.08938,11.83083 -7.19526,18.63261 -0.12004,4.07731 0.74357,8.11006 1.83596,12.01277 0.92018,2.20577 1.71287,4.47159 2.71134,6.64051 5.10289,9.25451 11.56872,17.67182 18.27712,25.80719 6.34676,7.57971 12.96383,14.92997 19.65561,22.20529 5.19254,5.59027 10.42012,11.15177 15.82631,16.53622 11.55752,11.31486 23.33865,22.42298 35.75993,32.79019 8.49233,6.97314 17.35616,13.59078 27.04506,18.82228 2.9827,1.25129 5.84777,2.8602 9.0383,3.53669 10.28351,2.44995 21.8593,-0.46667 29.34882,-8.04025 5.88352,-5.77784 11.70993,-11.61493 17.63032,-17.35454 2.9346,-2.7985 6.1705,-5.31837 9.80179,-7.14866 2.03806,-1.17541 4.30261,-2.54537 6.75499,-2.15144 2.11374,0.49958 4.01915,1.60335 6.03515,2.38281 6.42989,2.86866 11.93946,7.32121 17.68145,11.31335 20.76623,14.77267 41.5541,29.51638 62.30683,44.30709 2.08878,1.55105 3.86411,3.61449 4.66371,6.12552 1.59363,4.00269 1.79154,8.4172 1.18716,12.64543 -0.62604,4.85872 -2.48687,9.45458 -4.79411,13.74318 -2.87862,5.54933 -6.62948,10.61296 -10.92562,15.14455 -6.68665,7.29671 -14.84582,13.49401 -23.77176,17.58416 -1.79909,0.82502 -3.3963,1.49165 -5.26144,2.20721 -4.32618,1.64505 -8.79247,2.91482 -13.3284,3.83186 -0.43088,0.0767 -1.16754,0.22854 -1.62352,0.30826 -1.66094,0.30328 -3.31556,0.55561 -4.91269,0.7529 -2.57811,0.32577 -5.39395,0.57121 -8.0812,0.67599 -5.64697,0.24306 -11.30949,0.009 -16.92752,-0.59653 -0.68791,-0.0754 -1.4735,-0.1616 -2.18081,-0.25567 -8.20258,-1.02867 -16.39608,-2.87282 -24.24887,-5.22089 -10.18551,-3.02025 -20.11033,-7.0925 -29.72657,-11.45899 -9.22344,-4.23004 -18.08759,-8.86071 -26.87162,-13.95948 C 230.54002,377.59707 218.62263,369.63438 207.17323,361.1126 184.6132,344.40147 163.19852,325.98259 143.25376,306.14722 129.42415,292.13308 116.29821,277.42473 103.95389,262.08585 95.026486,250.93241 86.314017,239.36104 78.346908,227.41378 67.101385,210.54305 57.0663,192.69056 49.071746,173.99688 c -4.169454,-9.7636 -7.587151,-19.85942 -10.008485,-30.2001 -0.441174,-1.88455 -0.888009,-3.97656 -1.26944,-5.95435 -1.292104,-6.6997 -2.133271,-13.48968 -2.435639,-20.30737 -0.04742,-1.18785 -0.09382,-2.62545 -0.107807,-3.91131 -0.191227,-12.01594 1.76378,-24.122939 6.293977,-35.281749 2.756381,-7.06093 6.749436,-13.81014 11.578211,-19.73612 2.427191,-2.99756 4.972389,-5.71345 7.772283,-8.38087 5.670224,-5.60658 12.246956,-10.55236 19.884841,-13.09482 3.728193,-1.25815 7.659681,-1.89615 11.594121,-1.89786 z'></path> <path style='stroke-width:20.8218' d='m 287.45584,72.898351 c -6.48713,0.26399 -12.56466,4.48205 -15.19724,10.39713 -2.58525,5.51989 -1.91046,12.37111 1.67081,17.297889 3.26503,4.69631 8.90648,7.62717 14.63495,7.52257 6.81456,0.11529 13.28583,2.87394 19.02596,6.37264 8.1252,5.03356 15.11873,11.7354 21.14487,19.1165 0.82005,1.01696 1.59174,2.00372 2.32436,2.9938 4.57225,6.18614 8.61027,12.86839 11.15314,20.15801 0.84688,2.46658 1.43059,5.04663 1.3878,7.66692 0.33783,6.48262 4.62549,12.50951 10.56727,15.07703 5.51972,2.50537 12.31694,1.7756 17.19721,-1.81204 4.77948,-3.35896 7.69459,-9.19252 7.42765,-15.03925 -0.2124,-8.59757 -2.83404,-16.95018 -6.27692,-24.76533 -5.65017,-12.57692 -13.67482,-24.01233 -23.07051,-34.07005 -9.76027,-10.333369 -21.19713,-19.320959 -34.28635,-25.029729 -8.70513,-3.7896 -18.17494,-6.06792 -27.703,-5.88609 z'></path> <path style='stroke-width:20.8218' d='m 287.45584,0.02139086 c -6.29855,0.26131 -12.21688,4.23750994 -14.96037,9.89318994 -2.70667,5.3481602 -2.32633,12.0817502 0.95662,17.0954702 3.19487,5.09623 9.113,8.36115 15.14163,8.2244 2.60191,0.008 5.09179,0.084 7.7149,0.246 1.63301,0.10323 3.34706,0.23855 5.08472,0.41399 12.1226,1.22814 24.06548,4.206 35.34375,8.81836 1.01845,0.4154 2.28847,0.95297 3.30847,1.4101 10.23191,4.51963 19.85645,10.40179 28.56848,17.41607 1.24246,1.007 2.6912,2.21503 3.90137,3.27492 4.51416,3.94012 8.75016,8.1974 12.67676,12.72313 1.07148,1.24507 2.29748,2.70884 3.31845,3.99524 6.95913,8.71396 12.77439,18.339439 17.246,28.555539 0.46221,1.05614 1.00613,2.33633 1.43038,3.40844 4.89798,12.09075 7.90547,25.08979 8.88017,38.00367 0.16247,2.14107 0.28052,4.43376 0.33398,6.54883 0.0612,2.81976 -0.10705,5.70722 0.81161,8.42245 1.89092,6.30094 7.54823,11.27647 14.05682,12.28855 5.7351,0.98358 11.83275,-1.20395 15.72879,-5.50388 3.21361,-3.44487 4.91162,-8.20065 4.6716,-12.90046 C 451.55651,138.32296 446.0224,114.33451 435.55914,92.697491 423.14456,66.908361 403.82605,44.506541 380.18102,28.385701 359.23179,14.040921 334.88834,4.6854608 309.70691,1.4018908 302.33421,0.43971086 294.89185,-0.05570914 287.45584,0.02139086 Z'></path></svg>");
}

/* адрес — иконка слева */
.ct-header-text[data-id="text"] .entry-content a.ct-address::before{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230F2347'><path d='M16.6388 3.47738C15.1119 1.26762 12.6921 0 10.0003 0C7.30846 0 4.88866 1.26762 3.36182 3.47738C1.84249 5.67598 1.49167 8.45945 2.42151 10.9186C2.67022 11.5902 3.06557 12.2427 3.59378 12.8541L9.46792 19.7538C9.60077 19.91 9.79542 20 10.0003 20C10.2052 20 10.3998 19.91 10.5327 19.7538L16.4052 12.8559C16.9357 12.241 17.3306 11.5893 17.5772 10.9231C18.5089 8.45945 18.1581 5.67598 16.6388 3.47738ZM16.2677 10.4333C16.0775 10.9473 15.767 11.4555 15.3453 11.9443L15.342 11.948L10.0003 18.2221L4.6553 11.9441C4.23385 11.4557 3.92335 10.9476 3.73128 10.4287C2.96229 8.39488 3.25413 6.09348 4.51217 4.27273C5.77417 2.44617 7.77464 1.39859 10.0003 1.39859C12.2259 1.39859 14.2262 2.44613 15.4882 4.27273C16.7465 6.09348 17.0385 8.39488 16.2677 10.4333Z'></path><path d='M10.0003 4.14919C7.84108 4.14919 6.0842 5.90583 6.0842 8.06528C6.0842 10.2247 7.84084 11.9814 10.0003 11.9814C12.1597 11.9814 13.9164 10.2247 13.9164 8.06528C13.9164 5.90606 12.1595 4.14919 10.0003 4.14919ZM10.0003 10.5827C8.61217 10.5827 7.4828 9.45337 7.4828 8.06524C7.4828 6.67712 8.61217 5.54774 10.0003 5.54774C11.3884 5.54774 12.5178 6.67712 12.5178 8.06524C12.5178 9.45337 11.3884 10.5827 10.0003 10.5827Z'></path><path d='M16.6388 3.47738C15.1119 1.26762 12.6921 0 10.0003 0C7.30846 0 4.88866 1.26762 3.36182 3.47738C1.84249 5.67598 1.49167 8.45945 2.42151 10.9186C2.67022 11.5902 3.06557 12.2427 3.59378 12.8541L9.46792 19.7538C9.60077 19.91 9.79542 20 10.0003 20C10.2052 20 10.3998 19.91 10.5327 19.7538L16.4052 12.8559C16.9357 12.241 17.3306 11.5893 17.5772 10.9231C18.5089 8.45945 18.1581 5.67598 16.6388 3.47738ZM16.2677 10.4333C16.0775 10.9473 15.767 11.4555 15.3453 11.9443L15.342 11.948L10.0003 18.2221L4.6553 11.9441C4.23385 11.4557 3.92335 10.9476 3.73128 10.4287C2.96229 8.39488 3.25413 6.09348 4.51217 4.27273C5.77417 2.44617 7.77464 1.39859 10.0003 1.39859C12.2259 1.39859 14.2262 2.44613 15.4882 4.27273C16.7465 6.09348 17.0385 8.39488 16.2677 10.4333Z'></path><path d='M10.0003 4.14919C7.84108 4.14919 6.0842 5.90583 6.0842 8.06528C6.0842 10.2247 7.84084 11.9814 10.0003 11.9814C12.1597 11.9814 13.9164 10.2247 13.9164 8.06528C13.9164 5.90606 12.1595 4.14919 10.0003 4.14919ZM10.0003 10.5827C8.61217 10.5827 7.4828 9.45337 7.4828 8.06524C7.4828 6.67712 8.61217 5.54774 10.0003 5.54774C11.3884 5.54774 12.5178 6.67712 12.5178 8.06524C12.5178 9.45337 11.3884 10.5827 10.0003 10.5827Z'></path></svg>");
}

/* переключатель языка — иконка слева */
.ct-header-text[data-id="text"] .entry-content a.lang-switch::before{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230F2347'><path fill-rule='evenodd' clip-rule='evenodd' d='M10 20c5.523 0 10-4.477 10-10S15.523 0 10 0 0 4.477 0 10s4.477 10 10 10Zm1.987-9.203-.096-2.085c-.09-.465-.524-.802-.952-1.134-.688-.534-1.358-1.054-.552-2.071.565-.728-.69-1.101-1.163-1.177-.62-.098-.964.555-1.179.976-.407.796-1.265.773-2.048.752a13.623 13.623 0 0 0-.362-.006c-.453 0-.896-.838-1.25-1.507-.135-.256-.257-.487-.362-.637a8.516 8.516 0 0 1 5.984-2.445 8.532 8.532 0 0 1 6.914 3.524l-.044.044-.237.275c-.365.374-.608 1.514-.58 2.079.014.162.038.334.062.513.109.782.232 1.674-.359 2.225l-1.528 1.428c-.756.706-2.046.293-2.248-.754ZM7.242 17.5c-.012.014-.176.235-.347.466A8.559 8.559 0 0 1 1.64 11.74l.158-.158c.102-.102.215-.195.34-.269.516-.307.8-.354 1.503-.359.435-.002.77.545 1.096 1.079.31.505.61.997.982.997h.034c.675 0 1.33 0 1.846.483 1.27 1.196.523 2.98-.356 3.987Z'></path></svg>");
}

/* === Точка между телефонами только если есть второй телефон === */
/* точку рисуем у второго телефона, а не отдельным узлом */
.ct-header-text[data-id="text"] .entry-content a.ct-phone + a.ct-phone{
  padding-left:25px; 
}

.ct-header-text[data-id="text"] .entry-content a.ct-phone + a.ct-phone::before{
  content:"•";
  position:absolute;
  left:10px;
  top:50%;
  transform:translateY(-50%);
  width:auto;
  height:auto;
  background:none;
  font-size:16px;
  line-height:1;
  opacity:.8;
}

@media (min-width: 1000px) and (max-width: 1200px) {
    .ct-header-text[data-id="text"] .entry-content{
        position: relative;
    }
    .ct-header-text[data-id="text"] .entry-content a.ct-phone + a.ct-phone{
        display: block;
        position: absolute;
        background: var(--theme-palette-color-7);
        padding: 0 6px 5px 23px;
        border-radius: 0 0 3px 3px;    
        top: 30px;    
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-4px);
        transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
        z-index: 5;
    }

    /* показываем при взаимодействии с первым */
    .ct-header-text[data-id="text"] .entry-content a.ct-phone:first-of-type:hover + a.ct-phone,
    .ct-header-text[data-id="text"] .entry-content a.ct-phone:first-of-type:focus + a.ct-phone,
    .ct-header-text[data-id="text"] .entry-content a.ct-phone:first-of-type:focus-visible + a.ct-phone,
    /* удерживаем показ, когда уже навели на второй */
    .ct-header-text[data-id="text"] .entry-content a.ct-phone + a.ct-phone:hover,
    .ct-header-text[data-id="text"] .entry-content a.ct-phone + a.ct-phone:focus,
    .ct-header-text[data-id="text"] .entry-content a.ct-phone + a.ct-phone:focus-visible{
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition: opacity .15s ease, transform .15s ease, visibility 0s;
    }

    /* если у вас есть "•" между телефонами — убираем в этом диапазоне */
    .ct-header-text[data-id="text"] .entry-content a.ct-phone + a.ct-phone::before{
        content: none;
    }
}
@media (max-width: 999.98px) {
    .ct-header-search.ct-toggle {
        width: 240px;
        padding: 4px 10px !important;
    }
}
@media (min-width: 690px) and (max-width: 787px){
    .ct-header-search.ct-toggle {
        width: 180px;
       
    }
}
@media (max-width: 689.98px) {
    #header [data-column-set="3"] > div{
        grid-template-columns: 2.5fr 1fr 1fr;
    }
    .ct-header-search.ct-toggle {
        width: 35px;
        padding: 4px 10px !important;
        height: 35px;
    }
  /* Убираем текст */
  .ct-header-cta a{
    font-size:0;
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    padding: 7px;
  }

  /* Добавляем иконку */
  .ct-header-cta a::before{
    content:"";
    width:20px;
    height:20px;
    background-color: currentColor;

    -webkit-mask-repeat:no-repeat;
    -webkit-mask-position:center;
    -webkit-mask-size:contain;
    mask-repeat:no-repeat;
    mask-position:center;
    mask-size:contain;

    -webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6.6 10.8c1.5 3 3.6 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1.1-.3 1.2.4 2.5.6 3.8.6.6 0 1 .4 1 1V21c0 .6-.4 1-1 1C10.4 22 2 13.6 2 3c0-.6.4-1 1-1h4.5c.6 0 1 .4 1 1 0 1.3.2 2.6.6 3.8.1.4 0 .8-.3 1.1L6.6 10.8z'/></svg>");

    mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6.6 10.8c1.5 3 3.6 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1.1-.3 1.2.4 2.5.6 3.8.6.6 0 1 .4 1 1V21c0 .6-.4 1-1 1C10.4 22 2 13.6 2 3c0-.6.4-1 1-1h4.5c.6 0 1 .4 1 1 0 1.3.2 2.6.6 3.8.1.4 0 .8-.3 1.1L6.6 10.8z'/></svg>");
  }    
}

.entry-content p img{
    border-radius: 10px;
}

.home-page .section-header{
    margin-bottom: 30px;
}

.home-hero {
    position: relative;
}

.home-hero__slide {
    aspect-ratio: 16 / 5;
}

.home-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-catalog {
    padding: 80px 0;
}

.home-catalog__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.home-catalog .catalog-card {
    background: #f7f7f7;
    padding: 30px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.catalog-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.catalog-card__title {
    font-family: var(--theme-font-family-header);
    font-size: 24px;
    line-height: 26px;
}

.catalog-card__icon {
    width: 60px;
    height: auto;
}

.catalog-card__list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    height: 100%;
}

.catalog-card__list li {
    display: flex;
    justify-content: space-between;
    line-height: 18px;
    margin-bottom: 16px;
}

.catalog-card__list li a{
    color: var(--theme-text-color);
}

.catalog-card__list li a:hover{
    color: var(--theme-palette-color-1);
}

.catalog-card__count {
    opacity: 0.5;
    margin-left: 10px;
    align-content: center;
}

@media (max-width: 1200px) {
    .home-catalog__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-catalog__grid {
        grid-template-columns: 1fr;
    }
}

.home-about {
    padding: 100px 0;
}

.home-about__grid {
    display: grid;
    gap: 60px;
    align-items: center;
}

.home-about__grid.has-image {
    grid-template-columns: 1.2fr 1fr;
}

.home-about__grid.no-image {
    grid-template-columns: 1fr;
}

.home-about__content {
    line-height: 1.7;
}

.home-about__image {
    text-align: right;
}

.home-about__img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

@media (max-width: 992px) {
    .home-about__grid.has-image {
        grid-template-columns: 1fr;
    }

    .home-about__image {
        order: -1; /* картинка сверху на мобиле */
    }
}

.wpcf7 form .wpcf7-not-valid-tip {
  color: #dc3232;
  font-size: 13px;
  font-weight: normal;
  display: block;
  position: absolute;
  bottom: -19px;
  right: 10px;
  background-color: var(--theme-palette-color-8);
  padding: 0 5px;
  max-width: 90%;
}
.wpcf7 form .wpcf7-response-output {
  border-radius: 3px;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
}
.wpcf7 form label:not(.wpcf7-form-control-wrap){
  font-size: 16px;
  font-weight: 400;
}
.cf7-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.cf7-col {
    flex: 1;
}

.cf7-row.full {
    display: block;
}
.cf7-hint{
    font-size: 13px;
    font-weight: normal;
    display: block;
    position: absolute;
    bottom: -7px;
    right: 10px;
    background-color: var(--theme-palette-color-8);
    padding: 0 5px;
    max-width: 90%;
}
.cf7-row.accept label {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.cf7-row.submit {
    text-align: right;
    margin-bottom: 0;
}

.fld {
    position: relative;
}

.fld label {
    position: absolute;
    left: 15px;      /* подгони под свои отступы темы */
    top: 19px;        /* будет примерно по центру поля */
    transform: translateY(-50%);
    transition: 0.2s ease;
    pointer-events: none;
    border-radius: 10px;
    background-color: var(--theme-palette-color-8);
}
/* когда есть фокус или значение — поднимаем метку */
.fld.is-focused label,
.fld.is-filled label {
    top: -15px;       /* над полем */
    transform: none;
    left: 10px;
    padding: 0 4px;
    color: var(--theme-palette-color-1);
    opacity: 1;
}

/* Показать */
.fld.show, .fld .show,
.cf7-row.show {
    position: relative;
    height: auto;
    opacity: 1;
    overflow: visible;
    background-color: var(--theme-palette-color-8);
}

/* Адаптив */
@media (max-width: 768px) {
    .cf7-row {
        flex-direction: column;
    }
    .full.show p{display: flex;}
    .full.show p .wpcf7-list-item{margin: 0;}
    img.alignleft, img.alignright {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
   }
}

.custom-popup {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    background: rgba(138,147,163,.0);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity .25s ease, visibility .25s ease;
}

.custom-popup.active {
    opacity: 1;
    visibility: visible;
    background: rgba(138,147,163,.8);
    pointer-events: auto;
}

/* Контент */
.custom-popup-content {
    background: var(--theme-palette-color-8);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 25px 4px rgba(138,147,163,.8);

    transform: translateY(40px) scale(.96);
    opacity: 0;

    transition: 
        transform .35s cubic-bezier(.22,.61,.36,1),
        opacity .3s ease;
}

.custom-popup.active .custom-popup-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

    .custom-popup-content .title3{
        color: var(--theme-palette-color-1);
        font-size: 24px;
        margin-bottom: 15px;
        line-height: 24px;
    }

    .custom-popup-content .title3 .item-title{
        display: block;
        width: 100%;
        margin-top: 10px;
        font-size: 20px;
        line-height: 22px;
        color: var(--theme-text-color);
    }

    .custom-popup-content .wpforms-container{
        margin: 0;
        position: relative;
    }

    .custom-popup-content .wpforms-confirmation-container{
        margin: -50px -2px 0;
    }

    .custom-popup-close {
        position: absolute;
        height: 20px;
        line-height: 16px;
        top: 14px; right: 15px;
        font-size: 24px;
        text-decoration: none;
        color: var(--theme-palette-color-1);
    }
    .custom-popup-close:hover{color: var(--theme-palette-color-2);}
    
.cf7-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--theme-palette-color-1);
    color: #fff;
    padding: 14px 24px;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    opacity: 0;
    transition: .3s ease;
    z-index: 10000;
    pointer-events: none;
}

.cf7-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}












.tax-catalog_category .ct-title-label{
    display: none;
}

.catalog-subcategories-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:30px;
}

.catalog-subcategory-card,
.entry-card.type-catalog,
.home-catalog .catalog-card{
  display:block;
  padding: 10px;
  background:var(--theme-palette-color-8);
  border:1px solid var(--theme-palette-color-7);
  border-radius:10px;
  overflow:hidden;
  transition:all .25s ease;
}
.home-catalog .catalog-card{
    display: flex;
    padding: 20px;
}
.entry-card.type-catalog{
    display: flex;
}
.catalog-subcategory-card:hover,
.entry-card.type-catalog:hover,
.home-catalog .catalog-card:hover{
  transform:translateY(-6px);
  border-color: var(--theme-border-color);
  box-shadow:0 20px 40px rgba(0,0,0,.05);
}

.catalog-subcategory-card__image{
  width:100%;
  aspect-ratio:1/1;
  object-fit:contain;
  background:#f8f8f8;
}

.catalog-subcategory-card__content{
  padding:20px 10px 0;
}

.catalog-subcategory-card__title{
    font-size: 24px;
    text-align: center;
}
.catalog-subcategory-card__excerpt{
  font-size:14px;
  opacity:.7;
  margin:8px 0 12px;
}
.catalog-term-description{
    margin: 40px auto;
    font-size: 16px;
    line-height: 1.6;
    opacity: .85;
}
.entry-card .entry-title{
    padding: 0 10px;
    font-family: var(--theme-font-family);
}
.entry-button[class*="ct-button"]{
    min-height: 30px;
    margin: 0 auto;
} 
[data-prefix="catalog_archive"] .entry-content .ct-search-form{
    display: none;
}

@media (max-width: 1024px) {
    .catalog-subcategories-grid {
        grid-template-columns: repeat(3,1fr);
    }
    
}
@media (max-width: 768px) {
    .catalog-subcategories-grid {
        grid-template-columns: repeat(1,1fr);
    }

}




.contacts-page {
    padding: 60px 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contacts-grid .contacts-form{
    padding: 40px;
    border-radius: 10px;
    background-color: var(--theme-palette-color-7);
}

.vacancy-form-block .fld label,
.vacancy-form-block .wpcf7 form .wpcf7-not-valid-tip,
.contacts-grid .contacts-form .fld label,
.contacts-grid .contacts-form .wpcf7 form .wpcf7-not-valid-tip{
    background-color: var(--theme-palette-color-7);
}
.vacancy-form-block small{
    opacity: 0.8;
}
.contact-block {
    margin-bottom: 30px;
}

.contact-block h3 {
    margin-bottom: 10px;
}

.contact-block a,
.contact-block p {
    font-size: 20px;
    font-family: var(--theme-font-family-header);
}

.contact-block a{
    display: inline-flex;
    align-items: center;
}

.contact-block .ct-icon{
    width: 20px;
    height: 20px;
    margin-right: 6px;
    fill: var(--theme-palette-color-1);
}

.contact-block .contact-socials .ct-icon{
    fill: var(--theme-palette-color-5);
}

.contact-block a:hover .ct-icon{    
    fill: var(--theme-palette-color-2);
}

.contact-socials{
    margin-top: 10px;
}

.contact-socials a {
    display: inline-block;
    margin-right: 15px;
}

.contacts-map iframe {
    display: block;
    width: 100%;
    height: 500px;
    border: 0;
}

.vacancy-form-block {
    margin-top: 40px;
    padding: 30px;
    border-radius: 10px;
    background-color: var(--theme-palette-color-7);
}


[data-footer*="type-1"] .ct-footer [data-row*="middle"] .widget-title,
.ct-widget .widget-title{
    font-family: var(--theme-font-family-header);
}
[data-column="widget-area-1"] .ct-widget p{
    font-size: 16px;
}
[data-column="widget-area-4"] .is-layout-flow .widget-title{
    margin-top: 0;
}

[data-column="widget-area-4"] .is-layout-flow .widget-title:last-child{
    margin-top: 20px;
}
footer .contact-block .ct-icon,
footer .contact-block .contact-socials .ct-icon{
    fill: var(--theme-palette-color-8);
}

footer .contact-block a:hover .ct-icon,
footer .contact-block .contact-socials a:hover .ct-icon{
    fill: var(--theme-palette-color-7);
}

a.underline-slide, a.filter-check,
[data-column="widget-area-2"] a,
[data-column="widget-area-3"] a {
    position: relative;
    text-decoration: none;
}

a.underline-slide::after, a.filter-check::after,
[data-column="widget-area-2"] a::after,
[data-column="widget-area-3"] a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;          /* отступ от текста */
    width: 100%;
    height: 1px;           /* толщина линии */
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

a.underline-slide:hover::after, a.filter-check:hover::after,
[data-column="widget-area-2"] a:hover::after,
[data-column="widget-area-3"] a:hover::after {
    transform: scaleX(1);
}

.wpcf7 input[type="file"] {
  cursor: pointer;
  border: 1px solid var(--theme-border-color);
  width: 100%;
  padding: 8px;
  border-radius: 3px;
  height: 40px;
}

#offcanvas .lang_menu {
  position: absolute;
  left: 0;
  top: 0;
  padding: 25px 0 20px 25px;
  color: var(--theme-palette-color-7);
  z-index: 1;
  right: 60px;
  margin: 0;
  margin-top: 0px;
  display: flex;
  align-items: center;
  gap: 6px;
}
#offcanvas .ct-widget,
#offcanvas .ct-widget a{
    color: var(--theme-palette-color-7);
    font-size: 18px;
}
#offcanvas .ct-widget .widget-title{
    font-size: 20px;
    margin-bottom: 10px;
}
#offcanvas svg{
    fill: var(--theme-palette-color-7);
}
#offcanvas .lang_menu .lang-switch{
  text-transform: uppercase;
  color: var(--theme-palette-color-8);
}


@media (max-width: 999.98px) {
  .ct-panel-actions {
    padding-bottom: 20px;
  }
  .mobile-menu.second-menu,
  #offcanvas .ct-widget{
    padding-top: 20px;
    border-top: 1px solid var(--theme-palette-color-6);
  }
  .mobile-menu a {
    text-align: var(--text-horizontal-alignment);
    justify-content: var(--horizontal-alignment);
    --menu-item-padding: var(--items-vertical-spacing, 5px) 0;
  }
 .mobile-menu a:not(:empty) {
    padding: var(--menu-item-padding, 0px);
  }
}

@media (max-width: 689.98px) {
  .ct-panel-actions {
    padding-bottom: 20px;
  }
}

@media (max-width: 992px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
  [data-footer*="type-1"] .ct-footer [data-row*="middle"] > div {
    grid-template-columns: 1fr 0.8fr 1fr 1.2fr;
  }
}

