/*!
Theme Name: Narine
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
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: narine
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.

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

@font-face {
  font-family: "PT Root UI";
  src: url("/wp-content/themes/Pastornapas/fonts/PT-Root-UI_Light.ttf")
    format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "PT Root UI";
  src: url("/wp-content/themes/Pastornapas/fonts/PT-Root-UI_Regular.ttf")
    format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "PT Root UI";
  src: url("/wp-content/themes/Pastornapas/fonts/PT-Root-UI_Medium.ttf")
    format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "PT Root UI";
  src: url("/wp-content/themes/Pastornapas/fonts/PT-Root-UI_Bold.ttf")
    format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

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

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

/**
 * Нижний таб-бар (.narine-masthead-mobile-bottom, mobile/header.php):
 * при viewport ≤768px и если в разметке есть этот бар — отступ у body
 * равен высоте бара (одна переменная) + safe-area.
 */
@media (max-width: 768px) {
  body:has(.narine-masthead-mobile-bottom) {
    /*
     * Высота как у разметки бара: py-1 + h-6 + gap-1 + строка подписи text-xs (с запасом по межстрочному).
     * Совпадает с min-height самого .narine-masthead-mobile-bottom.
     */
    --narine-mobile-bottom-bar-height: calc(
      0.5rem + 1.5rem + 0.25rem + 1.25rem
    );
    padding-bottom: calc(
      var(--narine-mobile-bottom-bar-height) + env(safe-area-inset-bottom, 0px)
    );
  }

  body:has(.narine-masthead-mobile-bottom) .narine-masthead-mobile-bottom {
    box-sizing: border-box;
    min-height: var(--narine-mobile-bottom-bar-height);
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

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

/* 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;
}

/**
 * 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;
}

svg,
img {
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

html {
  box-sizing: border-box;
}

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

.underline {
  border-bottom: none;
  text-decoration: underline;
}

/* =========================
COLORS
========================= */

:root {
  --not-black: #2b3329;

  --primary: #000;
  --primary-100: #f0f9e6;
  --secondary: #e6e6e6;
  --accent: #c89b64;

  --white: #fff;

  --error: #ff0000;
  --success: #22c122;
  --warning: #ffe600;

  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #bdbdbd;
  /* Контраст текста на #fff / #f5f5f5 (WCAG ~4.5:1 для обычного текста) */
  --gray-500: #767676;
  --gray-600: #595959;
  --gray-700: #4a4a4a;
  --gray-800: #424242;

  /* gradients */
  --gloss-golden-brown: linear-gradient(180deg, #ffd9a3 0%, #a46b38 100%);
  --gloss-black: linear-gradient(180deg, #5e5e5e 0%, #000000 100%);
  --gloss-tokio: linear-gradient(180deg, #b41e8c 0%, #9747ff 100%);
}

/* =========================
SPACING
========================= */

.m1 {
  margin: 4px;
}
.m2 {
  margin: 8px;
}
.m3 {
  margin: 12px;
}
.m4 {
  margin: 16px;
}
.m5 {
  margin: 20px;
}
.m6 {
  margin: 24px;
}
.m7 {
  margin: 32px;
}
.m8 {
  margin: 40px;
}
.m9 {
  margin: 48px;
}

.mt1 {
  margin-top: 4px;
}
.mt2 {
  margin-top: 8px;
}
.mt3 {
  margin-top: 12px;
}
.mt4 {
  margin-top: 16px;
}
.mt5 {
  margin-top: 20px;
}
.mt6 {
  margin-top: 24px;
}
.mt7 {
  margin-top: 32px;
}
.mt8 {
  margin-top: 40px;
}
.mt9 {
  margin-top: 48px;
}

.mb1 {
  margin-bottom: 4px;
}
.mb2 {
  margin-bottom: 8px;
}
.mb3 {
  margin-bottom: 12px;
}
.mb4 {
  margin-bottom: 16px;
}
.mb5 {
  margin-bottom: 20px;
}
.mb6 {
  margin-bottom: 24px;
}
.mb7 {
  margin-bottom: 32px;
}
.mb8 {
  margin-bottom: 40px;
}
.mb9 {
  margin-bottom: 48px;
}

.ml1 {
  margin-left: 4px;
}
.ml2 {
  margin-left: 8px;
}
.ml3 {
  margin-left: 12px;
}
.ml4 {
  margin-left: 16px;
}
.ml5 {
  margin-left: 20px;
}
.ml6 {
  margin-left: 24px;
}
.ml7 {
  margin-left: 32px;
}
.ml8 {
  margin-left: 40px;
}
.ml9 {
  margin-left: 48px;
}

.mr1 {
  margin-right: 4px;
}
.mr2 {
  margin-right: 8px;
}
.mr3 {
  margin-right: 12px;
}
.mr4 {
  margin-right: 16px;
}
.mr5 {
  margin-right: 20px;
}
.mr6 {
  margin-right: 24px;
}
.mr7 {
  margin-right: 32px;
}
.mr8 {
  margin-right: 40px;
}
.mr9 {
  margin-right: 48px;
}

.mx1 {
  margin-left: 4px;
  margin-right: 4px;
}
.mx2 {
  margin-left: 8px;
  margin-right: 8px;
}
.mx3 {
  margin-left: 12px;
  margin-right: 12px;
}
.mx4 {
  margin-left: 16px;
  margin-right: 16px;
}
.mx5 {
  margin-left: 20px;
  margin-right: 20px;
}
.mx6 {
  margin-left: 24px;
  margin-right: 24px;
}
.mx7 {
  margin-left: 32px;
  margin-right: 32px;
}
.mx8 {
  margin-left: 40px;
  margin-right: 40px;
}
.mx9 {
  margin-left: 48px;
  margin-right: 48px;
}

.my1 {
  margin-top: 4px;
  margin-bottom: 4px;
}
.my2 {
  margin-top: 8px;
  margin-bottom: 8px;
}
.my3 {
  margin-top: 12px;
  margin-bottom: 12px;
}
.my4 {
  margin-top: 16px;
  margin-bottom: 16px;
}
.my5 {
  margin-top: 20px;
  margin-bottom: 20px;
}
.my6 {
  margin-top: 24px;
  margin-bottom: 24px;
}
.my7 {
  margin-top: 32px;
  margin-bottom: 32px;
}
.my8 {
  margin-top: 40px;
  margin-bottom: 40px;
}
.my9 {
  margin-top: 48px;
  margin-bottom: 48px;
}

.p1 {
  padding: 4px;
}
.p2 {
  padding: 8px;
}
.p3 {
  padding: 12px;
}
.p4 {
  padding: 16px;
}
.p5 {
  padding: 20px;
}
.p6 {
  padding: 24px;
}
.p7 {
  padding: 32px;
}
.p8 {
  padding: 40px;
}
.p9 {
  padding: 48px;
}

.pt1 {
  padding-top: 4px;
}
.pt2 {
  padding-top: 8px;
}
.pt3 {
  padding-top: 12px;
}
.pt4 {
  padding-top: 16px;
}
.pt5 {
  padding-top: 20px;
}
.pt6 {
  padding-top: 24px;
}
.pt7 {
  padding-top: 32px;
}
.pt8 {
  padding-top: 40px;
}
.pt9 {
  padding-top: 48px;
}

.pb1 {
  padding-bottom: 4px;
}
.pb2 {
  padding-bottom: 8px;
}
.pb3 {
  padding-bottom: 12px;
}
.pb4 {
  padding-bottom: 16px;
}
.pb5 {
  padding-bottom: 20px;
}
.pb6 {
  padding-bottom: 24px;
}
.pb7 {
  padding-bottom: 32px;
}
.pb8 {
  padding-bottom: 40px;
}
.pb9 {
  padding-bottom: 48px;
}

.pl1 {
  padding-left: 4px;
}
.pl2 {
  padding-left: 8px;
}
.pl3 {
  padding-left: 12px;
}
.pl4 {
  padding-left: 16px;
}
.pl5 {
  padding-left: 20px;
}
.pl6 {
  padding-left: 24px;
}
.pl7 {
  padding-left: 32px;
}
.pl8 {
  padding-left: 40px;
}
.pl9 {
  padding-left: 48px;
}

.pr1 {
  padding-right: 4px;
}
.pr2 {
  padding-right: 8px;
}
.pr3 {
  padding-right: 12px;
}
.pr4 {
  padding-right: 16px;
}
.pr5 {
  padding-right: 20px;
}
.pr6 {
  padding-right: 24px;
}
.pr7 {
  padding-right: 32px;
}
.pr8 {
  padding-right: 40px;
}
.pr9 {
  padding-right: 48px;
}

.px1 {
  padding-left: 4px;
  padding-right: 4px;
}
.px2 {
  padding-left: 8px;
  padding-right: 8px;
}
.px3 {
  padding-left: 12px;
  padding-right: 12px;
}
.px4 {
  padding-left: 16px;
  padding-right: 16px;
}
.px5 {
  padding-left: 20px;
  padding-right: 20px;
}
.px6 {
  padding-left: 24px;
  padding-right: 24px;
}
.px7 {
  padding-left: 32px;
  padding-right: 32px;
}
.px8 {
  padding-left: 40px;
  padding-right: 40px;
}
.px9 {
  padding-left: 48px;
  padding-right: 48px;
}

.py1 {
  padding-top: 4px;
  padding-bottom: 4px;
}
.py2 {
  padding-top: 8px;
  padding-bottom: 8px;
}
.py3 {
  padding-top: 12px;
  padding-bottom: 12px;
}
.py4 {
  padding-top: 16px;
  padding-bottom: 16px;
}
.py5 {
  padding-top: 20px;
  padding-bottom: 20px;
}
.py6 {
  padding-top: 24px;
  padding-bottom: 24px;
}
.py7 {
  padding-top: 32px;
  padding-bottom: 32px;
}
.py8 {
  padding-top: 40px;
  padding-bottom: 40px;
}
.py9 {
  padding-top: 48px;
  padding-bottom: 48px;
}

.gap1 {
  gap: 4px;
}
.gap2 {
  gap: 8px;
}
.gap3 {
  gap: 12px;
}
.gap4 {
  gap: 16px;
}
.gap5 {
  gap: 20px;
}
.gap6 {
  gap: 24px;
}
.gap7 {
  gap: 32px;
}
.gap8 {
  gap: 40px;
}
.gap9 {
  gap: 48px;
}

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
  font-family:
    "PT Root UI", BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--not-black);
}

.button-large {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.button-medium {
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  padding: 16px 20px;
  cursor: pointer;
}

.input-medium {
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  padding: 16px 20px;
  outline: none;
}

.button-small {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

h1,
.h1 {
  font-size: 48px;
  line-height: 140%;
  font-weight: 600;
  letter-spacing: 2%;
}

h2,
.h2 {
  font-size: 40px;
  line-height: 140%;
  font-weight: 600;
  letter-spacing: 2%;
}

h3,
.h3 {
  font-size: 32px;
  line-height: 148%;
  font-weight: 600;
  letter-spacing: 2%;
}

h4,
.h4 {
  font-size: 24px;
  line-height: 148%;
  font-weight: 600;
  letter-spacing: 2%;
}

h5,
.h5 {
  font-size: 20px;
  line-height: 156%;
  font-weight: 600;
  letter-spacing: 2%;
}

h6,
.h6 {
  font-size: 16px;
  line-height: 156%;
  font-weight: 600;
  letter-spacing: 2%;
}

.sub-large {
  font-size: 20px;
  line-height: 24px;
  font-weight: 500;
}

.sub-medium {
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
}

.sub-small {
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
}

.body-large {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.body-medium {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.body-small {
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
}

.caption {
  font-size: 11px;
  line-height: 16px;
  font-weight: 400;
}

.label-large {
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
  text-transform: uppercase;
}

.label-medium {
  font-size: 12px;
  line-height: 20px;
  font-weight: 400;
  text-transform: uppercase;
}

.label-small {
  font-size: 10px;
  line-height: 16px;
  font-weight: 400;
  text-transform: uppercase;
}

/* Mobile typography (до 767px): межстрочный интервал 120% от кегля */
@media screen and (max-width: 767px) {
  h1,
  .h1 {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: normal;
  }

  h2,
  .h2 {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: normal;
  }

  h3,
  .h3 {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: normal;
  }

  h4,
  .h4 {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: normal;
  }

  h5,
  .h5 {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: normal;
  }

  h6,
  .h6 {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: normal;
  }

  .sub-large {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
  }

  .sub-medium {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
  }

  .sub-small {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
  }

  .body-large {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 400;
  }

  .body-medium {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 400;
  }

  .body-small {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 400;
  }

  .caption {
    font-size: 11px;
    line-height: 1.2;
    font-weight: 400;
  }

  .label-large {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 400;
  }

  .label-medium {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 400;
  }

  .label-small {
    font-size: 10px;
    line-height: 1.2;
    font-weight: 400;
  }

  .button-large {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
  }

  .button-medium {
    font-size: 15px;
    line-height: 1.2;
    font-weight: 500;
  }

  .button-small {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
  }

  .input-medium {
    font-size: 15px;
    line-height: 1.2;
    font-weight: 500;
  }
}

/* Крупный заголовок героя на планшетах и десктопе */
@media screen and (min-width: 768px) {
  .front-hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: 0.02em;
  }
}

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
--------------------------------------------- */
body {
  background: #fff;
}

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

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 {
  text-decoration: none;
}

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

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

:root {
  --container-width: 1540px;
}

/*--------------------------------------------------------------
# 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;
}

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

.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;
}

img.custom-logo.rounded-md {
  border-radius: 0.375rem;
}

.site-footer .custom-logo-link {
  display: inline-flex;
  line-height: 0;
}

.site-footer img.custom-logo {
  width: auto !important;
  height: auto !important;
  max-width: min(140px, 70vw);
  max-height: 2.25rem;
  object-fit: contain;
}

@media (min-width: 640px) {
  .site-footer img.custom-logo {
    max-height: 2.5rem;
  }
}

/* CLS: слот логотипа — явная ширина до загрузки img (height × W/H), иначе width:auto + aspect-ratio даёт схлопывание и сдвигает <main>. */
.site-header .narine-custom-logo-wrap {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  line-height: 0;
  flex-shrink: 0;
  height: 2.5rem;
  width: min(
    220px,
    100%,
    calc(2.5rem * var(--narine-logo-w, 140) / var(--narine-logo-h, 28))
  );
  max-width: min(220px, 100%);
}

.site-header .narine-custom-logo-wrap .custom-logo-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  max-width: 100%;
}

.site-header .narine-custom-logo-wrap img.custom-logo {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: 100%;
  aspect-ratio: var(--narine-logo-w, 140) / var(--narine-logo-h, 28);
  object-fit: contain;
}

@media (min-width: 768px) {
  .site-header .narine-custom-logo-wrap {
    height: 2.875rem;
    width: min(
      220px,
      100%,
      calc(2.875rem * var(--narine-logo-w, 140) / var(--narine-logo-h, 28))
    );
    max-width: min(220px, 100%);
  }

  .site-header .narine-custom-logo-wrap img.custom-logo {
    height: 2.875rem;
    width: auto;
    max-width: 100%;
    aspect-ratio: var(--narine-logo-w, 140) / var(--narine-logo-h, 28);
    object-fit: contain;
  }
}

/*
 * CLS: до выполнения @tailwindcss/browser утилиты Tailwind (hidden, md:*, flex, gap-*) не действуют —
 * шапка перерисовывается и сдвигает весь main. Дублируем критичную раскладку в style.css (загружается в wp_head до скрипта).
 */
#masthead.site-header .narine-header-topdesk {
  display: none;
}

@media (min-width: 768px) {
  #masthead.site-header .narine-header-topdesk {
    display: block;
    width: 100%;
  }
}

#masthead.site-header .narine-header-topdesk-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
}

#masthead.site-header #site-navigation.main-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex: 2 1 0%;
  min-width: 0;
}

#masthead.site-header .narine-header-topdesk-inner > div:last-child {
  display: flex;
  flex: 1 1 0%;
  align-items: center;
  gap: 1rem 1.5rem;
  justify-content: flex-end;
  min-width: 0;
  flex-wrap: wrap;
}

