/*
Theme Name: Brandloga_4.1
Description: Тема сайта brandloga.ru — творческая берлога Егора Сорокина
Version: 4.1
Author: Smiling Lion
Author URI: https://brandloga.ru
*/

/* Шрифты (Jost, Lora, Inter) подключаются в header.php одним запросом к Google Fonts */

/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in
 *    IE on Windows Phone and in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -ms-text-size-adjust: 100%; /* 2 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

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

/**
 * Remove the margin in all browsers (opinionated).
 */

body {
  margin: 0;
  background-color: var(--bgColor, #fff) !important;
}

/**
 * Add the correct display in IE 9-.
 */
article, aside, footer, header, nav, section {
  display: block;
/*  overflow: hidden;*/
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * Add the correct display in IE 9-.
 * 1. Add the correct display in IE.
 */

figcaption, figure, main {

  /* 1 */
  display: block;
}

/**
* Add the correct margin in IE 8.
*/
figure,
figure.wp-block-image {
  margin: 1em 40px;
  margin-bottom: 1.5em !important;
  margin-top: 1em !important;
  text-align: center;
}

.blocks-gallery-grid:not(.has-nested-images),.wp-block-gallery:not(.has-nested-images) {
  margin: auto !important;
}

/**
* 1. Add the correct box sizing in Firefox.
* 2. Show the overflow in Edge and IE.
*/
hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
  ========================================================================== */

/**
* 1. Remove the gray background on active links in IE 10.
* 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
*/

a {
  background-color: transparent; /* 1 */
  -webkit-text-decoration-skip: objects; /* 2 */
}

/**
* 1. Remove the bottom border in Chrome 57- and Firefox 39-.
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
*/
abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
* Prevent the duplicate application of `bolder` by the next rule in Safari 6.
*/
b, strong {
  font-weight: inherit;
}

/**
* Add the correct font weight in Chrome, Edge, and Safari.
*/
b, strong {
  font-weight: bolder;
}

/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
code, kbd, samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
* Add the correct font style in Android 4.3-.
*/
dfn {
  font-style: italic;
}

/**
* Add the correct background and color in IE 9-.
*/
mark {
  background-color: #ff0;
  color: #000;
}

/**
* Add the correct font size in all browsers.
*/
small {
  font-size: 80%;
}

/**
* Prevent `sub` and `sup` elements from affecting the line height in
* all browsers.
*/
sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}

/* Embedded content
  ========================================================================== */

/**
* Add the correct display in IE 9-.
*/

audio, video {
  display: inline-block;
}

/**
* Add the correct display in iOS 4-7.
*/
audio:not([controls]) {
  display: none;
  height: 0;
}

/**
* Remove the border on images inside links in IE 10-.
*/
img {
  border-style: none;
}

/**
* Hide the overflow in IE.
*/
svg:not(:root) {
  overflow: hidden;
}

/* Forms
  ========================================================================== */

/**
* 1. Change the font styles in all browsers (opinionated).
* 2. Remove the margin in Firefox and Safari.
*/

button, input, optgroup, select, textarea {
  font-family: sans-serif; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
* Show the overflow in IE.
* 1. Show the overflow in Edge.
*/
button, input {

  /* 1 */
  overflow: visible;
}

/**
* Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox.
*/
button, select {

  /* 1 */
  text-transform: none;
}

/**
* 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
*    controls in Android 4.
* 2. Correct the inability to style clickable types in iOS and Safari.
*/
button, html [type="button"], /* 1 */
[type="reset"], [type="submit"] {
  -webkit-appearance: button; /* 2 */
}

/**
* Remove the inner border and padding in Firefox.
*/
button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
* Restore the focus styles unset by the previous rule.
*/
button:-moz-focusring, [type="button"]:-moz-focusring, [type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
* Correct the padding in Firefox.
*/
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
* 1. Correct the text wrapping in Edge and IE.
* 2. Correct the color inheritance from `fieldset` elements in IE.
* 3. Remove the padding so developers are not caught out when they zero out
*    `fieldset` elements in all browsers.
*/
legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
* 1. Add the correct display in IE 9-.
* 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
*/
progress {
  display: inline-block; /* 1 */
  vertical-align: baseline; /* 2 */
}

/**
* Remove the default vertical scrollbar in IE.
*/
textarea {
  overflow: auto;
}

/**
* 1. Add the correct box sizing in IE 10-.
* 2. Remove the padding in IE 10-.
*/
[type="checkbox"], [type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
* Correct the cursor style of increment and decrement buttons in Chrome.
*/
[type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
* 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari.
*/
[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
* Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
*/
[type="search"]::-webkit-search-cancel-button, [type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
* 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
  ========================================================================== */

/*
* Add the correct display in IE 9-.
* 1. Add the correct display in Edge, IE, and Firefox.
*/

details, /* 1 */
menu {
  display: block;
}

/*
* Add the correct display in all browsers.
*/
summary {
  display: list-item;
}

/* Scripting
  ========================================================================== */

/**
* Add the correct display in IE 9-.
*/

canvas {
  display: inline-block;
}

/**
* Add the correct display in IE.
*/
template {
  display: none;
}

/* Hidden
  ========================================================================== */

/**
* Add the correct display in IE 10-.
*/

[hidden] {
  display: none;
}

/* ==========================================================================
  Base styles: opinionated defaults
  ========================================================================== */
html {
  color: var(--mainFontColor, #222);
  font-size: 1em;
  line-height: 1.4;
  scroll-behavior: smooth;
}

/*
* Remove text-shadow in selection highlight:
* https://twitter.com/miketaylr/status/12228805301
*
* Vendor-prefixed and regular ::selection selectors cannot be combined:
* https://stackoverflow.com/a/16982510/7133471
*
* Customize the background color to match your design.
*/
::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}
::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
* A better looking default horizontal rule
*/
hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
* Remove the gap between audio, canvas, iframes,
* images, videos and the bottom of their containers:
* https://github.com/h5bp/html5-boilerplate/issues/440
*/
audio, canvas, iframe, img, svg, video {
  vertical-align: middle;
}

/*
* Remove default fieldset styles.
*/
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
* Allow only vertical resizing of textareas.
*/
textarea {
  resize: vertical;
}

/* ==========================================================================
  Утилиты
  ========================================================================== */

.hidden {
  display: none !important;
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */
@media print {
  *, *:before, *:after {
    background: transparent !important;
    color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a, a:visited {
    text-decoration: underline;
  }
  a[href]:after {
    content: " ("attr(href) ")";
  }
  abbr[title]:after {
    content: " ("attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]:after, a[href^="javascript:"]:after {
    content: "";
  }
  pre {
    white-space: pre-wrap !important;
  }
  pre, blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }
  tr, img {
    page-break-inside: avoid;
  }
  p, h2, h3 {
    orphans: 3;
    widows: 3;
  }
  h2, h3 {
    page-break-after: avoid;
  }
}

:root {
  --redColor: #e3441f;
  --redColorOpacity: 227, 68, 31;
  --linkColor: #0000ff;
  --linkColorOpacity: 0, 0, 255;
  --visitedLinkColor: #5D0075;
  --mainFont: 'Jost', sans-serif;
  --blogFont: 'Lora', Georgia, serif;
  --pageFont: 'Inter', sans-serif;
  --mainFontSize: 20px;
  --mainFontColor: #222222;
  --addFontColor: #999999;
  --mainFontColorOpacity: 50, 9, 51;

  /* Поверхности и детали (переопределяются тёмной темой ниже) */
  --bgColor: #ffffff;
  --bgRGB: 255, 255, 255;        /* для градиентов скрывашек */
  --bgAltColor: #f6f6f6;         /* блок формы */
  --headingColor: #000000;
  --mutedColor: #666666;         /* подписи, даты, теги */
  --borderColor: #eeeeee;        /* рамки картинок */
  --inputBorder: #cccccc;
  --blockquoteBg: #fef6f4;
  --headerNoPicBg: #eaeaea;
}

/* --- ТЁМНАЯ ТЕМА ---
   Включается автоматически по системной настройке, либо кнопкой в шапке
   (data-theme на <html>, ставится скриптом в header.php / js/script.js). */

:root[data-theme="dark"] {
  --linkColor: #8fa8ff;
  --linkColorOpacity: 143, 168, 255;
  --visitedLinkColor: #c49ae0;
  --mainFontColor: #d6d6d6;
  --mainFontColorOpacity: 214, 214, 214;
  --bgColor: #1b1b1b;
  --bgRGB: 27, 27, 27;
  --bgAltColor: #242424;
  --headingColor: #f0f0f0;
  --mutedColor: #9a9a9a;
  --borderColor: #333333;
  --inputBorder: #444444;
  --blockquoteBg: #2a2220;
  --headerNoPicBg: #2a2a2a;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --linkColor: #8fa8ff;
    --linkColorOpacity: 143, 168, 255;
    --visitedLinkColor: #c49ae0;
    --mainFontColor: #d6d6d6;
    --mainFontColorOpacity: 214, 214, 214;
    --bgColor: #1b1b1b;
    --bgRGB: 27, 27, 27;
    --bgAltColor: #242424;
    --headingColor: #f0f0f0;
    --mutedColor: #9a9a9a;
    --borderColor: #333333;
    --inputBorder: #444444;
    --blockquoteBg: #2a2220;
    --headerNoPicBg: #2a2a2a;
  }
}

/* Компонентные поправки тёмной темы */
:root[data-theme="dark"] .logo img,
:root[data-theme="dark"] .comp_logos img {
  filter: invert(1) hue-rotate(180deg);
}
:root[data-theme="dark"] input[type="text"],
:root[data-theme="dark"] input[type="email"],
:root[data-theme="dark"] textarea {
  background-color: var(--bgColor);
  color: var(--mainFontColor);
}
:root[data-theme="dark"] .theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-light { display: inline; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo img,
  :root:not([data-theme="light"]) .comp_logos img {
    filter: invert(1) hue-rotate(180deg);
  }
  :root:not([data-theme="light"]) input[type="text"],
  :root:not([data-theme="light"]) input[type="email"],
  :root:not([data-theme="light"]) textarea {
    background-color: var(--bgColor);
    color: var(--mainFontColor);
  }
  :root:not([data-theme="light"]) .theme-icon-dark { display: none; }
  :root:not([data-theme="light"]) .theme-icon-light { display: inline; }
}

/* Кнопка переключения темы в шапке (перед «Есть проект?») */
#theme_toggle {
  flex-shrink: 0;
  margin-left: auto; /* прижимает блок кнопок к правому краю шапки */
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--inputBorder);
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  color: var(--headingColor);
  transition: border-color .33s ease-out;
}
#theme_toggle:hover {
  border-color: var(--headingColor);
}
.theme-icon-light { display: none; }

body {
  font-family: var(--mainFont);
  font-size: 20px;
  width: 100%;
  min-width: 320px;
  margin: 0 auto;
  color: var(--mainFontColor);
}

.hire_block {
  background-color: var(--bgAltColor);
  padding-bottom: 4em;
}

header, footer, .first_screen, .works, .works_pf, .comps, .infoblock, .testims, .hire_form {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1em 2% 0;
}

@media screen and (max-width:480px) {
  header, footer {
    padding: 1em 5% 0;
  }
}

h1 {
  color: var(--headingColor);
  font-family: var(--mainFont);
  font-size: 60px;
  font-style: normal;
  font-variant: normal;
  line-height: 1.267;
  padding-bottom: 0.25em;
}
h1.work_h1 {
  margin-bottom: 0em;
}

h2 {
  color: var(--headingColor);
  font-family: var(--mainFont);
  font-weight: 700;
  font-size: 40px;
  font-style: normal;
  font-variant: normal;
  line-height: 1.2em;
  margin-bottom: 10px;
  margin-top: 30px;
}

h2.subheader {
  font-weight: normal;
  font-size: 28px;
  line-height: 1.3em;
}

figure.wp-block-image + h2 {
  margin-top: 50px;
}

h3, h3#wc-comment-header {
  color: var(--headingColor);
  font-family: var(--mainFont);
  font-weight: 700;
  font-size: 30px;
  font-style: normal;
  font-variant: normal;
  line-height: 1.333;
  margin-bottom: 10px;
  margin-top: 30px;
}

h2+h3 {
  margin-top:15px;
}

h4, h5, h6 {
  font-family: var(--mainFont);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 10px;
}

@media screen and (max-width:768px) {
  h1 {
    font-size: 72px;
    line-height: 1em;
    margin-top: 2em;
  }
}

@media screen and (max-width:480px) {
  h1 {
    font-size: 36px;
    line-height: 1.2em;
    margin-top: 2em;
  }
  h2 {
    font-size: 28px;
    line-height: 1.2em;
  }
  h3 {
    font-size: 24px;
    line-height: 1.2em;
  }
}

a:link, a:focus, a:visited {
  color: var(--linkColor);
  border-bottom: 1px solid;
  border-bottom-color: rgba(var(--linkColorOpacity), 0.2);
  text-decoration: none;
  transition: border-bottom .33s ease-out, border-color .33s ease-out, color .33s ease-out;
}
a:hover {
  color: var(--linkColor);
  border-bottom: 1px solid;
  border-bottom-color: rgba(var(--linkColorOpacity), 1.0);
  transition: none;
  cursor: pointer;
}

p {
  font-family: var(--mainFont);
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 22px;
}

p.nopad {
  margin-bottom: 0 !important;
}

.blog_post_content p.lead_p {
  font-family: var(--mainFont);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 22px;
}

.blog_post_content p,
.post_list_item .post_cut p.lead_p {
  font-family: var(--blogFont);
  font-size: 20px;
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: normal;
}

.blog_post_content ul, .blog_post_content ol {
  font-family: var(--blogFont);
  font-size: 20px;
  line-height: 1.5;
  width: auto;
  padding-left: 18px;
}



img {
  height: auto;
}

.post_cut img {
  width: auto;
  height: auto;
}

.post_cut img.wp-post-image {
  margin-bottom: 2em;
}

p.comment {
	font-size: 14px;
	color:var(--addFontColor);
}

figure figcaption, p.wp-caption-text {
  color: var(--mutedColor);
  font-family: var(--mainFont);
  font-size: 14px;
  margin-bottom: 20px;
  margin-top: 0.5em;
  text-align: center;
}

.blocks-gallery-caption {
  flex-basis: 100%;
}

.red_button {
  background-color: #e3441f;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  font-family: var(--mainFont);
  font-size: 16px;
  color: #ffffff;
  padding: 15px 20px;
  box-shadow: none;
  border: 0;
  cursor: pointer;
  transition: background-color .33s ease-out;
}

.red_button:hover {
  background-color: #cd320e;
  transition: none;
}

.blog_post_content blockquote {
  display: block;
  background-color: var(--blockquoteBg);
  color: var(--mainFontColor);
  font-family: var(--mainFont);
  font-size: 20px;
  font-style: normal;
  font-weight: normal;
  line-height: 1.5;
  margin-top: 20px;
  margin-left: -30px;
  margin-right: -30px;
  padding-left: 50px;
  padding-top: 20px;
  padding-bottom: 30px;
  padding-right: 50px;
}

.blog_post_content blockquote p {
  font-family: var(--mainFont);
  font-size: 20px;
  font-style: normal;
  font-weight: normal;
  line-height: 1.5;
  width: 100%;
}

.blog_post_content blockquote p:last-child {
  margin-bottom: 0;
}


li:first-child {
  padding-top: 0;
  margin-top: 0;
  padding-bottom: 1em;
}

li {
  padding-bottom: 1em;
  width: auto;
  margin-bottom: 0;
  margin-top: 0;
}
/* Шапка: флекс, всё выровнено по вертикальному центру кнопки «Есть проект?» */
header {
  display: flex;
  align-items: center;
}
.hamburger {
  display: none;
}
.hamburger .line {
  width: 30px;
  height: 3px;
  background-color: var(--headingColor);
  display: block;
  margin: 4px auto;
  -webkit-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.hamburger:hover {
  cursor: pointer;
}
#hamburger_menu.is-active .line:nth-child(2) {
  opacity: 0;
}
#hamburger_menu.is-active .line:nth-child(1) {
  -webkit-transform: translateY(7px) rotate(45deg);
  -ms-transform: translateY(7px) rotate(45deg);
  -o-transform: translateY(7px) rotate(45deg);
  transform: translateY(7px) rotate(45deg);
}
#hamburger_menu.is-active .line:nth-child(3) {
  -webkit-transform: translateY(-7px) rotate(-45deg);
  -ms-transform: translateY(-7px) rotate(-45deg);
  -o-transform: translateY(-7px) rotate(-45deg);
  transform: translateY(-7px) rotate(-45deg);
}
#mobile_menu {
  display: none;
  background-color: var(--bgColor);
  position: absolute;
  left: 0;
  top:0;
/*width: 100%;*/
  height: 100%;
  padding-left: 20px;
  padding-top: 20px;
  z-index: 1000;
  -webkit-box-shadow: 0px 5px 15px 0px rgba(0,0,0,0.2);
  -moz-box-shadow: 0px 5px 15px 0px rgba(0,0,0,0.2);
  box-shadow: 0px 5px 15px 0px rgba(0,0,0,0.2);
}

