/*!
Theme Name: tesoriae
Theme URI: https://keysoft-dev.com/
Author: Keysoft
Author URI: https://keysoft-dev.com/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: tesoriae
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

tesoriae is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | 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 iOS.
 */

:root {
  --sb-size: 10px;
  --sb-track: rgba(255, 255, 255, 0.06);
  --sb-thumb: #fff;
  --color-text: #536B74;
  --color-main: #26394A;
  --color-white: #f8feff;

  --brand-line-length: 145vh;
  --brand-line-color: #f8feff;
  --brand-line-thickness: 1px;
  --brand-line-gap: 16px;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--sb-thumb) var(--sb-track);
}
::-webkit-scrollbar {
  width: var(--sb-size);
  height: var(--sb-size);
}
::-webkit-scrollbar-track {
  background: var(--sb-track);
}
::-webkit-scrollbar-thumb {
  background: var(--sb-thumb);
  border-radius: 8px;
}
/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/**
 * 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
	 ========================================================================== */

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

/**
 * 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;
  font-size: 1em;
}

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

/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

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

/**
 * 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;
  font-size: 1em;
}

/**
 * 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
	 ========================================================================== */

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

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

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
}

/**
 * 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;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
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;
  padding: 0;
}

/**
 * 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;
  outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[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;
  font: inherit;
}

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

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

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

/* Misc
	 ========================================================================== */

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

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
  color: var(--color-text);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  background: #f8feff;
}
body{
  font-size:16px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  clear: both;
}

p {
  margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
  font-style: italic;
}

blockquote {
  margin: 0 1.5em;
}

address {
  margin: 0 0 1.5em;
}

pre {
  background: #eee;
  font-family: 'Courier 10 Pitch', courier, monospace;
  line-height: 1.6;
  margin-bottom: 1.6em;
  max-width: 100%;
  overflow: auto;
  padding: 1.6em;
}

code,
kbd,
tt,
var {
  font-family: monaco, consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace;
}

abbr,
acronym {
  border-bottom: 1px dotted #666;
  cursor: help;
}

mark,
ins {
  background: #fff9c0;
  text-decoration: none;
}

big {
  font-size: 125%;
}

/* Elements
--------------------------------------------- */

hr {
  background-color: #ccc;
  border: 0;
  height: 1px;
  margin-bottom: 1.5em;
}

ul,
ol {
  margin: 0 0 1.5em 3em;
}

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

li > ul,
li > ol {
  margin-bottom: 0;
  margin-left: 1.5em;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
  max-width: 100%;
}

img {
  height: auto;
  max-width: 100%;
}

figure {
  margin: 1em 0;
}

table {
  margin: 0 0 1.5em;
  width: 100%;
}

/* Links
--------------------------------------------- */
a {
  color: #4169e1;
}

a:visited {
  color: #800080;
}

a:hover,
a:focus,
a:active {
  color: #191970;
}

a:focus {
  outline: thin dotted;
}

a:hover,
a:active {
  outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type='button'],
input[type='reset'],
input[type='submit'] {
  border: 1px solid;
  border-color: #ccc #ccc #bbb;
  border-radius: 3px;
  background: #e6e6e6;
  color: rgba(0, 0, 0, 0.8);
  line-height: 1;
  padding: 0.6em 1em 0.4em;
}

button:hover,
input[type='button']:hover,
input[type='reset']:hover,
input[type='submit']:hover {
  border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type='button']:active,
input[type='button']:focus,
input[type='reset']:active,
input[type='reset']:focus,
input[type='submit']:active,
input[type='submit']:focus {
  border-color: #aaa #bbb #bbb;
}

input[type='text'],
input[type='email'],
input[type='url'],
input[type='password'],
input[type='search'],
input[type='number'],
input[type='tel'],
input[type='range'],
input[type='date'],
input[type='month'],
input[type='week'],
input[type='time'],
input[type='datetime'],
input[type='datetime-local'],
input[type='color'],
textarea {
  color: #666;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 3px;
}

input[type='text']:focus,
input[type='email']:focus,
input[type='url']:focus,
input[type='password']:focus,
input[type='search']:focus,
input[type='number']:focus,
input[type='tel']:focus,
input[type='range']:focus,
input[type='date']:focus,
input[type='month']:focus,
input[type='week']:focus,
input[type='time']:focus,
input[type='datetime']:focus,
input[type='datetime-local']:focus,
input[type='color']:focus,
textarea:focus {
  color: #111;
}

select {
  border: 1px solid #ccc;
}

textarea {
  width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
  display: block;
  width: 100%;
}