#masthead.site-header #topbar-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 1024px) {
  #masthead.site-header #topbar-menu {
    gap: 1.5rem;
  }
}

#masthead.site-header .narine-header-primary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  #masthead.site-header .narine-header-primary-bar {
    flex-wrap: nowrap;
    gap: 2rem;
    align-items: center;
  }
}

#masthead.site-header .narine-header-primary-bar > .site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  align-self: center;
  min-width: 0;
  flex: 1 1 auto;
}

@media (min-width: 768px) {
  #masthead.site-header .narine-header-primary-bar > .site-branding {
    flex: 0 0 auto;
    gap: 1.75rem;
  }
}

#masthead.site-header .narine-menu-categories-wrap {
  display: none;
}

@media (min-width: 768px) {
  #masthead.site-header .narine-menu-categories-wrap {
    display: inline-flex;
    position: relative;
    align-items: center;
    flex-shrink: 0;
    border-radius: 1rem;
    background: var(--white);
    padding: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
}

#masthead.site-header .narine-header-mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  #masthead.site-header .narine-header-mobile-actions {
    display: none;
  }
}

#masthead.site-header form.narine-header-search-desk[role="search"] {
  display: none;
}

@media (min-width: 768px) {
  #masthead.site-header form.narine-header-search-desk[role="search"] {
    display: block;
    border-radius: 1rem;
    background: var(--white);
    position: relative;
    flex: 1 1 0%;
    min-width: 0;
    max-width: 100%;
    height: 100%;
  }
}