#mobile_menu ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}

#mobile_menu ul li {
  padding-bottom: 0.5em;
}

#mobile_menu ul.main_menu_mobile li a {
  font-family: var(--mainFont);
  font-size: 20px;
  line-height: 1em;
  color: var(--headingColor);
  text-decoration: none;
  border: 0;
}

#mobile_menu ul.main_menu_mobile li a:focus {
  color: #e3441f;
}

.contacts_mobile {
  margin-bottom: 1em;
}

.contacts_mobile .phone{
  vertical-align: middle;
}

#mobile_menu .phone p {
  text-align: left;
}
#mobile_menu .second_menu_mobile, #mobile_menu .docs_menu_mobile {
  text-align: left;
}
#mobile_menu .second_menu_mobile ul, #mobile_menu .docs_menu_mobile ul {
  display: flex;
  flex-wrap: wrap;
}
#mobile_menu .second_menu_mobile ul li, #mobile_menu .docs_menu_mobile ul li {
  display: block;
  margin-right: 0.5em;
}

#mobile_menu .second_menu_mobile ul li a:link,
#mobile_menu .second_menu_mobile ul li a:visited,
#mobile_menu .docs_menu_mobile ul li a:link,
#mobile_menu .docs_menu_mobile ul li a:visited {
  font-family: var(--mainFont);
  color: var(--linkColor);
  font-size: 16px;
  line-height: 1em;
  border-bottom: 1px solid;
  border-bottom-color: rgba(var(--linkColorOpacity), 0.2);
  text-decoration: none;
  transition: border-bottom .33s ease-out, border-color .33s ease-out, color .33s ease-out;
}
#mobile_menu .second_menu_mobile ul li a:focus,
#mobile_menu .docs_menu_mobile ul li a:focus {
  color: var(--linkColor);
  border-bottom: 1px solid;
  border-bottom-color: rgba(var(--linkColorOpacity), 1.0);
  transition: none;
}
.is-visible {
  display: block !important;
}
.logo {
  flex-shrink: 0;
  margin-right: 2%;
}
.logo a {
  border: none;
  text-decoration: none;
  margin: 0;
  padding: 0;
}
.logo p {
  font-family: var(--mainFont);
  font-size: 10px;
  line-height: 1.5em;
  margin: 0;
  padding: 0;
}
#main_menu, #lang_menu {
  display: inline-block;
}
#main_menu ul {
  padding: 0;
  margin: 0;
}
#main_menu ul li {
  display: inline;
  padding: 0 15px;
}