.main-navigation ul {
  display: none;
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.main-navigation ul ul {
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
  float: left;
  position: absolute;
  top: 100%;
  left: -999em;
  z-index: 99999;
}

.main-navigation ul ul ul {
  left: -999em;
  top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
  display: block;
  left: auto;
}

.main-navigation ul ul a {
  width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
  left: auto;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: block;
  text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
  display: block;
}

@media screen and (min-width: 37.5em) {
  .menu-toggle {
    display: none;
  }

  .main-navigation ul {
    display: flex;
  }
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
  margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
  display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
  flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
  text-align: end;
  flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
  display: block;
}

.post,
.page {
  margin: 0;
}

.updated:not(.published) {
  display: none;
}

.page-content,
.entry-content,
.entry-summary {
  margin: 1.5em 0 0;
}

.page-links {
  clear: both;
  margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
  word-wrap: break-word;
}

.bypostauthor {
  display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
  margin: 0 0 1.5em;
}

.widget select {
  max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
  border: none;
  margin-bottom: 0;
  margin-top: 0;
  padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
  display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
  margin-bottom: 1.5em;
  max-width: 100%;
}

.wp-caption img[class*='wp-image-'] {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption .wp-caption-text {
  margin: 0.8075em 0;
}

.wp-caption-text {
  text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
  margin-bottom: 1.5em;
  display: grid;
  grid-gap: 1.5em;
}

.gallery-item {
  display: inline-block;
  text-align: center;
  width: 100%;
}

.gallery-columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
  grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
  grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
  grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
  grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
  grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
  display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
  display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
  display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex='-1']:focus {
  outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {
  /*rtl:ignore*/
  float: left;

  /*rtl:ignore*/
  margin-right: 1.5em;
  margin-bottom: 1.5em;
}

.alignright {
  /*rtl:ignore*/
  float: right;

  /*rtl:ignore*/
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5em;
}

.container {
  width: 100%;
  max-width: 1650px;
  margin-left: auto;
  margin-right: auto;
  padding-right: 24px;
  padding-left: 24px;
}
.flex {
  display: flex;
}
.items-center {
  align-items: center;
}
.items-end {
  align-items: flex-end;
}
.justify-between {
  justify-content: space-between;
}
.justify-center {
  justify-content: center;
}
.footer {
  background: var(--color-main);
  border-radius: 16px;
  margin-top: 80px;
  margin-bottom:24px;
}
.footer .container {
  padding: 24px;
}
.footer .copyright {
  border-top: 1px solid #f3f4ec33;
  display: flex;
  align-items: center;
  color: #b0b0b0;
  justify-content: space-between;
}
.ftr_logo {
  max-width: 100px;
}
.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ftr_col .ftr_title {
  font-size: 1.5em;
  color: var(--color-white);
  font-weight: 500;
  margin-bottom: 0;
  margin-top:0;
}
.footer ul a {
  text-decoration: none;
  color: #b0b0b0;
  display: block;
  padding: 4px 0;
}
.copyright ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  font-weight: 300;
}
.copyright ul li:first-child {
  list-style: none;
}
.copyright ul li {
  margin-right: 24px;
  position:relative;
  padding-right:24px;
}
.copyright ul li a {
  text-decoration: none;
  color: #b0b0b0;
  
}
.copyright ul li:after{
  content:'';
  border-radius:50%;
  position:absolute;
  width:4px;
  height:4px;
  background:  #B0B0B0;
  right:0;
  top:calc(50% - 2px);
}
.copyright ul li:last-child:after{
  display:none; 
}
.copyright ul i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b0b0b0;
}
.copyright ul li a:hover {
  color: #fff;
  transition: 0.3s;
}
.footer .ftr_col {
  width: 220px;
  padding-right: 16px;
}
.footer .ftr_col.col_main {
  width: calc(100% - 700px);
  padding-right: 5%;
  display:flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
.footer .ftr_col.col_main .btn{
  margin-top:auto;
  padding:8px 36px 8px 16px;
  border-radius: 8px;
}
.footer .ftr_desc {
  color: #b0b0b0;
  font-size: 1.15em;
  margin: 15px 0;
}
.header {
  padding: 0 24px;
  position: relative;
  background: var(--color-white);
  z-index: 100;
}
.menu_btn {
  padding-top: 6px;
  height: 30px;
  width: 30px;
  position: relative;
  z-index: 102;
  cursor: pointer;
  display: none;
}
.mobile_menu {
  display: none;
}
.sub-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.menu_btn-line {
  height: 2px;
  width: 30px;
  display: block;
  margin-bottom: 7px;
  cursor: pointer;
  -webkit-transition: background-color 0.5s ease, -webkit-transform 0.2s ease;
  transition: background-color 0.5s ease, -webkit-transform 0.2s ease;
  transition: transform 0.2s ease, background-color 0.5s ease;
  transition: transform 0.2s ease, background-color 0.5s ease, -webkit-transform 0.2s ease;
}
.header .menu_btn-line,
.nav-active .header.transparent .menu_btn-line {
  background-color: var(--color-main);
}
.header.transparent .menu_btn-line {
  background-color: var(--color-white);
}
body.nav-active .menu_btn-line {
  background-color: var(--color-main);
  -webkit-transform: translate(0px, 0px) rotate(-45deg);
  transform: translate(0px, 0px) rotate(-45deg);
}

body.nav-active .menu_btn-line:nth-child(1) {
  width: 15px;
  -webkit-transform: translate(2px, 4px) rotate(45deg);
  transform: translate(2px, 4px) rotate(45deg);
}

body.nav-active .menu_btn-line:nth-child(3) {
  width: 15px;
  float: right;
  -webkit-transform: translate(-3px, -3.5px) rotate(45deg);
  transform: translate(-3px, -3.5px) rotate(45deg);
}

.header.transparent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
}
.menu-open .header.transparent {
  background: var(--color-white);
}
.header .flex {
  border-bottom: 1px solid #371f1d0d;
}
.header.transparent .flex {
  border-bottom: 1px solid #ffffff1a;
}
.header.transparent a {
  color: #fff;
}
.menu-open .header.transparent a {
  color: var(--color-text);
}
.logo {
  max-width: 100px;
}
.logo .logo-white {
  display: none;
}
.logo .logo-dark {
  display: block;
}
.header.transparent .logo .logo-white,
.menu-open .header .logo .logo-dark,
.menu-open .header.transparent .logo .logo-dark {
  display: block;
}
.header.transparent .logo .logo-dark,
.menu-open .header .logo .logo-white,
.menu-open .header.transparent .logo .logo-white {
  display: none;
}

.top_menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.top_menu .menu {
  display: flex;
  gap: 16px;
}
.top_menu .menu-item.menu-item-has-children > a {
  padding-right: 24px;
  position: relative;
  cursor: pointer;
  display: block;
}
.top_menu .menu-item.menu-item-has-children > a:before {
  content: '';
  width: 20px;
  position: absolute;
  bottom: 40%;
  right: 2px;
  opacity: 0.6;
  height: 20px;
  transform: rotate(0);
  transition: 0.5s;
  background: url('images/arrow-down-right.png') 50% 50% / contain no-repeat;
}