#masthead.site-header .narine-header-primary-bar .wc-link-buttons {
  display: none;
}

@media (min-width: 768px) {
  #masthead.site-header .narine-header-primary-bar .wc-link-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    min-width: 0;
  }
}

#masthead.site-header .narine-header-primary-bar .narine-header-user-desk {
  display: none;
}

@media (min-width: 768px) {
  #masthead.site-header .narine-header-primary-bar .narine-header-user-desk {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    max-width: 220px;
  }
}

#masthead.site-header .narine-header-topdesk .site-address {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/*
 * CLS: #narine-catalog-top — дубли Tailwind с секции каталога (overflow-hidden, relative, flex…),
 * иначе до @tailwindcss/browser вся колонка «прыгает»; с share сильнее из-за попапа у края.
 */
#narine-catalog-top {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  overflow: hidden;
  padding-bottom: 2rem;
}

@media (min-width: 640px) {
  #narine-catalog-top {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 0;
  }
}

#narine-catalog-grid.narine-catalog-grid {
  contain: layout;
}

/*
 * CLS: archive-header — дубли утилит Tailwind в style.css до @tailwindcss/browser (разметка снова с классами в шаблоне).
 */
.narine-archive-page-header {
  margin-top: 1.25rem;
  contain: layout style;
}

@media (min-width: 640px) {
  .narine-archive-page-header {
    margin-top: 3.75rem;
  }
}

#narine-catalog-top
  > header.narine-archive-page-header
  + #narine-catalog-filters {
  margin-top: 1.875rem;
}

@media (min-width: 640px) {
  #narine-catalog-top
    > header.narine-archive-page-header
    + #narine-catalog-filters {
    margin-top: 3.75rem;
  }
}