#main_menu a:link, #main_menu a:visited {
  color: var(--headingColor);
  font-family: var(--mainFont);
  font-weight: bold;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 0;
  transition: border-bottom .33s ease-out, border-color .33s ease-out, color .33s ease-out;
}
#main_menu a:hover {
  color: var(--redColor);
  transition: none;
}

/* Подсветка текущего раздела в меню */
#main_menu .current-menu-item > a:link,
#main_menu .current-menu-item > a:visited,
#main_menu .current-menu-ancestor > a:link,
#main_menu .current-menu-ancestor > a:visited,
#main_menu .current_page_item > a:link,
#main_menu .current_page_item > a:visited {
  color: var(--redColor);
}

#mobile_menu .current-menu-item > a,
#mobile_menu .current-menu-ancestor > a {
  color: var(--redColor) !important;
}

#lang_menu li {
  display: inline-block;
}
#contacts {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 16px;
}
#contacts .phone, button {
  display: inline-block;
}
.phone {
  float: left;
  margin-right: 20px;
}
.phone a:link, .phone a:focus, .phone a:visited {
  color: var(--headingColor);
  border-bottom: 1px solid;
  border-bottom-color: rgba(var(--redColorOpacity), 0.2);
  text-decoration: none;
  transition: border-bottom .33s ease-out, border-color .33s ease-out, color .33s ease-out;
}
.phone a:hover {
  color: #e3441f;
  border-bottom: 1px solid;
  border-bottom-color: rgba(227, 68, 31, 1.0);
  transition: none;
}
#contacts button {
  margin: 0;
}
.phone p {
  font-family: var(--mainFont);
  font-weight: 700;
  font-size: 16px;
  text-align: right;
  margin: 0;
  padding: 0;
}
@media screen and (max-width:1000px) {
  .hamburger {
    display: block;
    z-index: 1001;
    margin-left: 20px;
    flex-shrink: 0;
  }
  .logo p, #main_menu, #lang_menu, #contacts {
    display: none;
  }
}
.index_page {
  margin-bottom: 2em;
}
.first_screen {
  margin: 9em auto 4em;
  padding: 0;
}
.red_border {
  display: block;
  width: 25%;
  height: 4px;
  background-color: #e3441f;
  margin-top: -20px;
  margin-bottom: 2em;
}
.first_screen h1 {
  font-family: var(--mainFont);
  font-size: 72px;
  line-height: 1.2em;
  margin-bottom: 0.4em;
  font-weight: bold;
}