.header.transparent .top_menu .menu-item.menu-item-has-children > a:before {
  background-image: url('images/arrow-down-right-white.png');
}
.menu-open .header .top_menu .menu-item.menu-item-has-children > a:before {
  background-image: url('images/arrow-down-right.png');
}

.top_menu .menu-item.menu-item-has-children > a:hover:before,
.top_menu .menu-item.menu-item-has-children.is-open > a:before {
  opacity: 1;
  transform: rotate(-135deg);
  transition: 0.5s;
  bottom: 35%;
}
.header.transparent .top_menu .menu-item a {
  color: var(--color-white);
  transition: 0.3s;
}
.menu-open .header.transparent .top_menu .menu-item a {
  color: var(--color-text);
  transition: 0.3s;
}
.top_menu .menu-item a {
  display: block;
  color: var(--color-text);
  text-decoration: none;
  padding: 8px;
}
.top_menu .menu-item a:hover {
  text-decoration: underline;
}

.top_contact a {
  text-decoration: none;
  color: var(--color-text);
}
.mini_title {
  color: #A89F99;
  font-size: 1em;
  font-weight: 400;
  margin-bottom: 16px;
}
.section_about {
  border-radius: 32px 32px 0 0;
  padding: 64px 24px 120px;
  overflow: hidden;
  position: relative;
  z-index: 4;
  background: var(--color-white);
}

.section_about .flex {
  justify-content: space-between;
}
.main_about_block .mini_title{
  width:35%;
}
.main_about_block .main_about{
  width:65%;
}
.main_about_block .main_about_text{
  font-size: 3em;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0%;
  text-align: left;
  padding: 24px 0;
  white-space: normal;
}
.about_text {
  font-size: 3em;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0%;
  text-align: left;
  padding: 24px 0;
  white-space: normal;
}
.about_text .small_text {
  font-size: 0.5em;
  font-weight: 500;
  margin-top: 16px;
}
.about {
  max-width: 55%;
}

.swiper {
  width: 100%;
  height: 100%;
  max-height: 100vh;
}

.swiper-slide {
  text-align: center;
  background: #444;
  display: flex;
  justify-content: center;
  align-items: center;
}
.swiper-slide .brand_item_image {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
}
.swiper-slide .brand_item_image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand_item,
.main_space_item {
  display: flex;
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
}
.main_space_item {
  min-height: 100svh;
  align-items: center;
  justify-content: space-between;
}
.main_space_item .btn {
  margin-top: auto;
  margin-right: 48px;
  margin-bottom: 32px;
}
.brand_item .left,
.main_space_item .left {
  width: 60%;
  padding: 24px 24px 24px 10%;
  display: flex;
  align-items: center;
}
.brand_item .right,
.main_space_item .right {
  width: 40%;
  padding: 36px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.main_space_item .right {
  justify-content: flex-end;
}
.brand_name,
.main_space_item .space_name {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  isolation: isolate; /* чтобы линии не перекрывали клики по тексту/логотипу */
}
.brand_name .name{
  overflow: hidden;
}
.brand_name .name a,
.main_space_item .space_name a {
  color: var(--color-white);
  text-decoration: none;
  display:inline-block;
  padding-right:32px;
  position:relative;
}
.brand_name .name a:before,
.main_space_item .space_name a:before{
  content:'';
  position:absolute;
  height:20px;
  width:20px;
  right:0;
  top: calc(50% - 10px);
  opacity:0.5;
  background:url('images/arrow-right-white.png') center center no-repeat;
}
.brand_name .name a:hover:before,
.main_space_item .space_name a:hover:before{
  opacity: 1;
  transition: .3s;
}
.brand_name .subtitle,
.space_name .subtitle {
  margin-right: 0;
  color: var(--color-white);
}
.space_name .space_info {
  color: var(--color-white);
  padding-left: 48px;
}

.brand_name .lines,
.space_name .lines {
  position: relative;
  width: var(--brand-line-gap);
  height: 1px;
  flex: 0 0 auto;
  pointer-events: none;
  opacity: 0;
}

.brand_name .lines::before,
.brand_name .lines::after,
.space_name .lines::before,
.space_name .lines::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  height: var(--brand-line-thickness);
  width: calc(var(--brand-line-length) / 2);
  background: var(--brand-line-color);
  transform-origin: left center;
  opacity: 0.5;
}

.brand_name .lines::before,
.space_name .lines::before {
  transform: translate(0, -50%) rotate(135deg) translateX(-100%);
}
.brand_name .lines::before, .space_name .lines::before{
  width: 69vh;
}

.brand_name .lines::after,
.space_name .lines::after {
  transform: translate(0, -50%) rotate(45deg);
}

.brand_name .logo {
  margin-top: 6px;
  max-height: 46px;
  margin-left: 24px;
}

.brand_name .logo img {
  object-fit: contain;
  display: block;
  width: auto;
  height: 46px;
}
.brand_name .name,
.space_name .name {
  color: #f3f4ec;
  margin-right: 16px;
  padding-left: 8px;
  font-size: 3em;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}
.main_space_item .space_name .name {
  padding-left: 0;
}
.brand_item .brand_desc {
  color: var(--color-white);
  font-weight: 300;
}
.brand_categories ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.brand_categories ul li a,
.brand_categories {
  color: #f3f4ec;
  text-decoration: none;
  font-weight: 500;
  font-size: 2em;
}
.swiper .swiper-pagination {
  right: auto;
  left: 24px;
}
.swiper .swiper-pagination-bullet {
  background: #f3f4ec;
  opacity: 0.5;
  width: 12px;
  transition: 0.3s;
  height: 12px;
}
.swiper .swiper-pagination-bullet.swiper-pagination-bullet-active {
  transform: scale(1.2);
  opacity: 1;
  transition: 0.3s;
}