.narine-archive-page-header .narine-archive-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.narine-archive-page-header .narine-archive-header-top-start {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.narine-archive-page-header .narine-archive-header-top nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.narine-archive-page-header .narine-archive-header-top .size-10 {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  box-sizing: border-box;
  display: grid;
  place-items: center;
}

/*
 * Share: позиция/opacity/transform задаются здесь, а не утилитами Tailwind — иначе после
 * @tailwindcss/browser в head первый кадр без transform, затем сдвиг (CLS), особенно у края.
 */
.narine-archive-page-header .narine-archive-share-anchor {
  position: relative;
  flex-shrink: 0;
  contain: layout;
  min-width: 2.5rem;
  min-height: 2.5rem;
}

/*
 * LTR: только left (раньше здесь был конфликт right/right:auto → попап без горизонтали и огромный CLS).
 * Закрыто: атрибут hidden + UA display:none — блок не раздувает scrollWidth у #narine-catalog-top (overflow-hidden).
 */
.narine-archive-page-header .narine-archive-share-popover {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: max-content;
  max-width: min(100vw - 24px, 420px);
  box-sizing: border-box;
  margin: 0;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 9999px;
  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Плавное открытие/закрытие: [hidden] снимается только после анимации выхода (см. narine-share-menus.js). */
.narine-archive-page-header
  .narine-archive-share-popover:not([hidden]):not(.narine-share-popover--open) {
  opacity: 0;
  transform: translateY(-50%) translateX(0.5rem);
  pointer-events: none;
  transition:
    opacity 0.2s ease-out,
    transform 0.2s ease-out;
}

.narine-archive-page-header
  .narine-archive-share-popover:not([hidden]).narine-share-popover--open {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
  transition:
    opacity 0.2s ease-out,
    transform 0.2s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .narine-archive-page-header
    .narine-archive-share-popover:not([hidden]):not(
      .narine-share-popover--open
    ),
  .narine-archive-page-header
    .narine-archive-share-popover:not([hidden]).narine-share-popover--open,
  .site-main
    .narine-single-share-popover:not([hidden]):not(.narine-share-popover--open),
  .site-main
    .narine-single-share-popover:not([hidden]).narine-share-popover--open {
    transition: none;
  }
}

.narine-archive-share-popover .narine-share-links,
.narine-single-share-popover .narine-share-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.narine-archive-share-popover .narine-share-link,
.narine-single-share-popover .narine-share-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  box-sizing: border-box;
  color: var(--accent);
  fill: var(--accent);
  border: 1px solid var(--gray-300, #d1d5db);
  border-radius: 9999px;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    fill 0.15s ease;
}

.narine-archive-share-popover .narine-share-link:hover,
.narine-single-share-popover .narine-share-link:hover {
  background-color: var(--accent);
  color: #fff;
  fill: #fff;
  border-color: var(--not-black, #111);
}

.narine-share-link-icon-wrap {
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.narine-share-link-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* single.php: меню слева от кнопки — те же стабильные стили без Tailwind для позиции */
.site-main .narine-single-share-anchor {
  position: relative;
  flex-shrink: 0;
  contain: layout;
  min-width: 2.5rem;
  min-height: 2.5rem;
}

.site-main .narine-single-share-anchor .size-10 {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  box-sizing: border-box;
  display: grid;
  place-items: center;
}

.site-main .narine-single-share-popover {
  position: absolute;
  right: calc(100% + 12px);
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: max-content;
  max-width: min(100vw - 24px, 420px);
  box-sizing: border-box;
  margin: 0;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 9999px;
  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.site-main
  .narine-single-share-popover:not([hidden]):not(.narine-share-popover--open) {
  opacity: 0;
  transform: translateY(-50%) translateX(-0.5rem);
  pointer-events: none;
  transition:
    opacity 0.2s ease-out,
    transform 0.2s ease-out;
}

.site-main
  .narine-single-share-popover:not([hidden]).narine-share-popover--open {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
  transition:
    opacity 0.2s ease-out,
    transform 0.2s ease-out;
}

.narine-archive-page-header .narine-archive-header-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .narine-archive-page-header .narine-archive-header-title-block {
    margin-top: 2.5rem;
  }
}

.narine-archive-page-header .narine-archive-header-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.narine-archive-page-header .narine-archive-hero-media {
  width: 100%;
  background: var(--gray-100);
  border-radius: 1rem;
  overflow: hidden;
  margin-top: 1.875rem;
  aspect-ratio: 16 / 9;
  max-height: 300px;
  min-height: min(56.25vw, 300px);
  position: relative;
  isolation: isolate;
}

.narine-archive-page-header .narine-archive-hero-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 640px) {
  .narine-archive-page-header .narine-archive-hero-media {
    margin-top: 3.75rem;
    max-height: 400px;
    min-height: min(56.25vw, 400px);
  }
}

@media (min-width: 768px) {
  .narine-archive-page-header .narine-archive-hero-media {
    max-height: 500px;
    min-height: min(56.25vw, 500px);
  }
}

/* CLS: page.php — сетка aside + контент до Tailwind */
main#primary .narine-page .narine-page-body {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 1rem;
}

@media (min-width: 640px) {
  main#primary .narine-page .narine-page-body {
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  main#primary .narine-page .narine-page-body {
    display: grid;
    grid-template-columns: minmax(0, 17.5rem) minmax(0, 1fr);
    gap: 2rem 2.5rem;
    flex-direction: unset;
  }
}

@media (min-width: 1280px) {
  main#primary .narine-page .narine-page-body {
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    gap: 2rem 2.5rem;
  }
}

/* page.php: боковое меню без скруглений, без левой границы и отступов у вложенных списков */
main#primary .narine-page-sidebar-nav ul,
main#primary .narine-page-sidebar-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

main#primary .narine-page-sidebar-nav .sub-menu {
  margin: 0 !important;
  padding: 0 !important;
  padding-left: 0 !important;
  border: 0 !important;
  border-left: 0 !important;
}

main#primary .narine-page-sidebar-nav a {
  display: block;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 0;
  padding-right: 0;
  border: 0;
  border-left: 0;
  border-radius: 0;
  text-decoration: none;
}

main#primary .narine-page-sidebar-nav .sub-menu a {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

/* single.php — типографика статьи в духе информационных страниц */
main#primary .narine-single-post .entry-content {
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.7;
}

main#primary .narine-single-post .entry-content > *:first-child {
  margin-top: 0;
}

main#primary .narine-single-post .entry-content > *:last-child {
  margin-bottom: 0;
}

main#primary .narine-single-post .entry-content h2,
main#primary .narine-single-post .entry-content h3,
main#primary .narine-single-post .entry-content h4 {
  color: var(--not-black);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

main#primary .narine-single-post .entry-content p,
main#primary .narine-single-post .entry-content ul,
main#primary .narine-single-post .entry-content ol {
  margin-bottom: 1.25rem;
}

main#primary .narine-single-post .entry-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

main#primary .narine-single-post .entry-content a:hover {
  color: var(--gray-600);
}

main#primary .narine-single-post .entry-content img {
  display: block;
  width: 100%;
  height: auto;
  margin: 2rem 0;
}

main#primary .narine-single-post .entry-content blockquote {
  margin: 2rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--gray-300);
  color: var(--gray-600);
}

main#primary .narine-single-post-header .narine-archive-catalog-min-header > div {
  margin-top: 1rem;
}