.first_screen p {
  font-family: var(--mainFont);
  font-size: 24px;
  font-weight: bold;
  /* max-width: 700px; */
}
@media screen and (max-width:1600px) {
  .first_screen {
    padding-left: 5%;
    padding-right: 5%;
  }
}
@media screen and (max-width:768px) {
  .first_screen h1 {
    font-size: 72px;
    line-height: 1em;
    margin-top: 2em;
  }
}
@media screen and (max-width:480px) {
  .first_screen {
    margin: 6em auto 2em;
  }
  .first_screen h1 {
    font-size: 36px;
    margin-top: 2em;
  }
  .red_border {
    margin-top: 0;
    margin-bottom: 0;
  }
  .first_screen p {
    font-size: 20px;
  }
}
/* Сетка карточек портфолио: 1/2/3 колонки в зависимости от ширины экрана */
.pf_list {
  margin-top: 2em;
  margin-left: -40px;
  display: grid;
  gap: 20px;
}

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

@media (min-width: 601px) and (max-width: 1024px) {
  .pf_list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1025px) {
  .pf_list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.pf_card {
  margin-bottom: 2em;
  margin-left: 40px;
}

.pf_pic {
  display: table-cell;
  /*height: 400px;*/
  width: 100%;
  /*background-color: #eeeeee;*/
  text-align: center;
  vertical-align: middle;
}
.pf_pic a img {
  display: block;
  width: 100%;
  height: auto;
}
.pf_title {
  font-family: var(--mainFont);
  font-size: 16px;
  line-height: 1.5em;
  margin-bottom: 0.4em;
  text-align: left;
  color: var(--mainFontColor);
}

.pf_links {
  font-size: 16px;
}

.pf_links a {
  margin-right: 20px;
}

.pf_links_add {
  margin-top: 0.5em;
  font-size: 20px;
}

a.extlink:after {
  content: "";
  background-image: url(./images/extlink_icon.svg);
  width: 14px;
  height: 14px;
  display: inline-block;
  position: relative;
  left: 5px;
}
.comps {
  margin-bottom: 3em;
}
ul.comp_logos {
  margin: 0;
  padding: 0;
  font-family: var(--mainFont);
  list-style: none;
  list-style-type: none;
  display: -webkit-flex;
  -webkit-flex-flow: row wrap;
  display: flex;
  flex-flow: row wrap;
  justify-content: stretch;
}
.comp_logos li {
  flex-basis: 15%;
  margin-right: 5%;
  margin-top: 1em;
  margin-bottom: 1em;
}
.comp_logos li:first-child {
  margin-left: 0;
}
.comp_logos li:last-child {
  margin-right: 0;
}
.comp_logos li img {
  height: 45px;
  width: auto;
}
@media screen and (max-width:480px) {
  ul.comp_logos li {
    flex-basis: 40%;
  }
}
.work_style {
  display: inline-block;
  float: left;
  width: 45%;
  box-sizing: border-box;
  background-color: #fff3d1;
  padding: 0em 4em 2em 2em;
}
.blog_posts {
  display: inline-block;
  width: 45%;
  margin-left: 5%;
}
@media screen and (max-width:1000px) {
  .work_style, .blog_posts {
    display: block;
    width: 100%;
    margin: 0;
  }
  .work_style {
    margin-bottom: 2em;
  }
  .blog_posts {
    padding: 0 2em 0;
  }
}
@media screen and (max-width:480px) {
  .work_style, .blog_posts {
    width: 99%;
    padding-left: 2%;
    padding-right: 2%;
  }
  .work_style {
    margin-bottom: 2em;
  }
}
/* --- ОТЗЫВЫ ---
   Блок отзывов сейчас закомментирован в index.php. Если будете включать обратно:
   слайдер slick больше не подключается (см. footer.php) — потребуется вернуть
   CDN-подключение slick и его CSS. Инициализация в js/script.js уже есть (с проверкой). */
.testims {
  display: block;
  clear: both;
  width: 100%;
  margin-top: 6em;
}
.testim_block {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
}
.slide_left, .slide_right {
  height: 30px;
  width: 30px;
}
.slide_left {
  margin-left: 10%;
}
.slide_right {
  margin-right: 10%;
}
.slide_left a, .slide_right a {
  border: 0;
}

.testim_item {
  width: 60%;
  margin: 2em auto 1em;
  box-sizing: border-box;
  -webkit-box-shadow: 0px 20px 60px 0px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0px 20px 60px 0px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 20px 60px 0px rgba(0, 0, 0, 0.1);
  padding: 3em 4em 1em 4em;
}
.testim_text p {
  font-family: var(--mainFont);
  font-size: 16px;
  line-height: 1.6em;
}
@media screen and (max-width:1200px) {
  .testims {
    margin-top: 6em;
  }
  .testim_item {
    width: 80%;
  }
  .slide_left {
    margin-left: 5%;
  }
  .slide_right {
    margin-right: 5%;
  }
}
@media screen and (max-width:1000px) {
  .testims {
    margin-top: 2em;
  }
}
@media screen and (max-width:768px) {
  .testim_item {
    width: 100%;
  }
  .slide_left, .slide_right {
    display: none;
  }
}
@media screen and (max-width:480px) {
  .testim_item {
    margin: 1em auto 1em;
    box-sizing: border-box;
    -webkit-box-shadow: 0px 20px 60px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 20px 60px 0px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 20px 60px 0px rgba(0, 0, 0, 0.1);
    padding: 1em 2em 1em 2em;
  }
}
.intro_pic {
  width: 100%;
  margin-top: 40px;
}

.intro_pic img {
  width: 100%;
  height: auto;
}

/* Фон подставляется инлайн-стилем из шаблона (поле header_bg_image);
   здесь только запасной градиент на случай пустого поля */
.header_work_pic,
.header_blog_pic {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  padding: 8em 0 4em;
  margin: 2em auto 2em;
}

.header_blog_pic {
  padding: 4em 0 4em;
}

.header_work_pic *,
.header_blog_pic * {
  color: #ffffff !important;
}

.clear_page {
  margin-top: 6em;
}

.blog_post_content {
  width: 100%;
  margin: 0 auto;
}

/* Текстовая колонка статьи */
.blog_post_content p,
.blog_post_content h1,
.blog_post_content h2,
.blog_post_content h3,
.blog_post_content h4,
.blog_post_content h5,
.blog_post_content h6,
.blog_post_content blockquote,
.blog_post_content ul,
.blog_post_content ol,
.p_l_info,
.under_post,
.similar_posts,
.header_under_pic,
.blog_post_content img.in_img,
figure.in_img,
.blog_post_content .is-style-text-width,
.blog_post_content .video_div,
.social-likes,
.np,
.comment_block {
  width: 60%;
  max-width: 785px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   КАРТИНКИ И ВИДЕО В КОНТЕНТЕ — единая система размеров
   ==========================================================================
   Размер выбирается в редакторе, классы руками не прописываются:

   1. По умолчанию          — «широкая»: натуральный размер до 1200px, по центру
   2. Стиль «По ширине текста» (is-style-text-width) — колонка текста (60%, max 785px)
   3. Выравнивание «Во всю ширину» (alignfull)       — на всю ширину страницы
   4. «Широкая» (alignwide) — принудительно растянуть до 1200px

   Легаси-синонимы из старых постов (менять контент не нужно):
   in_img = «по ширине текста», full_w_img = «во всю ширину».
   Регистрация стилей блоков — inc/blocks.php (brandloga_register_media_sizes). */

figure.in_img,
.blog_post_content .is-style-text-width {
  margin-left: auto;
  margin-right: auto;
}

figure.wp-block-image:not(.wp-block) {
  margin-left: auto;
  margin-right: auto;
}

figure.in_img img,
.blog_post_content .is-style-text-width img,
.blog_post_content .is-style-text-width video {
  width: 100%;
}

.blog_post_content .header_under_pic h1 {
  width: 100%;
}

/* 1. По умолчанию: до 1200px, по центру; у фото — рамка */
.blog_post_content img,
.blog_post_content div.video_div,
.blog_post_content .wp-block-video,
.blog_post_content .wp-block-embed {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
  border: 1px solid var(--borderColor);
}

.blog_post_content div.video_div,
.blog_post_content .wp-block-video,
.blog_post_content .wp-block-embed {
  border: none;
}

.wp-block-gallery {
  margin-left: auto;
  margin-right: auto;
  max-width: 1600px !important;
}

/* 3. Во всю ширину страницы (alignfull; легаси full_w_img) */
.blog_post_content img.full_w_img,
.post_list_item img.in_img,
.post_list_item .post_cut img.in_img,
.blog_post_content div.full_w_img,
.blog_post_content figure.full_w_img,
.blog_post_content .alignfull,
.blog_post_content .alignfull img,
.blog_post_content .alignfull video {
  width: 100%;
}

.blog_post_content .alignfull {
  max-width: none;
}

/* 4. Широкая: растянуть до 1200px (alignwide) */
.blog_post_content .alignwide {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.blog_post_content .alignwide img,
.blog_post_content .alignwide video {
  width: 100%;
}

.link-toggle {
  margin-top: 2em;
  padding-bottom: 0.5em;
  display: flex;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: center;
}

.back_link {
  color: #0000ff;
  font-family: var(--mainFont);
  font-size: 16px;
  margin-top: 2em;
}

.link-toggle .back_link {
  margin-top: 0em;
}

.process_toggle a {
  font-size: 16px;
  display: inline-block;
  float: left;
  padding: 5px 10px;
  border: none;
  text-decoration: none;
  background-color: #f2f2f2;
  margin: 0;
}

.process_toggle a:first-child {
  border-radius: 70px 0px 0px 70px;
  -moz-border-radius: 70px 0px 0px 70px;
  -webkit-border-radius: 70px 0px 0px 70px;
  padding-left: 15px;
}

.process_toggle a:last-child {
  border-radius: 0px 70px 70px 0px;
  -moz-border-radius: 0px 70px 70px 0px;
  -webkit-border-radius: 0px 70px 70px 0px;
  padding-right: 15px;
}

.process_toggle a.toggled {
  background-color: #c9e3f7;
}

.process_toggle a:hover {
  text-decoration: none;
  border: none;
  color: white;
  cursor: pointer;
  background-color: var(--linkColor);
  transition: background-color .15s ease-out;
}

.header_no_pic {
  padding: 2em 0 1em;
  background-color: var(--headerNoPicBg);
  width: 100%;
  margin: 2em auto 2em;
}

.header_no_pic .link-toggle,
.header_no_pic h1,
.header_no_pic h2.subheader,
.header_no_pic p,
.header_work_pic .link-toggle,
.header_work_pic h1,
.header_work_pic p,
.header_under_pic p {
  width: 100%;
  max-width: 785px;
  margin: 0 auto;
}

@media screen and (max-width:1000px) {
  .header_no_pic .link-toggle,
  .header_no_pic h1,
  .header_no_pic h2.subheader {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
}

.header_work_pic .link-toggle .process_toggle a {
  border: 1px solid #ffffff;
  background: none;
}

.header_work_pic .link-toggle .process_toggle a.toggled {
  border: 1px solid #c9e3f7;
  background-color: #c9e3f7;
  color: var(--mainFontColor) !important;
}

.header_work_pic .link-toggle .process_toggle a:hover {
  text-decoration: none;
  color: white;
  cursor: pointer;
  background-color: var(--linkColor);
  /*border: 1px solid var(--linkColor);*/
  transition: background-color .15s ease-out;
}
.header_under_pic h1 {
  clear: both;
}
@media screen and (max-width:1000px) {
  .blog_post_content,
  .similar_posts,
  .header_work_pic .link-toggle,
  .header_work_pic h1,
  .header_work_pic p,
  .np,
  .comment_block {
    width: 90%;
    margin: 0 auto;
  }

  .blog_post_content p,
  .blog_post_content h1,
  .blog_post_content h2,
  .blog_post_content h3,
  .blog_post_content h4,
  .blog_post_content h5,
  .blog_post_content h6,
  .blog_post_content blockquote,
  .blog_post_content ul,
  .blog_post_content ol,
  .blog_post_content img,
  .blog_post_content img.in_img,
  figure.in_img,
  .blog_post_content .is-style-text-width,
  .blog_post_content figure,
  .blog_post_content .video_div,
  .p_l_info,
  .under_post,
  .header_under_pic,
  .social-likes {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  blockquote {
  width: auto !important;
  padding-left: 30px;
  padding-top: 20px;
  padding-bottom: 30px;
  padding-right: 50px;
  }

  .blog_post_content figure.full_w_img a img {
    max-width: 100%;
  }
}

@media screen and (max-width:768px) {
  .header_under_pic h1 {
    margin-top: 0.5em;
  }

  blockquote {
  padding-left: 20px;
  padding-top: 20px;
  padding-bottom: 30px;
  padding-right: 20px;
  }

  .link-toggle .back_link {
    margin-top: 0em;
    margin-bottom: 0em;
  }
}

@media screen and (max-width:480px) {
  .link-toggle .back_link {
    margin-top: 0em;
    margin-bottom: 1.5em;
  }
}

.under_post {
  display: flex;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  height: 20px;
  align-items: baseline;
}

.date {
  font-family: var(--mainFont);
  font-size: 14px;
  color: var(--mainFontColor);
  margin-right: 50px;
}

.post_list_item {
  margin-bottom: 2.5em;
}

.post_list_item h2 {
  margin-bottom: 0.5em;
  line-height: 1.2em;
}

.post_list_item a:link, .post_list_item a:focus {
  color: var(--mainFontColor);
  border-bottom-color: rgba(var(--mainFontColorOpacity), 0.2);
  text-decoration: none;
  transition: border-bottom .33s ease-out, border-color .33s ease-out, color .33s ease-out;
}

.post_list_item a:visited {
  color: var(--visitedLinkColor);
  text-decoration: none;
  transition: border-bottom .33s ease-out, border-color .33s ease-out, color .33s ease-out;
}

.post_list_item a:hover {
  color: var(--linkColor);
  border-bottom-color: rgba(var(--linkColorOpacity), 1.0);
  transition: none;
}

.post_list_item img {
  padding-bottom: 0.5em;
}

.post_list_item .post_cut p:last-child {
  margin-bottom: 0.5em;
}

.tags {
  padding: 0;
  margin: 0;
}

.tags a {
    display: inline;
    margin-right: 15px;
}

.tags  a:link, .tags  a:visited, .tags  a:focus {
  font-family: var(--mainFont);
  font-size: 14px;
  color: var(--mutedColor);
  border-bottom-color: rgba(102, 102, 102, 0.5);
  text-decoration: none;
}

.tags a:hover {
  color: var(--headingColor);
  border-bottom-color: rgba(102, 102, 102, 1.0);
  transition: border-bottom .33s ease-out, border-color .33s ease-out, color .33s ease-out;
}

.social-likes {
  display: block;
  margin-top: 1em;
}

.np {
	display: flex;
  justify-content: space-between;
	/* overflow: auto; */
	margin-top: 2em;
	font-size: 16px;
}

.np__left {
	float: left;
	width: 25%;
}

.np__right {
	float: right;
	width: 25%;
}

@media screen and (max-width:768px) {
	.np__left, .np__right {
		width: 45%;
	}
}

@media screen and (max-width:480px) {
  .under_post {
    margin-bottom:3em;
  }
}


.np__left a,
.np__right a {
	border: none;
}

.name-work-first {
	font-size: 14px;
	color: var(--mutedColor);
	display: block;
}

.name-work {
	border-bottom: 1px solid;
	border-bottom-color: rgba(var(--linkColorOpacity), 0.2);
	transition: border-bottom .33s ease-out, border-color .33s ease-out, color .33s ease-out;
}

.np__left a:hover .name-work,
.np__right a:hover .name-work {
	border-bottom-color: rgba(var(--linkColorOpacity), 1.0);
	transition: none;
}

.similar_posts {
  margin-top: 3em;
  display: block;
  clear: both;
}

.similar_posts ul, .blog_posts ul {
  list-style: none;
  padding: 0;
}

.similar_posts ul li, .blog_posts ul li {
  padding: 0;
  margin: 0 0 10px 0;
}

.similar_posts ul li a {
  font-family: var(--mainFont);
  font-size: 16px;
}

.blog_posts ul li a {
  font-family: var(--mainFont);
  font-size: 20px;
}

.hire_form {
  margin-top: 4em;
}

.hire_form, .hire_form p {
  font-family: var(--mainFont);
  display: block;
}

.input_inline {
  display: inline-block;
}

.hire_form label {
  display: block;
  font-size: 16px;
  line-height: 2em;
}
.hire_form input[type="input"], input[type="text"], .hire_form input[type="email"], .hire_form textarea {
  border: solid 1px var(--inputBorder);
  padding: 15px 10px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  box-sizing: border-box;
}
.hire_form input[type="input"], input[type="text"], .hire_form input[type="email"] {
  width: 300px;
  margin-right: 20px;
  margin-bottom: 20px;
}
.txtarea {
}

.hire_form textarea {
  width: 620px;
  height: 150px;
}
.hire_form input:focus, .hire_form textarea:focus {
  border: solid 1px #00ff00;
}
.form_files {
  width: 620px;
  display: flex;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  margin-bottom: 20px;
  margin-top: 10px;
  flex-flow: row wrap;
  justify-content: space-between;
}
.attach, .dwd_brief {
  font-size: 14px;
}
.attach {
  margin-top: -7px;
  cursor: pointer;
}
.attach img {
  height: 16px;
  width: auto;
  display: inline-block;
}
.attach input {
  margin-top: -7px;
  display: none !important;
}
input[type="checkbox"] {
  width: 19px;
  height: 19px;
  margin-right: 10px;
  margin-top: 20px;
}
.hire_form label.agree {
  font-size: 14px;
  position: relative;
  top: 20px;
}

.hire_form label.agree input[type="checkbox"] {
  margin-top: 0;
}


@media screen and (max-width:1000px) {
  .hire_form {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  .hire_form input[type="input"], .hire_form input[type="email"], .hire_form textarea, .hire_form .form_files {
    width: 100%;
    margin-right: 20px;
    margin-bottom: 20px;
  }
}
@media screen and (max-width:480px) {
  .hire_form {
    margin-top: 2em;
  }
  .hire_form textarea {
    margin-bottom: 0;
  }
  .input_inline {
    display: block;
  }
  .attach {
    margin-bottom: 0.5em;
  }
}

.blog_post_content .page_content p,
.blog_post_content .page_content li {
  font-family: var(--pageFont);
  font-size: 20px;
  line-height: 1.5;
}

.blog_post_content .page_content ul,
.blog_post_content .page_content ol {
  padding-left: 25px;
}

.blog_post_content ul li,
.blog_post_content ol li,
.blog_post_content .page_content ul li,
.blog_post_content .page_content ol li {
  padding-left: 5px;
}

footer {
  display: flex;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 4em;
  padding-bottom: 2em;
}

footer * {
  font-family: var(--mainFont);
  font-size: 16px;
}

footer ul {
  list-style: none;
}

.copyright {
  order: 1;
  flex-basis: 50%;
}

.footer_contacts {
  text-align: right;
  order: 2;
  flex-basis: 50%;
}

.copyright *, .footer_contacts * {
  margin-bottom: 10px;
}
.docs_menu {
  order: 3;
  flex-basis: 50%;
}
.footer_menu {
  text-align: right;
  order: 4;
  flex-basis: 50%;
}
.footer_contacts ul, .footer_menu ul, .docs_menu ul {
  margin: 0;
  padding: 0;
}
.footer_contacts ul li, .footer_menu ul li, .docs_menu ul li {
  display: inline;
  margin-right: 20px;
  line-height: 1.6em;
}
.footer_contacts ul li:last-child, .footer_menu ul li:last-child, .docs_menu ul li:last-child {
  margin-right: 0px;
}
span.wpcf7-not-valid-tip {
  margin-top: -20px;
  font-size: 14px;
}
.toggled{
  cursor: inherit !important;
}

.toggled:hover{
      color: #000 !important;
      background-color: #c9e3f7 !important;
}

@media screen and (max-width:1000px) {
  footer {
    align-items: baseline;
  }
  .footer_menu, .docs_menu {
    flex-basis: 100%;
    text-align: left;
    margin-bottom: 1em;
  }
  .footer_menu {
    order: 3;
  }
}
@media screen and (max-width:768px) {
  .copyright, .footer_contacts, .footer_menu, .docs_menu {
    flex-basis: 100%;
    text-align: left;
    margin-bottom: 1em;
  }
}

/* --- ФИЛЬТР РАБОТ ПО ТЕГАМ ---
   Кнопки выводит bl_render_tag_filter() (inc/blocks.php), список тегов
   редактируется на странице «Внешний вид → Главная страница».
   Логика — blocks/tag-filter.js. */

.bl-tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 0 1.5em;
  font-family: var(--mainFont);
}

/* На главной фильтр лежит прямо в article.index_page (полная ширина) —
   ограничиваем той же колонкой, что и сетка работ */
.index_page > .bl-tag-filter {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2%; /* та же коробка, что у .works — края совпадают */
}

.bl-tag-filter button {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--mainFont);
  font-size: 20px;
  color: var(--linkColor);
  border-bottom: dashed 1px rgba(var(--linkColorOpacity), 0.5);
  cursor: pointer;
}

.bl-tag-filter button:hover {
  border-bottom-color: rgba(var(--linkColorOpacity), 1);
}

.bl-tag-filter button.active {
  color: var(--mainFontColor);
  border-bottom: none;
  font-weight: bold;
  cursor: default;
}

.bl-tag-hidden {
  display: none !important;
}

/* --- СООБЩЕНИЯ КОНТАКТНОЙ ФОРМЫ (Contact Form 7) --- */

.wpcf7 form .wpcf7-response-output {
  margin: 1em 0 0;
  padding: 12px 16px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
}

.wpcf7 form.sent .wpcf7-response-output {
  background-color: #e6f4e6;
  color: #1d6f1d;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
  background-color: #fdecea;
  color: #b32d2e;
}

/* --- ТАБЫ и СКРЫВАШКИ ---
   Разметку выводят блоки темы brandloga/tabs и brandloga/collapsible (inc/blocks.php);
   те же классы используются в легаси-разметке старых постов.
   Поведение: js/tabs.js (вкладки) и blocks/collapsible-frontend.js (скрывашки). */

.box {
    display: none;
    padding: 0px !important;
    background-color: var(--bgColor);
}
.box.visible {
    display: block;
    padding: 10px;
}

ul.tabs {
    margin-top:2em;
    height: 27px;
    background: var(--bgColor);
    padding: 0 4px;
    overflow: hidden;
    list-style: none;
}

ul.tabs *{
    font-family: var(--mainFont);
    font-size: 20px;
}

.tabs li.current, .tabs li.current:hover {
  color:var(--mainFontColor);
  border-bottom: none;
  font-weight: bold;
}

.tabs li:hover {
  color:var(--linkColor);
  border-bottom: dashed 1px rgba(var(--linkColorOpacity),1.00);
}

.tabs li {
    float: left;
    color:var(--linkColor);
    border-bottom: dashed 1px rgba(var(--linkColorOpacity),0.50);
    margin-right: 20px !important;
    padding: 0 !important;
    cursor: pointer;
}

@media screen and (max-width:360px) {
  ul.tabs {
      height: auto;
      }

  .tabs li {
    margin-bottom: 0.5em;
  }
}

/* Скрывашки */

.open-link {
  text-align:center;
  display: block;
  margin:10px auto 3em;
}

.pseudo-link {
  font-size: 16px;
  color:var(--linkColor);
  border-bottom: dashed 1px rgba(var(--linkColorOpacity),0.50);
}

.pseudo-link:hover {
  border-bottom: dashed 1px rgba(var(--linkColorOpacity),1.00);
  cursor:pointer;
}

.list {
    position:relative;
    height: 500px;
    overflow:hidden;
}
   
.list:after {
    content:"";
    display:block;
    position:absolute;
    background: linear-gradient(to bottom, rgba(var(--bgRGB), 0) 0, rgba(var(--bgRGB), 1) 100%);
    height: 100px;
    width:100%;
    bottom:0;
}

.list._opened {
    height: auto;
}

.list._opened:after {
    display:none; 
}

/*ПЛАГИНЫ
Worpress Simple Lightbox*/

div.slb_details {
	display: none !important;
}

/*Пагинация*/

#pagimore {
	display: -webkit-flex;
	display: flex;
	overflow: auto;
	flex-direction: row;
	justify-content: center;
	width: 100%;
}

#misha_pagination .nav-links .page-numbers,
#misha_loadmore {
  	background-color: var(--bgColor);
	color: var(--mainFontColor);
	border-color: rgba(var(--linkColorOpacity), 0.2) !important;
	border: 1px solid;
	-webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    float: left;
    transition: border-color .33s ease-out;
    margin-right: 1em;
    cursor: pointer;
 }

#misha_pagination .nav-links .current {
	background-color: var(--linkColor);
	color: #ffffff;
}

#misha_pagination .nav-links .page-numbers:hover,
#misha_loadmore:hover {
    border-color: var(--linkColor) !important;
    border-bottom: 1px solid;
    transition: none;
    cursor: pointer;
}

 #misha_pagination .nav-links .page-numbers:last-child {
	margin-right: 0;
}