.mini_gallery {
  height: 160px;
  z-index: 2;
  display: flex;
  overflow: hidden;
}

.mini_gallery .mini_gallery_item {
  width: 100px;
  flex-shrink: 0;
  overflow: hidden;
  transition: width 0.3s;
}

.mini_gallery .mini_gallery_item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mini_gallery .mini_gallery_item.active {
  width: 180px;
  transition: width 0.3s;
}

.mini_gallery .mini_gallery_item.active img {
  transform: scale(1);
}

.mini_gallery .mini_gallery_item:first-child {
  border-radius: 16px 0 0 16px;
  overflow: hidden;
  border-left:1px solid #F3F4EC33;
}
.mini_gallery .mini_gallery_item:last-child {
  border-radius: 0 16px 16px 0;
  overflow: hidden;
  border-right:1px solid #F3F4EC33;
}

.first_screen {
  position: relative;
  min-height: 100svh;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.first_screen .container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: column;
  color: var(--color-white);
  padding: 72px;
}
.first_screen .h1_title {
  font-size: 80px;
  font-weight: 700;
  line-height: 95%;
  letter-spacing: 0%;
  padding-left: 30%;
  text-align: left;
}
.brand_page .first_screen .h1_title,
.project_page .first_screen .h1_title {
  padding-left: 0;
}
.brand_page .first_screen .container,
.project_page .first_screen .container {
  align-items: flex-start;
  justify-content: flex-end;
  padding: 72px 24px;
}
.first_screen .subtitle {
 
  margin: 0;
  padding-left:30%;
  font-weight: 300;
  text-align: left;
}
.brand_page .first_screen .subtitle {
  max-width: 50%;
  margin: 0;
}
.brand_page .products {
  margin-bottom: 60px;
}
.project_page .first_screen .bg_video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  animation: bgPan 10s ease-in-out infinite alternate;
}

@keyframes bgPan {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.15) translate(-2%, -2%);
  }
}
.project_page .first_screen .h1_title {
  margin-top: 16px;
}
.project_page .content_block {
  padding: 60px 0;
  position: relative;
}
.project_page .description,
.brand_page .description {
  width: calc(90% - 400px);
}
.project_page .description > p {
  margin: 0;
}
.project_page .description .subtitle,
.brand_page .extended .subtitle {
  color: #a89f99;
  margin-bottom: 8px;
  font-weight: 300;
  font-size: 16px;
}
.project_page .desc_image,
.brand_page .desc_image {
  width: 400px;
  position: sticky;
  top: 36px;
  margin-top: 24px;
}

.mtb60 {
  margin-top: 60px;
  margin-bottom: 60px;
}

.project-gallery-swiper {
  position: relative;
}

.project_gallery_image {
  position: relative;
  overflow: hidden;
  height: 100%;
  width: 100%;
}
.project_gallery_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}

@keyframes imageMove {
  0% {
    transform: scale(1.05) translate(0, 0);
  }
  100% {
    transform: scale(1.08) translate(-2%, -2%);
  }
}

/* счётчик в левом нижнем, как у тебя */
.gallery-counter {
  position: absolute;
  left: 36px;
  bottom: 24px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  z-index: 10;
}
.gallery-counter .gallery-current {
  color: var(--color-white);
  font-size: 5em;
  line-height: 1;
  font-weight: 700;
}
.gallery-counter .gallery-divider,
.gallery-counter .gallery-total {
  opacity: 0.6;
  color: var(--color-white);
  font-size: 1.5em;
  font-weight: 400;
  padding-bottom: 4px;
}

/* стрелки в правом нижнем */
.gallery-nav {
  position: absolute;
  right: 36px;
  bottom: 24px;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.gallery-nav button {
  padding: 20px;
  border: none;
  background: #f3f3e8;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #2d1a16;
  transition: background 0.2s;
}
.gallery-nav button img {
  width: 20px;
  height: 20px;
}
.gallery-nav button:hover {
  background: #fff;
}

.tags {
  display: flex;
  gap: 12px;
}
.tags .tag {
  position: relative;
  font-weight: 300;
  z-index: 2;
  display: inline-block;
  padding: 4px 20px 4px 4px;
}
.tags .tag:before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  top: 50%;
  opacity: 0.5;
  right: 0;
  border-radius: 50%;
  transform: translateY(-50%) rotate(45deg);
  background: #f3f4ec;
}
.tags .tag:last-child:before {
  display: none;
}
.bg_video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.home .first_screen .overlay {
  position: absolute;
  inset: 0;
  background: #371f1d;
  z-index: 1;
}

.container {
  z-index: 2;
}
.scroll_label {
  position: absolute;
  bottom: 72px;
  right: 36px;
  color: #f3f4ec;
  font-weight: 300;
}
.panel {
  min-height: 100svh;
}

.panel .container.flex {
  height: 100%;
}
.section_title {
  font-size: 3em;
  font-weight: 500;
  color: var(--color-main);
  text-align: left;
}
.text-center {
  text-align: center;
}
.space_list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  padding-bottom:12vh;
}
a.space_item {
  display: block;
  text-decoration: none;
  width: calc(33.33% - 16px);
  border-radius: 16px;
}
.space_item-inner {
  will-change: transform;
}
a.space_item .image {
  border-radius: 8px;
  overflow: hidden;
}
a.space_item .image img{
  transform: scale(1);
  transition:.5s;
}
a.space_item:hover .image img{
  transform: scale(1.05);
  transition:.8s;
}
.space_item .space_name {
  font-size: 1.5em;
  font-weight: 500;
  color: var(--color-main);
  text-align: left;
}
.space_item .location {
  font-size: 1em;
  font-weight: 300;
  color: #a89f99;
  text-align: left;
}
.error-404 {
  text-align: center;
  padding: 60px 0;
}
.error-404 .page-content-title {
  font-weight: 400;
  font-size: 1.5em;
}
.error-404 .page-content {
  max-width: 550px;
  margin: 36px auto;
}
.error-404 .page-title {
  font-size: 80px;
}