@media (min-width: 640px) {
  main#primary .narine-single-post-header .narine-archive-catalog-min-header > div {
    margin-top: 1.5rem;
  }
}

/* front-hero-banner: до Tailwind — фикс. высота на мобилке, full width на desktop */
.narine-front-hero-banner > div:first-child {
  height: 185px;
}
.narine-front-hero-banner__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
@media (min-width: 640px) {
  .narine-front-hero-banner > div:first-child {
    height: 450px;
  }
  .narine-front-hero-banner__img {
    height: 100%;
  }
}

/* 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 {
  display: none;
  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;
}

/* Меню категорий в шапке: скользящая чёрная плашка (как линия на Авито) */
.narine-menu-categories-wrap {
  --narine-categories-pill-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

.narine-menu-categories-pill {
  position: absolute;
  z-index: 0;
  border-radius: 1rem;
  background: #000;
  pointer-events: none;
  opacity: 0;
  transition:
    top 0.28s var(--narine-categories-pill-ease),
    left 0.28s var(--narine-categories-pill-ease),
    width 0.28s var(--narine-categories-pill-ease),
    height 0.28s var(--narine-categories-pill-ease),
    opacity 0.2s ease;
}

.narine-menu-categories-wrap .narine-menu-categories-label {
  position: relative;
  z-index: 1;
  color: var(--not-black);
  transition: color 0.25s var(--narine-categories-pill-ease);
}

.narine-menu-categories-wrap:not(.is-hovering)
  li.current-menu-item
  > a
  .narine-menu-categories-label,
.narine-menu-categories-wrap:not(.is-hovering)
  li.current-menu-ancestor
  > a
  .narine-menu-categories-label,
.narine-menu-categories-wrap:not(.is-hovering)
  li.current_page_item
  > a
  .narine-menu-categories-label {
  color: #fff;
}

.narine-menu-categories-wrap.is-hovering
  li.narine-pill-hover
  > a
  .narine-menu-categories-label {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .narine-menu-categories-pill {
    transition: none;
  }

  .narine-menu-categories-wrap .narine-menu-categories-label {
    transition: none;
  }
}

/* Навигация в хедере (fallback wp_page_menu + wp_nav_menu) */
.main-navigation .nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-navigation .nav-menu > li > a {
  color: var(--gray-600);
  transition: color 150ms ease-in-out;
}

.main-navigation .nav-menu > li.current-menu-item > a,
.main-navigation .nav-menu > li > a:hover {
  color: var(--primary);
}

/* .end, header styles and layout settings removed in favor of Tailwind utilities */

@keyframes aura-scale-up {
  from {
    opacity: 1;
    transform: scale(0);
  }

  50% {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: scale(1);
  }
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content: none !important;
}

.swiper-button-prev,
.swiper-button-next {
  background: none !important;
}

.swiper .swiper-button-prev::after,
.swiper .swiper-button-next::after {
  content: none !important;
}

/* Swiper: высота по контенту, без растягивания на весь экран */
.swiper-category .swiper-wrapper,
.swiper-products-track .swiper-wrapper {
  align-items: stretch;
}

.swiper-category .swiper-slide,
.swiper-products-track .swiper-slide {
  height: auto;
  box-sizing: border-box;
}

.swiper-brands .swiper-wrapper {
  align-items: stretch;
}

.swiper-brands .swiper-slide-brands {
  height: auto;
  box-sizing: border-box;
}

/* Карусель брендов: рамка через inset box-shadow (без border — нет сдвига последнего слайда) */
.narine-brand-card {
  box-shadow: inset 0 0 0 1px var(--gray-300);
  transition: box-shadow 0.2s ease;
}

.swiper-slide-brands:hover .narine-brand-card {
  box-shadow: inset 0 0 0 1px var(--primary);
}

.narine-brand-title {
  color: var(--accent);
  transition: color 0.2s ease;
}

.swiper-slide-brands:hover .narine-brand-title {
  color: var(--primary);
}

.narine-brands-swiper .narine-brands-nav-btn {
  opacity: 1;
}

@media (min-width: 640px) {
  .narine-brands-swiper:not(:hover) .narine-brands-nav-btn {
    opacity: 0;
  }

  .narine-brands-swiper:hover .narine-brands-nav-btn {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .narine-brand-card,
  .narine-brand-title,
  .narine-brands-swiper .narine-brands-nav-btn {
    transition: none;
  }
}

/* Карусель баннеров (магазин / поиск): слот высоты до загрузки картинки и Swiper — снижает CLS на десктопе */
.swiper-banners.narine-banners-aspect-slot {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 300px;
}

@media (min-width: 640px) {
  .swiper-banners.narine-banners-aspect-slot {
    max-height: 500px;
  }
}

.swiper-banners.narine-banners-aspect-slot .swiper-wrapper,
.swiper-banners.narine-banners-aspect-slot .swiper-slide {
  height: 100%;
}

/* Каталог Woo: сетка и блок фильтров до применения утилит Tailwind в браузере (снижает CLS на shop/search) */
#narine-catalog-categories-row {
  min-height: 52px;
}

#narine-catalog-filters {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  #narine-catalog-filters {
    gap: 1rem;
  }
}

/*
 * CLS: превью карточки товара — aspect-ratio в style.css до @tailwindcss/browser (утилиты aspect-* иначе поздно).
 */
.narine-card-media-slot--grid {
  aspect-ratio: 1 / 1;
}

.narine-card-media-slot--carousel {
  aspect-ratio: 5 / 6;
}

#narine-catalog-grid.products-loop {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (min-width: 768px) {
  #narine-catalog-grid.products-loop {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (min-width: 1024px) {
  #narine-catalog-grid.products-loop {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1280px) {
  #narine-catalog-grid.products-loop {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1536px) {
  #narine-catalog-grid.products-loop {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.swiper-banners .narine-banners-pagination.swiper-pagination,
.product-gallery .narine-banners-pagination.swiper-pagination {
  position: absolute;
  bottom: 24px;
  left: auto;
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  row-gap: 10px;
  padding: 6px 8px;
}

.swiper-banners .narine-banners-pagination .swiper-pagination-bullet,
.product-gallery .narine-banners-pagination .swiper-pagination-bullet {
  position: relative;
  display: block;
  margin: 0 !important;
  width: 4px;
  height: 4px;
  padding: 0;
  border: 0;
  opacity: 0.3;
  background: var(--primary);
  border-radius: 9999px;
  cursor: pointer;
  transition:
    width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease;
}

/* Увеличенная зона нажатия (≈44×44) без заметного изменения «точки» */
.swiper-banners .narine-banners-pagination .swiper-pagination-bullet::before,
.product-gallery .narine-banners-pagination .swiper-pagination-bullet::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