#misha_loadmore {
	margin: 0 1em;
}

@media screen and (max-width:480px) {
	#pagimore {
		flex-direction: column;
		align-items: center;
	}

	 #misha_pagination {
	 	margin-bottom: 1em;
	 }


}

 /*Вставка ютуба*/

.blog_post_content .video_div {
padding: 1em 0 2em;
}

.youtube {
  position:relative;
  padding-bottom:56.25%; /* задаёт высоту контейнера для 16:9 (если 4:3 — поставьте 75%) */
  padding-top:50px;
  height:0;
  overflow:hidden;
}
 
.youtube iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.add-more{ 
  display: flex !important;
    overflow: auto !important;
    flex-direction: row !important;
    justify-content: center !important;
    width: 100% !important;
}

/* --- ВНЕШНИЕ ССЫЛКИ (класс external-link ставит js/external-link.js) --- */

/* Стрелочка для текстовых ссылок, исключая ссылки в изображениях */
.external-link:not(:has(img))::after {
  content: "\2197"; /* Unicode стрелка вверх и вправо */
  font-size: 12px;
  margin-left: 5px;
  display: inline-block; /* Убедимся, что псевдоэлемент отображается как инлайн-блок */
  vertical-align: middle; /* Центрируем стрелочку относительно текста */
}