a.btn {
  display: inline-block;
  padding: 14px 36px 14px 24px;
  border-radius: 16px;
  position: relative;
  text-decoration: none;
}
.btn.btn_main {
  background: var(--color-main);
  color: var(--color-white);
  transition:.3s;
}
.btn.btn_main:hover{
  background: #532F2C;
  transition:.3s;
}
.btn.btn_white {
  background: var(--color-white);
  color: var(--color-main);
  transition:.3s;
}
.btn.btn_white:hover{
  background: #E1E3CE;
  transition:.3s;
}
.btn:before {
  position: absolute;
  right: 12px;
  top: 50%;
  content: '';
  width: 16px;
  height: 16px;
  background: url('images/arrow-right-dark.png') center center no-repeat;
  transition: 0.3s;
  transform: translateY(-50%);
}
.btn.btn_main:before {
  background-image: url('images/arrow-right-white.png');
}
.page-header {
  padding-top: 36px;
  padding-bottom: 36px;
}
.page-header .left {
  width: 80%;
  max-width: 920px;
}
.page-header .page-description {
  font-size: 1.5em;
  margin: 16px 0;
  line-height: 1.5;
  color: var(--color-main);
}
.page-header .page-description.big {
  font-size: 3em;
  line-height: 1.3;
  color: #532f2c;
}
.big-title {
  font-size: 80px;
  line-height: 1;
  margin: 0;
}
.page-header .subtitle {
  color: #a89f99;
}

.page-header .mini_logo {
  max-width: 24px;
}

.custommade_list {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 36px;
}
.mt60 {
  margin-top: 60px;
}
.about_block {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.about_block .left_col {
  width: 48%;
}
.about_block .right_col {
  width: 43%;
}
.about_block .mission {
  font-size: 1.5em;
  color: var(--color-main);
  line-height: 1.3;
  font-weight: 500;
  margin: 0;
}
.about_block .right_col .subtitle {
  margin: 12px 0;
  color: #a89f99;
  font-weight: 300;
}
.about_block .right_col p {
  color: #a89f99;
  font-weight: 300;
}
.about-slogan {
  font-size: 3em;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
  max-width: 1140px;
  margin: 60px auto;
  color: #101010;
}
.about_image {
  max-height: 960px;
  overflow: hidden;
}
.about_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stats_block {
  background: var(--color-main);
  color: var(--color-white);
  padding: 36px 24px;
  margin-bottom: 60px;
}
.stats_list {
  display: flex;
  justify-content: space-around;
  width: 100%;
}
.stats_list .stat_item {
  text-align: center;
}
.stats_list .stat_item .num {
  font-size: 3em;
  font-weight: 500;
}
.stat_item .text {
  color: #a89f99;
  font-size: 1.15em;
  font-weight: 500;
}

.product_list {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.product_list .product_item {
  opacity: 1;
  width: calc(33.33% - 16px);
}
.product_item .product_image {
  border-radius: 16px;
  overflow: hidden;
}
.product_item .product_image img {
  transform: scale(1);
  transition: 0.5s;
  display: block;
}
.product_item .product_name {
  font-size: 1.5em;
  font-weight: 500;
  margin-top: 4px;
}
.product_item:hover .product_image img {
  transform: scale(1.05);
  transition: 1s;
}

.featured_space.panel {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.section_title.animated {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 1em));
  white-space: nowrap;
  font-size: clamp(32px, 8vw, 80px);
  z-index: 3;
}
.section_title span {
  display: inline-block;
}

.main_space_image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%) scale(0);
  transform-origin: center center;
  opacity: 1;
  border-radius: 24px;
  overflow: hidden;
  z-index: 2;
  will-change: transform, opacity, border-radius;
}

.main_space_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main_space_item {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  opacity: 0;
  color: #fff;
  z-index: 4;
}

.main_brands_slider.panel {
  position: relative;
  height: 100vh; 
  overflow: hidden;
}

#main_about_block {
  position: absolute;
  left: 0;
  bottom: 0;
  height:100%;
  width: 100%;
  z-index: 20;            
  background: #f3f4ec;
  padding: 40px 0;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}

.brands_stage {
  position: relative;
  height: 100vh;
}

.brands_inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%) scale(0);
  transform-origin: center center;
  opacity: 0;
  border-radius: 24px;
  overflow: hidden;
  z-index: 2;
  will-change: transform, opacity, border-radius;
  background: #000;
}

.brand-swiper {
  width: 100%;
  height: 100%;
  position: relative;
  color: #fff;
}

.brand-swiper .gallery-nav {
  display: none;
}
.brand-swiper .swiper-slide {
  width: 100%;
  height: 100%;
  position: relative;
}

.brand_item_image {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.brand_item_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand_item {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 2rem;
  color: #fff;
}

.brand_item,
.brand_item .lines,
.brand_item .brand_desc,
.brand_item .brand_categories,
.brand_item .mini_gallery {
  opacity: 0;
  will-change: opacity, transform;
}

.brand_item .lines {
  transform: translateY(10px);
}

.brand_item .brand_desc,
.brand_item .brand_categories {
  transform: translateY(10px);
}

/* пагинация поверх */
.swiper-pagination {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.main-menu {
  display: flex;
  gap: 40px;
  align-items: center;
}
.main-menu > .menu-item > .menu-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 36px 0;
  cursor: pointer;
}

/* ====== МЕГА-МЕНЮ ====== */
.mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #f8feff;
  padding: 32px 40px;
  display: grid;
  gap: 20px;
  box-sizing: border-box;

  opacity: 0;
  pointer-events: none;
  will-change: opacity;
  transition: opacity 0.25s ease;
}
.main-menu > .menu-item:hover > .mega-menu,
.main-menu > .menu-item:focus-within > .mega-menu {
  opacity: 1;
  pointer-events: auto;
}
.mega-menu .container {
  display: grid;
  gap: 20px;

  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  box-sizing: border-box;
}