.swiper-banners .narine-banners-pagination .swiper-pagination-bullet-active,
.product-gallery .narine-banners-pagination .swiper-pagination-bullet-active {
  width: 8px;
  height: 4px;
  opacity: 1;
  background: var(--primary);
}

@media (min-width: 640px) {
  .swiper-banners .narine-banners-pagination.swiper-pagination,
  .product-gallery .narine-banners-pagination.swiper-pagination {
    gap: 16px;
    row-gap: 16px;
  }

  .swiper-banners .narine-banners-pagination .swiper-pagination-bullet,
  .product-gallery .narine-banners-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }

  .swiper-banners .narine-banners-pagination .swiper-pagination-bullet-active,
  .product-gallery .narine-banners-pagination .swiper-pagination-bullet-active {
    width: 16px;
    height: 8px;
  }
}

.swiper-banners
  .narine-banners-pagination
  .swiper-pagination-bullet:focus-visible,
.product-gallery
  .narine-banners-pagination
  .swiper-pagination-bullet:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .swiper-banners .narine-banners-pagination .swiper-pagination-bullet,
  .product-gallery
    .main-slider
    .product-swiper-pagination
    .swiper-pagination-bullet {
    transition: none;
  }
}

/* Главная: горизонтальные полноэкранные слайды (GSAP ScrollTrigger, см. js/front-horizontal-scroll.js) */
.front-horizontal-track {
  display: flex;
  flex-direction: column;
  width: 100%;
}

@media (min-width: 768px) {
  html.narine-front-horizontal-active .front-horizontal-root {
    overflow: hidden;
  }

  html.narine-front-horizontal-active .front-horizontal-track {
    flex-direction: row;
    flex-wrap: nowrap;
    width: max-content;
    height: 100vh;
    height: 100dvh;
  }

  html.narine-front-horizontal-active .front-horizontal-panel {
    width: 100vw;
    min-width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    flex-shrink: 0;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    margin-top: 0 !important;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  html.narine-front-horizontal-active
    .front-horizontal-panel::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
}

/* Скрыть полосы прокрутки у документа в режиме горизонтальной главной */
html.narine-hide-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html.narine-hide-scrollbar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

html.narine-hide-scrollbar body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html.narine-hide-scrollbar body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Catalog sorting select (Choices.js) — только витрина / поиск / избранное */
#narine-catalog-filters .choices {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 500;
}

#narine-catalog-filters .choices__inner {
  min-height: 52px;
  padding: 14px 44px 14px 20px;
  border: 1px solid var(--gray-300);
  border-radius: 9999px;
  background: var(--white);
  color: var(--gray-700);
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

#narine-catalog-filters .choices.is-focused .choices__inner,
#narine-catalog-filters .choices.is-open .choices__inner {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
}

#narine-catalog-filters .choices[data-type*="select-one"]::after {
  width: 16px;
  height: 16px;
  border: 0;
  right: 16px;
  top: 50%;
  margin-top: -8px;
  transform: none;
  background: no-repeat center / 16px 16px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23757575' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

#narine-catalog-filters .choices[data-type*="select-one"].is-open::after {
  margin-top: -8px;
  transform: rotate(180deg);
}

#narine-catalog-filters .choices__list--single {
  padding: 0;
}

#narine-catalog-filters .choices__list--dropdown,
#narine-catalog-filters .choices__list[aria-expanded] {
  margin-top: 8px;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

#narine-catalog-filters .choices__list--dropdown .choices__item--selectable,
#narine-catalog-filters
  .choices__list[aria-expanded]
  .choices__item--selectable {
  padding: 10px 16px;
  color: var(--gray-700);
  font-size: 14px;
  line-height: 1.3;
}

#narine-catalog-filters
  .choices__list--dropdown
  .choices__item--selectable.is-highlighted,
#narine-catalog-filters
  .choices__list[aria-expanded]
  .choices__item--selectable.is-highlighted {
  background: var(--gray-100);
  color: var(--accent);
}

@media (max-width: 767px) {
  #narine-catalog-filters .choices {
    font-size: 14px;
  }

  #narine-catalog-filters .choices__inner {
    min-height: 46px;
    padding: 12px 40px 12px 16px;
  }

  #narine-catalog-filters .choices[data-type*="select-one"]::after {
    right: 14px;
  }
}

/*
 * ЛК «Отображаемое имя»: Choices визуально как .narine-ma-float__select, без иконки сортировки,
 * выпадающий список поверх соседних полей (z-index + overflow).
 */
#narine-profile-form,
#narine-profile-form .narine-ma-form__grid,
.narine-ma-profile-edit-page,
.narine-ma-profile-edit-page .narine-ma-profile-edit-page__form {
  overflow: visible;
}

#narine-profile-form .narine-ma-float--select,
.narine-ma-profile-edit-page .narine-ma-float--select {
  position: relative;
  z-index: 0;
}

#narine-profile-form .narine-ma-float--select:focus-within,
#narine-profile-form .narine-ma-float--select:has(.choices.is-open),
.narine-ma-profile-edit-page .narine-ma-float--select:focus-within,
.narine-ma-profile-edit-page .narine-ma-float--select:has(.choices.is-open) {
  z-index: 50;
}

#narine-profile-form .narine-ma-float--select .choices::before,
.narine-ma-profile-edit-page .narine-ma-float--select .choices::before {
  content: none !important;
  display: none !important;
}

#narine-profile-form .narine-ma-float--select .choices,
#narine-profile-form .narine-ma-float--select .choices *,
.narine-ma-profile-edit-page .narine-ma-float--select .choices,
.narine-ma-profile-edit-page .narine-ma-float--select .choices * {
  box-sizing: border-box;
}

#narine-profile-form .narine-ma-float--select .choices,
.narine-ma-profile-edit-page .narine-ma-float--select .choices {
  position: relative;
  width: 100%;
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 400;
}