/* Убираем стрелочку для ссылок в футере */
footer .external-link::after {
  content: none;
}

/* Стили для самой ссылки */
.external-link {
  text-decoration: none; /* Отменяет стандартное подчеркивание ссылки */
  position: relative; /* Позволяет правильно отображать псевдоэлемент */
}

/* Изменение цвета стрелочки при наведении на ссылку */
.external-link:hover::after {
  color: #0073aa;
}


.work_item {
  margin-bottom: 2em;
}

.one-column {
  width: 100%;
}

.one-column .work_image img {
  width: 100%; /* Масштабируем изображение по ширине контейнера */
  height: auto; /* Сохраняем пропорции изображения */
  display: block;
}

.works {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  /* width: 100%; */
}

.two-column {
  flex: 1 1 calc(50% - 1em); /* Задаем ширину для двух колонок */
  box-sizing: border-box;
}

.two-column .work_image {
  width: 100%;
  overflow: hidden;
}

.two-column .work_image img {
  width: 100%; /* Масштабируем изображение по ширине контейнера */
  height: auto; /* Сохраняем пропорции изображения */
  display: block;
}

@media screen and (max-width: 768px) {
  .works {
      flex-direction: column;
  }

  .two-column {
      width: 100%;
  }

  .work_item {
    margin-bottom: 0em;
  }
  
}


/* Содержание (плагин LuckyWP Table of Contents) */
.lwptoc {
  margin: auto !important;
  max-width: 785px !important;
  margin-bottom: 2em !important;
  margin-top: 2em !important;
}

.lwptoc_i {
  width: 100% !important;
  margin: auto !important;
}

@media (max-width: 600px) {
  .lwptoc_i {
  width: auto !important;
  }
}