/* когда пункт активен — показываем подменю */
.menu-item.is-open > .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu-spaces .container {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  padding-bottom: 48px;
}
.submenu-card-spaces {
  display: block;
  text-align: left;
  outline: none;
}
.submenu-card-spaces .submenu-card-thumb img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
}
.submenu-card-spaces .submenu-card-title {
  margin-top: 12px;
  font-weight: 500;
  font-size: 1.05rem;
  color: #3a2a22;
}

.sub-menu-brands .container {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  grid-auto-rows: 80px;
  gap: 16px;
  width: 100%;
  max-width: 1400px;
  padding-bottom: 48px;
}

/* общие карточки */
.submenu-card-brands {
  display: flex;

  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  height: 100%;
  transition: transform 0.2s ease;
}
.top_menu .sub-menu-brands .menu-item a {
  padding: 0;
  overflow: hidden;
}
.submenu-card-brands:hover {
  transform: translateY(-3px);
}
.submenu-card-brands img {
  object-fit: cover;
  width: 100%;
  margin: 0 auto;
  object-position: center center;
  height: 100%;
  display: block;
}


.sub-menu-brands .container > li:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.sub-menu-brands .container > li:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.sub-menu-brands .container > li:nth-child(3) {
  grid-column: 2;
  grid-row: 1;
}

.sub-menu-brands .container > li:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

.sub-menu-brands .container > li:nth-child(5) {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.sub-menu-brands .container > li:nth-child(6) {
  grid-column: 4;
  grid-row: 1 / span 2;
}

#menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 150;
}

/* когда хоть одно меню активно */
.main-menu > .menu-item:hover ~ #menu-overlay,
.main-menu > .menu-item:focus-within ~ #menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

.projects_filters {
  margin-bottom: 24px;
  border-bottom: 1px solid #371f1d0d;
}
.projects_filters .filter_list {
  display: flex;
  list-style: none;
  gap: 16px;
  margin: 0;
  padding: 0;
}
.projects_filters .filter_list .filter_item {
  padding: 8px 12px;
  display: block;
  color: #a89f99;
  text-decoration: none;
  font-size: 1.3em;
  font-weight: 500;
  outline: none;
}
.projects_filters .filter_list .filter_item.active {
  color: var(--color-text);
}
.brand_content_block {
  padding: 60px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.brand_content_block .about_text {
  width: calc(90% - 450px);
  margin: 0;
  height:100vh;
  display: flex;
  align-items: center;
}
.brand_content_block .about_text p {
  margin: 0;
}
.brand_page .products{
  padding-top:40vh;
}
.brand_page .products .product_item:first-child{
  opacity: 0;
}
.brand_content_block .brand_gallery {
  width: 450px;
  padding-top:100vh;
}
.brand_gallery .gallery_item {
  margin-bottom: 24px;
}
.brand_gallery .gallery_item:last-child{
  position: relative;
  z-index: 20;
}
.brand_page .extended .full_image {
  max-height: 100vh;
  overflow: hidden;
}

.brand_page .extended .brand_center_text {
  font-size: 3em;
  font-weight: 500;
  margin: 24px auto;
  max-width: 1000px;
  text-align: center;
}
.brand_page .extended .brand_center_desc {
  font-size: 1.5em;
  max-width: 1000px;
  text-align: center;
  font-weight: 400;
  margin: 0 auto 24px;
}

.brand_page .extended .full_image img {
  object-fit: cover;
  object-position: center center;
  width: 100%;
  height: 100%;
}
.brand_page .extended .location {
  max-width: 2000px;
  margin: 0 auto;
}

.project_page_inner {
  position: relative;
  min-height: 100vh;
}

.project-inner-wrap {
  z-index: 1;
  min-height: 100vh;
}

.project_page_inner .adesc_image {
  position: absolute;
  right: 5vw;
  bottom: -40vh;
  width: 28vw;
  max-width: 100%;
  z-index: 2;
  transform-origin: center center;
}

.project_page_inner .adesc_image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.project_page_inner .project_gallery {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
.project_page .project_page_inner .content_block {
  position: static;
}

.project_page_inner .project_gallery .gallery-nav,
.project_page_inner .project_gallery .gallery-counter {
  opacity: 0;
}

/*COntact form*/
.gr_contact_form .wpforms-container .wpforms-field.wpforms-one-half {
  width: 48%;
  display: inline-block;
  margin-right: 4%;
  margin-left: 0;
  vertical-align: top;
  padding:8px 0;
}
.gr_contact_form .wpforms-container .wpforms-field.wpforms-one-half.email {
  margin-right: 0;
}
.contact_page .gr_contact_form {
  width: calc(50% - 24px);
}
.contact_page .contact_information {
  width: calc(50% - 24px);
}
.contact_page .page-header{
  border-bottom:1px solid #371F1D0D;
  margin-bottom:48px;
}
.gr_contact_form .wpforms-container .gr_input input {
  width: 100%;
  background: #ebecdf;
  padding: 16px;
  min-height: 60px;
  border: 1px solid transparent;
  border-radius: 8px;
  outline: none;
}
.gr_contact_form .wpforms-container .gr_input input:focus {
  border: 1px solid var(--color-text);

  outline: none;
  transition: all 0.2s ease;
}
.gr_contact_form .gr_form_button{
  background-color: var(--color-main) !important;
  min-height: 60px;
  border-radius: 8px !important;
}
.gr_contact_form .cf_title{
  margin:16px 0 -24px;
  line-height:1.2;
  font-weight:500;
  font-size:3em;
}
.contact_information .h3_title{
  font-size:1.5em;
  font-weight:500;
}
.contact_information .flex .label{
  color:#A89F99;
  font-weight:300;
}
.contact_information .flex .value,
.contact_information .flex .value a{
  color:var(--color-text)
}
.contact_information .flex{
  gap:36px;
  margin-top:24px;
}

.gr_contact_form div.wpforms-container-full .wpforms-confirmation-container-full{
  background: var(--color-main);
  color:var(--color-white);
  margin-top:60px;
  padding:16px;
  border-radius: 8px;
  border-color:var(--color-main);
}
.gr_contact_form div.wpforms-container-full .wpforms-confirmation-container-full h3{
color:var(--color-white);
font-weight:500;
font-size:1.3em;
margin:0 0 8px;
}
.gr_contact_form div.wpforms-container-full .wpforms-confirmation-container-full p{
color:var(--color-white);
}



@media screen and (max-width: 1600px) {
.first_screen .h1_title{
  padding-left:25%;
}
.first_screen .subtitle{
  padding-left:25%;
}
.brand_item .left, .main_space_item .left{
  padding-left:5%;
}
.brand_item .right, .main_space_item .right{
  width:35%;
}
.mini_gallery .mini_gallery_item{
  width:70px;
}
.mini_gallery .mini_gallery_item.active{
  width:140px;
}
}


@media screen and (max-width: 1023px) {
  .project_page_inner .adesc_image {
    position: static;
    width: 100%;
  }
  .project_page_inner .project_gallery {
    position: static;
    opacity: 1;
    pointer-events: auto;
  }
  .project_page_inner .project_gallery .gallery-nav,
  .project_page_inner .project_gallery .gallery-counter {
    opacity: 1;
  }

  #main_about_block{
    border-radius: 0;
  }
  #main_about_block .flex{
    flex-wrap:wrap;
    align-items: flex-start;
    height:auto;
  }
  
  #main_about_block .mini_title{
    width:100%;
    height:4em;
  }
  #main_about_block .main_about{
    width:100%;
  }
  .main_about_block .main_about_text{
    font-size:1.3em;
  }
}