#narine-profile-form .narine-ma-float--select .choices__inner,
.narine-ma-profile-edit-page .narine-ma-float--select .choices__inner {
  display: flex;
  align-items: center;
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  border: 1px solid var(--gray-400, #e5e7eb) !important;
  background: #fff !important;
  color: var(--not-black, #1a1a1a) !important;
  padding: 1.35rem 2.25rem 0.55rem 1rem !important;
  box-shadow: none !important;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

#narine-profile-form
  .narine-ma-float--select
  .choices.is-focused
  .choices__inner,
#narine-profile-form .narine-ma-float--select .choices.is-open .choices__inner,
.narine-ma-profile-edit-page
  .narine-ma-float--select
  .choices.is-focused
  .choices__inner,
.narine-ma-profile-edit-page
  .narine-ma-float--select
  .choices.is-open
  .choices__inner {
  border-color: var(--accent, #c9a227) !important;
  box-shadow: 0 0 0 1px var(--accent, #c9a227) inset !important;
  color: var(--not-black, #1a1a1a) !important;
}

#narine-profile-form
  .narine-ma-float--select
  .choices[data-type*="select-one"]::after,
.narine-ma-profile-edit-page
  .narine-ma-float--select
  .choices[data-type*="select-one"]::after {
  width: 1.25rem;
  height: 1.25rem;
  border: 0;
  right: 0.65rem;
  top: 50%;
  margin-top: -0.625rem;
  transform: none;
  background: no-repeat center / 1.25rem 1.25rem
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}

#narine-profile-form
  .narine-ma-float--select
  .choices[data-type*="select-one"].is-open::after,
.narine-ma-profile-edit-page
  .narine-ma-float--select
  .choices[data-type*="select-one"].is-open::after {
  transform: rotate(180deg);
}

#narine-profile-form .narine-ma-float--select .choices__list--single,
.narine-ma-profile-edit-page .narine-ma-float--select .choices__list--single {
  padding: 0;
}

#narine-profile-form .narine-ma-float--select .choices__list--dropdown,
#narine-profile-form .narine-ma-float--select .choices__list[aria-expanded],
.narine-ma-profile-edit-page .narine-ma-float--select .choices__list--dropdown,
.narine-ma-profile-edit-page
  .narine-ma-float--select
  .choices__list[aria-expanded] {
  z-index: 60;
  margin-top: 4px;
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

#narine-profile-form
  .narine-ma-float--select
  .choices__list--dropdown
  .choices__item--selectable,
#narine-profile-form
  .narine-ma-float--select
  .choices__list[aria-expanded]
  .choices__item--selectable,
.narine-ma-profile-edit-page
  .narine-ma-float--select
  .choices__list--dropdown
  .choices__item--selectable,
.narine-ma-profile-edit-page
  .narine-ma-float--select
  .choices__list[aria-expanded]
  .choices__item--selectable {
  padding: 10px 16px;
  color: var(--not-black, #1a1a1a);
  font-size: 1rem;
  line-height: 1.35;
}

#narine-profile-form
  .narine-ma-float--select
  .choices__list--dropdown
  .choices__item--selectable.is-highlighted,
#narine-profile-form
  .narine-ma-float--select
  .choices__list[aria-expanded]
  .choices__item--selectable.is-highlighted,
.narine-ma-profile-edit-page
  .narine-ma-float--select
  .choices__list--dropdown
  .choices__item--selectable.is-highlighted,
.narine-ma-profile-edit-page
  .narine-ma-float--select
  .choices__list[aria-expanded]
  .choices__item--selectable.is-highlighted {
  background: var(--gray-100, #f3f4f6);
  color: var(--not-black, #1a1a1a);
}

@media (max-width: 768px) {
  #narine-profile-form .narine-ma-float--select .choices__inner,
  .narine-ma-profile-edit-page .narine-ma-float--select .choices__inner {
    border: none !important;
    background-color: var(--gray-100) !important;
    padding: 1.35rem 1rem 0.55rem !important;
    font-size: 0.75rem !important;
  }

  #narine-profile-form .narine-ma-float--select .choices,
  .narine-ma-profile-edit-page .narine-ma-float--select .choices {
    font-size: 0.75rem;
  }
}

.woocommerce-account .woocommerce-MyAccount-content {
  float: unset !important;
  width: unset !important;
}

.narine-ma-float {
  position: relative;
}

.narine-ma-float__input {
  display: block;
  width: 100%;
  border-radius: 2px;
  border: 1px solid var(--gray-200, #e5e7eb);
  background: #fff;
  padding: 1.35rem 1rem 0.55rem;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--not-black, #1a1a1a);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before {
  top: 50% !important;
  translate: 0 -50% !important;
}

.narine-ma-float__input:focus {
  border-color: #000;
  box-shadow: 0 0 0 1px #000;
}

.narine-ma-float__input::placeholder {
  color: transparent;
}

.narine-ma-float__label {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  line-height: 1.2;
  color: var(--gray-500, #6b7280);
  pointer-events: none;
  transition:
    top 0.2s ease,
    transform 0.2s ease,
    font-size 0.2s ease,
    color 0.2s ease;
}

.narine-ma-float__input:focus + .narine-ma-float__label,
.narine-ma-float__input:not(:placeholder-shown) + .narine-ma-float__label,
textarea.narine-ma-float__input:focus + .narine-ma-float__label,
textarea.narine-ma-float__input:not(:placeholder-shown)
  + .narine-ma-float__label {
  top: 0.45rem;
  transform: translateY(0);
  font-size: 0.75rem;
}

textarea.narine-ma-float__input {
  resize: vertical;
  min-height: 6.5rem;
}

.narine-ma-float textarea.narine-ma-float__input + .narine-ma-float__label {
  top: 1rem;
  transform: translateY(0);
}

.narine-ma-float__select {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 2px;
  border: 1px solid var(--gray-200, #e5e7eb);
  background-color: #fff;
  padding: 1.35rem 2.25rem 0.55rem 1rem;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--not-black, #1a1a1a);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 1.25rem 1.25rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.narine-ma-float__select:focus {
  border-color: #000;
  box-shadow: 0 0 0 1px #000;
}

@media (max-width: 768px) {
  .narine-ma-float__input,
  .narine-ma-float__select {
    border: none;
    background-color: var(--gray-100);
    padding: 1.35rem 1rem 0.55rem;
    font-size: 0.75rem;
  }
  .narine-ma-float__label {
    font-size: 0.75rem;
  }
}

.narine-ma-float__select:focus + .narine-ma-float__label,
.narine-ma-float--select.is-filled .narine-ma-float__label {
  top: 0.45rem;
  transform: translateY(0);
  font-size: 0.75rem;
}

/* select: подпись вверх при открытии списка, даже если значение ещё «пустое» по is-filled */
.narine-ma-float--select:focus-within .narine-ma-float__label {
  top: 0.45rem;
  transform: translateY(0);
  font-size: 0.75rem;
}

.narine-ma-float__input[readonly] {
  cursor: default;
  background-color: var(--gray-100, #f3f4f6);
  color: var(--gray-700, #374151);
}

.narine-ma-float.narine-ma-float--invalid .narine-ma-float__input {
  border-color: var(--error, #ff0000);
  box-shadow: 0 0 0 1px var(--error, #ff0000);
}

.narine-edit-account-tab.is-active {
  border-color: #000 !important;
  color: #000 !important;
  box-shadow: 0 0 0 1px #000;
}

/* Checkout: чёрная кнопка оформления — белый текст поверх глобального button { color } */
#place_order.narine-checkout-place-order,
button#place_order.narine-checkout-place-order {
  color: #fff !important;
}

#place_order.narine-checkout-place-order:hover,
#place_order.narine-checkout-place-order:focus-visible,
button#place_order.narine-checkout-place-order:hover,
button#place_order.narine-checkout-place-order:focus-visible {
  color: #fff !important;
}

/* ЛК: основные чёрные кнопки (дашборд, заказы, формы) — hover не сбивает глобальный CSS */
.narine-ma-dashboard a.narine-ma-dashboard-btn-primary:hover,
.narine-ma-dashboard a.narine-ma-dashboard-btn-primary:focus-visible,
.narine-ma-account-shell a.narine-ma-dashboard-btn-primary:hover,
.narine-ma-account-shell a.narine-ma-dashboard-btn-primary:focus-visible,
.narine-ma-account-shell button.narine-ma-dashboard-btn-primary:hover,
.narine-ma-account-shell button.narine-ma-dashboard-btn-primary:focus-visible {
  background-color: #27272a !important;
  border-color: #27272a !important;
  color: #fff !important;
}

.narine-ma-dashboard a.narine-ma-dashboard-btn-primary:active,
.narine-ma-account-shell a.narine-ma-dashboard-btn-primary:active,
.narine-ma-account-shell button.narine-ma-dashboard-btn-primary:active {
  background-color: #18181b !important;
  border-color: #18181b !important;
}

@media (prefers-reduced-motion: reduce) {
  .narine-ma-float__input,
  .narine-ma-float__select,
  .narine-ma-float__label {
    transition: none !important;
  }

  .narine-ma-settings-rows > li > a > svg {
    transition: none !important;
  }
}

body.narine-my-account-guest {
  margin: 0;
}

.narine-my-account-main {
  min-height: 0;
}

/* Моб. ЛК: строки меню со стрелкой — лёгкий сдвиг chevron при фокусе */
.narine-ma-settings-rows > li > a > svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.narine-ma-settings-rows > li > a:focus > svg {
  transform: translateX(4px);
}

/* Nextend Social Login — под стиль кнопок Narine (page-my-account) */
.narine-my-account-auth .narine-ma-nsl .nsl-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.narine-my-account-auth .narine-ma-nsl .nsl-container .nsl-button,
.narine-my-account-auth .narine-ma-nsl a.nsl-button {
  display: flex !important;
  width: 100% !important;
  min-height: 3.25rem !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 2px !important;
  border: 1px solid var(--gray-200, #e5e7eb) !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease !important;
  margin: 0 0 0.5rem !important;
}

.narine-my-account-auth .narine-ma-nsl .nsl-container .nsl-button:last-child,
.narine-my-account-auth .narine-ma-nsl a.nsl-button:last-child {
  margin-bottom: 0 !important;
}

.narine-my-account-auth .narine-ma-nsl a.nsl-button:hover {
  border-color: #000 !important;
}

.narine-my-account-auth
  .narine-ma-nsl
  .nsl-button-default
  div.nsl-button-label-container {
  background: transparent !important;
}

.narine-my-account-auth .narine-ma-nsl .nsl-button .nsl-button-label {
  color: var(--not-black, #1a1a1a) !important;
  font-weight: 600 !important;
}

.narine-ma-float--password .narine-ma-float__input {
  padding-right: 3rem;
}

.narine-ma-password-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--gray-500, #6b7280);
  border-radius: 0.375rem;
}

.narine-ma-password-toggle:hover {
  color: var(--not-black, #1a1a1a);
}

.narine-ma-password-toggle:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.narine-ma-password-toggle__img {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  pointer-events: none;
}

.narine-ma-password-toggle__img--hide {
  display: none;
}

.narine-ma-password-toggle.is-visible .narine-ma-password-toggle__img--show {
  display: none;
}

.narine-ma-password-toggle.is-visible .narine-ma-password-toggle__img--hide {
  display: block;
}

/* Личный кабинет — адреса (WC form-row в сетке) */
.narine-address-book .woocommerce-address-fields--narine {
  align-items: start;
}

.narine-address-book .woocommerce-address-fields--narine > .form-row {
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

.narine-address-book
  .woocommerce-address-fields--narine
  > .form-row.form-row-wide,
.narine-address-book
  .woocommerce-address-fields--narine
  > .form-row#billing_address_1_field,
.narine-address-book
  .woocommerce-address-fields--narine
  > .form-row#shipping_address_1_field {
  grid-column: 1 / -1;
}

.narine-address-book .woocommerce-address-fields--narine .select2-container {
  width: 100% !important;
}

.narine-address-book .narine-ma-float--select.is-filled .narine-ma-float__label,
.narine-address-book
  .narine-ma-float--select:focus-within
  .narine-ma-float__label {
  transform: translateY(-0.65rem) scale(0.85);
}

/*
 * Счётчик товаров в корзине (шапка, выезжающее меню, нижняя навигация).
 * Внешний вид задаётся только здесь: в PHP остаются классы
 * .narine-header-cart-badge .counter и модификаторы --bar | --drawer | --empty.
 */
.narine-header-cart-badge.counter {
  box-sizing: border-box;
  position: absolute;
  z-index: 10;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.125rem;
  border-radius: 9999px;
  background: #000;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.narine-header-cart-badge.counter.narine-header-cart-badge--empty {
  display: none;
}

.narine-header-cart-badge.counter.narine-header-cart-badge--bar {
  top: -0.5rem;
  right: -0.5rem;
}

.narine-header-cart-badge.counter.narine-header-cart-badge--drawer {
  top: -0.5rem;
  right: -0.5rem;
  min-width: 1rem;
  height: 1rem;
  font-size: 0.625rem;
}

/* Нижняя моб. навигация: не обрезать бейдж корзины (flex/grid + position после wc-cart-fragments). */
.narine-masthead-mobile-bottom,
.narine-masthead-mobile-bottom nav,
.narine-masthead-mobile-bottom nav > a {
  overflow: visible;
}

/*
 * Корзина: кастомные чекбоксы выбора (mobile + desktop).
 * Tailwind-утилиты для checkbox могут не применяться из-за браузерного appearance/reset.
 */
#narine-cart-page-root #narine-cart-select-all,
#narine-cart-page-root .narine-cart-row-select {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  background-color: #fff;
  border: 2px solid var(--gray-300);
  border-radius: 2px !important;
  cursor: pointer;
}

#narine-cart-page-root #narine-cart-select-all:checked,
#narine-cart-page-root .narine-cart-row-select:checked {
  background-color: #000;
  border-color: #000;
}

#narine-cart-page-root #narine-cart-select-all:checked::after,
#narine-cart-page-root .narine-cart-row-select:checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.42em;
  height: 0.72em;
  border-right: 0.16em solid #fff;
  border-bottom: 0.16em solid #fff;
  transform: translate(-50%, -58%) rotate(45deg);
}

#narine-cart-page-root #narine-cart-select-all:focus-visible,
#narine-cart-page-root .narine-cart-row-select:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}
