/*
Theme Name: Москвич Mag RTL
Description: RTL and Reset Styles
Author: Москвич Mag Team
Version: 1.0.0
*/

/* ==========================================================================
   CSS RESET & NORMALIZE
   ========================================================================== */

/* HTML */
html {
    height: 100%;
    box-sizing: border-box;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

/* Box sizing для всех элементов */
*,
*::before,
*::after {
    box-sizing: inherit;
}

/* Remove default margin and padding */
* {
    margin: 0;
    padding: 0;
}

/* Body */
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Steinbeck", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #F5F5F5;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Paragraphs */
p {
    margin: 0 0 1rem;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    background-color: transparent;
}

a:hover,
a:focus {
    text-decoration: underline;
}

/* Lists */
ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Images */
img {
    height: auto;
		width: 100%;
    display: block;
    border: 0;
}

/* Tables */
table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

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

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
    appearance: button;
    cursor: pointer;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

textarea {
    overflow: auto;
    resize: vertical;
}

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

legend {
    padding: 0;
}

/* Code & Pre */
code,
kbd,
samp,
pre {
    font-family: monospace, monospace;
    font-size: 1em;
}

pre {
    overflow: auto;
}

/* Hidden elements */
[hidden] {
    display: none !important;
}

/* HR */
hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1rem 0;
}

/* Abbr */
abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted;
}

/* Strong & Bold */
b,
strong {
    font-weight: bolder;
}

/* Small */
small {
    font-size: 80%;
}

/* Sub & Sup */
sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/* ==========================================================================
   RTL (Right-to-Left) STYLES
   ========================================================================== */

/* RTL Direction */
body.rtl {
    direction: rtl;
    text-align: right;
}

/* RTL Text alignment */
.rtl .text-left {
    text-align: right !important;
}

.rtl .text-right {
    text-align: left !important;
}

/* RTL Float */
.rtl .float-left {
    float: right !important;
}

.rtl .float-right {
    float: left !important;
}

/* RTL Margin */
.rtl .ml-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

.rtl .mr-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* RTL Padding */
.rtl .pl-0 { padding-right: 0 !important; padding-left: inherit !important; }
.rtl .pr-0 { padding-left: 0 !important; padding-right: inherit !important; }

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

/* Flex utilities */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }

/* Text alignment */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

/* Text transform */
.text-uppercase { text-transform: uppercase !important; }
.text-lowercase { text-transform: lowercase !important; }
.text-capitalize { text-transform: capitalize !important; }

/* Font weight */
.font-weight-light { font-weight: 300 !important; }
.font-weight-normal { font-weight: 400 !important; }
.font-weight-bold { font-weight: 700 !important; }

/* Visibility */
.visible { visibility: visible !important; }
.invisible { visibility: hidden !important; }

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Clearfix */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}


/* Row */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

/* Spacing utilities */
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.ml-0 { margin-left: 0 !important; }
.mr-0 { margin-right: 0 !important; }

.m-1 { margin: 0.25rem !important; }
.m-2 { margin: 0.5rem !important; }
.m-3 { margin: 1rem !important; }
.m-4 { margin: 1.5rem !important; }
.m-5 { margin: 3rem !important; }

.p-0 { padding: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.pl-0 { padding-left: 0 !important; }
.pr-0 { padding-right: 0 !important; }

.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

/* Width utilities */
.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }

/* Height utilities */
.h-25 { height: 25% !important; }
.h-50 { height: 50% !important; }
.h-75 { height: 75% !important; }
.h-100 { height: 100% !important; }
.h-auto { height: auto !important; }

/* ==========================================================================
   RESPONSIVE UTILITIES
   ========================================================================== */

/* Mobile First Breakpoints */
@media (min-width: 576px) {
    .d-sm-none { display: none !important; }
    .d-sm-block { display: block !important; }
    .d-sm-flex { display: flex !important; }
}

@media (min-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
}

@media (min-width: 992px) {
    .d-lg-none { display: none !important; }
    .d-lg-block { display: block !important; }
    .d-lg-flex { display: flex !important; }
}

@media (min-width: 1200px) {
    .d-xl-none { display: none !important; }
    .d-xl-block { display: block !important; }
    .d-xl-flex { display: flex !important; }
}

/* ==========================================================================
   WORDPRESS SPECIFIC RESETS
   ========================================================================== */

/* WordPress alignment classes */
.alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.aligncenter {
    display: block;
    margin: 0 auto 1rem;
}

/* WordPress caption */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    text-align: center;
}

/* WordPress gallery */
.gallery {
    margin: 0 -0.5rem 1rem;
}

.gallery-item {
    display: inline-block;
    padding: 0 0.5rem;
    text-align: center;
    vertical-align: top;
    width: 100%;
}

.gallery-columns-2 .gallery-item { width: 50%; }
.gallery-columns-3 .gallery-item { width: 33.33%; }
.gallery-columns-4 .gallery-item { width: 25%; }
.gallery-columns-5 .gallery-item { width: 20%; }
.gallery-columns-6 .gallery-item { width: 16.66%; }

/* WordPress embeds */
.wp-block-embed {
    margin: 0 0 1rem;
}

/* Sticky post */
.sticky {
    display: block;
}

