@media screen and (max-width: 768px) {
  .top_menu {
    display: none;
  }
  
  .top_contact {
    display: none;
  }
  #main_about_block .mini_title{
    height:auto;
    margin:0;
  }
  .menu_btn {
    display: block;
  }
  .first_screen .container {
    padding: 16px 16px 25%;
    justify-content: flex-end;
    align-items: center;
  }
  .first_screen .h1_title {
    font-size: 2.1em;
    line-height: 1.3;
    padding-left: 0;
    text-align: center;
  }
  .scroll_label {
    display: none;
  }
  .first_screen .subtitle {
    text-align: center;
    padding-left:0;
  }
  .brand_item .brand_desc{
    text-align: center;
    padding:0 16px;
  }
  .header {
    padding: 0;
  }
  .header .logo {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .brand_content_block .about_text{
    height: auto;
  }
  .brand_item {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
  }
  .brand_name {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding-top: 48px;
  }
  .brand_name .logo {
    margin: auto auto 0;
  }
  .brand_item .left {
    height: 50%;
    width: 100%;
    max-width: 100%;
  }
  .brand_item .left,
  .main_space_item .left {
    display: block;
    padding: 0 0 12px;
  }
  .brand_item .right {
    width: 100%;
    height: 50%;
    padding: 0;
  }
  .brand_item .lines {
    display: none;
  }
  .brand_item .brand_categories {
    display: none;
  }
  .brand_item .mini_gallery {
    display: none;
  }
  .brand_name .name,
  .space_name .name {
    font-size: 2em;
    margin-bottom: 48px;
  }
  .flex {
    flex-wrap: wrap;
  }
  .mini_title {
    width: 100%;
  }
  .about {
    max-width: 100%;
  }
  .about_text {
    font-size: 2em;
  }
  .main_space_item {
    flex-wrap: wrap;
    flex-direction: column;
  }
  .main_space_item .space_name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    flex-direction: column;
    text-align: center;
    padding-top: 36px;
  }
  .main_space_item .left {
    width: 100%;
    height: 50%;
  }
  .main_space_item .btn {
    margin-right: auto;
    margin-left: auto;
  }
  .space_name .space_info {
    padding-left: 0;
  }
  .main_space_item .space_name .name {
    margin-right: 0;
  }
  .space_name .lines {
    display: none;
  }
  .space_name .subtitle {
    width: 100%;
  }
  .space_name .space_info {
    width: 100%;
  }
  a.space_item {
    width: 100%;
  }
  .footer .ftr_col.col_main {
    width: 100%;
    text-align: center;
  }
  .footer .ftr_col {
    width: 100%;
  }
  .container.ftr_container {
    padding: 0;
  }
  .ftr_logo {
    margin: 12px auto;
  }
  .footer .copyright > div {
    display: none;
  }
  .footer .copyright .menu-footer-menu-container {
    display: block;
  }
  .copyright ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer {
    border-radius: 16px 16px 0 0;
    margin-bottom:0;
  }
  .footer .ftr_desc {
    margin: 24px auto;
  }
  .project_page .description,
  .brand_page .description {
    width: 100%;
  }
  .brand_page .extended .brand_center_text {
    font-size: 2em;
  }
  .brand_content_block {
    flex-wrap: wrap;
  }
  .brand_content_block .brand_gallery {
    width: 100%;
    padding-top:60px;
  }
  .brand_page .products{
    padding-top:0;
  }
  .brand_gallery .gallery_item:last-child{
    display:none;
  }
  .brand_page .products .product_item:first-child{
    opacity: 1;
  }
  .product_list .product_item {
    width: calc(50% - 8px);
  }
  .product_list {
    gap: 16px;
  }
  .brand_page .bg_video img,
  .project_page .bg_video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .brand_page .first_screen .container,
  .project_page .first_screen .container {
    align-items: center;
    text-align: center;
  }
  .brand_page .first_screen .subtitle {
    max-width: 100%;
    padding-bottom: 36px;
  }
  .tags {
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
  }
  .footer .ftr_col {
    text-align: center;
  }
  .gallery-nav {
    right: 50%;
    bottom: 24px;
    transform: translateX(50%);
   }
  /*.swiper.project-gallery-swiper {
    height: 400px;
  } */
  .gallery-counter {
    bottom: auto;
    top: 24px;
  }
  .gallery-counter .gallery-current {
    font-size: 3em;
  }
  .mobile_menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--color-white);
    z-index: 99;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
    max-height: 0;
    display: block;
  }
  body.nav-active .mobile_menu {
    opacity: 1;
    transform: translateY(0);
  }
  .mobile_menu .main-menu {
    display: block;
    padding: 80px 0 24px;
    margin: 0;
    list-style: none;
    gap: 0;
  }
  .nav-active header.transparent .logo .logo-dark,
  .nav-active header .logo .logo-dark {
    display: block;
  }
  .nav-active header.transparent .logo .logo-white,
  .nav-active header .logo .logo-white {
    display: none;
  }
  .nav-active .menu_btn-line {
    background-color: var(--color-main);
  }
  .mobile_menu .main-menu .menu-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
  }
  .mobile_menu .main-menu .sub-menu .menu-item {
    width: 100%;
    padding: 0;
  }
  .mobile_menu .mega-menu .container {
    display: block;
    padding: 0 16px;
  }
  .mobile_menu .main-menu > .menu-item > .menu-link {
    padding: 16px 16px 0 16px;
    width: calc(100% - 48px);
    display: block;
    text-align: left;

    text-decoration: none;
    font-size: 1.15em;
    font-weight: 500;
    color: var(--color-text);
  }
  .submenu-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    border: none;
    outline: none;
    background: transparent url('images/icon-plus.png') center center no-repeat;
    justify-content: center;
  }
  .submenu-open .submenu-toggle {
    background-image: url('images/icon-minus.png');
  }
  .big-title {
    font-size: 3em;
    line-height: 1.2;
  }
  .page-header .left {
    width: 100%;
  }
  .custommade_list {
    flex-wrap: wrap;
    gap: 16px;
  }
  .custommade_list .cm_item {
    width: calc(50% - 8px);
  }
  .projects_filters .filter_list {
    flex-wrap: wrap;
    gap: 2px;
  }
  .projects_filters .filter_list .filter_item {
    padding: 4px 8px;
  }
  .page-header .page-description.big {
    font-size: 1.5em;
  }
  .page-header .mini_logo {
    display: none;
  }
  .about_block {
    flex-wrap: wrap;
  }
  .about_block .left_col {
    width: 100%;
  }
  .about_block .right_col {
    width: 100%;
  }
  .about-slogan {
    font-size: 2em;
  }
  .stats_list {
    flex-wrap: wrap;
  }
  .stats_list .stat_item {
    margin-bottom: 16px;
  }
  .brand-swiper .gallery-nav {
    display: flex;
  }
  .swiper.brand-swiper .swiper-pagination {
    display: none;
  }
  /* Базовое состояние подменю */
  .mobile_menu .sub-menu {
    max-height: 0;
    width: 100%;
    overflow: hidden;
    position: static;
    display: block;
    opacity: 0;
    transform: translateY(-5px);
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.3s ease;
    background: var(--color-white);
    list-style: none;
    padding: 0;
    margin: 0;
  }

  /* Раскрытое состояние */
  .mobile_menu .menu-item.submenu-open > .sub-menu {
    opacity: 1;
    transform: translateY(0);
    padding-bottom: 24px;
    max-height: 1000px; /* временное значение; JS заменит на scrollHeight */
  }

  /* Ссылки внутри подменю */
  .mobile_menu .sub-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    text-decoration: none;
    color: var(--color-dark, #222);
    font-size: 15px;
    line-height: 1.4;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: color 0.2s ease;
  }
  .mobile_menu .sub-menu a.submenu-card-default {
    padding: 6px 0;
    width: 100%;
    border-bottom: none;
  }

  /* Иконка/фото в подменю (если есть) */
  .mobile_menu .sub-menu .submenu-card-thumb {
    flex-shrink: 0;
    width: 40px;
    height: 24px;
    border-radius: 6px;
    overflow: hidden;
  }
  .mobile_menu .sub-menu .submenu-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Название пункта */
  .mobile_menu .sub-menu .submenu-card-title {
    flex: 1;
    font-weight: 300;
    font-size: 1em;
  }

  /* Hover эффект */
  .mobile_menu .sub-menu a:hover {
    color: var(--color-accent, #b38a60);
  }

  /* Отступы между уровнями */
  .mobile_menu .menu-item-has-children > .sub-menu {
    margin-top: 5px;
  }
  .product_item .product_name {
    font-size: 1.15em;
  }
  .contact_page .gr_contact_form{
    width:100%;
  }
  .contact_page .contact_information{
    width:100%;
  }
  .gr_contact_form .cf_title{
    font-size:2em;
  }
  .gr_contact_form .wpforms-container .wpforms-field.wpforms-one-half{
    width:100%;
  }
  .footer .ftr_col.col_main .btn{
    margin:12px auto 36px;
  }
  .copyright ul li:after{
    display:none;
  }
  .copyright ul li{
    padding-right:0;
  }
  .ftr_col .ftr_title{
    margin-top:16px;
  }
}
