/*!
Theme Name: forum_pro
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: forum_pro
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 with others.

forum_pro is based on Underscores https://underscores.me/, (C) 2012-2017 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:
----------------------------------------------------------------
# Normalize
# Typography
# Elements
# Forms
# Navigation
	## Links
	## Menus
# Accessibility
# Alignments
# Clearings
# Widgets
# Content
	## Posts and pages
	## Comments
# Infinite scroll
# Media
	## Captions
	## Galleries
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Normalize
--------------------------------------------------------------*/
/* normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */

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

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

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

 
	

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

/**
 * Remove the margin in all browsers.
 */

body {
	margin: 0;
	font-family: "Roboto Slab", serif;
}
input {outline:none;}
textarea {outline:none;}
/**
 * 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; /* 1 */
	height: 0; /* 1 */
	overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
	font-family: monospace, monospace; /* 1 */
	font-size: 1em; /* 2 */
}

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

/**
 * 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; /* 1 */
	text-decoration: underline; /* 2 */
	text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
	font-family: monospace, monospace; /* 1 */
	font-size: 1em; /* 2 */
}

/**
 * Add the correct font 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; /* 1 */
	font-size: 100%; /* 1 */
	line-height: 1.15; /* 1 */
	margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
	overflow: visible;
}

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

button,
select { /* 1 */
	text-transform: none;
}

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

/**
 * 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; /* 1 */
	padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
	-webkit-appearance: textfield; /* 1 */
	outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding 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; /* 1 */
	font: inherit; /* 2 */
}

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

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: sans-serif;
	font-size: 16px;
	font-size: 1rem;
	line-height: 1.5;
}

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;
	font-size: 15px;
	font-size: 0.9375rem;
	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;
	font-size: 15px;
	font-size: 0.9375rem;
}

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

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

big {
	font-size: 125%;
}

/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/
html {
	box-sizing: border-box;
}

*,
*:before,
*:after {
	/* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
	box-sizing: inherit;
}

body {
	background: #fff;
	/* Fallback for when there is no custom background color defined. */
}

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



ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

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

dt {
	font-weight: bold;
}

dd {
	margin: 0 1.5em 1.5em;
}

img {
	height: auto;
	/* Make sure images are scaled correctly. */
	max-width: 100%;
	/* Adhere to container width. */
}

figure {
	margin: 1em 0;
	/* Extra wide images within figure tags don't overflow the content area. */
}

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

/*--------------------------------------------------------------
# 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);
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1;
	padding: .6em 1em .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%;
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Links
--------------------------------------------------------------*/
a {
	color: royalblue;
}



a:hover, a:focus, a:active {
	color: midnightblue;
}

a:focus {
	outline: thin dotted;
}

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

/*--------------------------------------------------------------
## Menus
--------------------------------------------------------------*/
.main-navigation {
	clear: both;
	display: block;
	float: left;
	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 {
	left: 100%;
}

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

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

.main-navigation li {
	float: left;
	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: block;
	}
}

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

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	float: left;
	width: 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	float: right;
	text-align: right;
	width: 50%;
}

/*--------------------------------------------------------------
# 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; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.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: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
	/* Above WP toolbar. */
}

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

/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
}

.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
}

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

/*--------------------------------------------------------------
# Clearings
--------------------------------------------------------------*/
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
	content: "";
	display: table;
	table-layout: fixed;
}

.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
	clear: both;
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widget {
	margin: 0 0 1.5em;
	/* Make sure select elements fit in widgets. */
}

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

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

.post,
.page {
	margin: 0 0 1.5em;
}

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

/*--------------------------------------------------------------
# Infinite scroll
--------------------------------------------------------------*/
/* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	/* Theme Footer (when set to scrolling) */
	display: none;
}

/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# 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 embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

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

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

.gallery-columns-2 .gallery-item {
	max-width: 50%;
}

.gallery-columns-3 .gallery-item {
	max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
	max-width: 25%;
}

.gallery-columns-5 .gallery-item {
	max-width: 20%;
}

.gallery-columns-6 .gallery-item {
	max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
	max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
	max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	max-width: 11.11%;
}

.gallery-caption {
	display: block;
}
.site-header{
	background:#444444;
	padding: 25px 0 0px 0;}
.site-logo{	
	display:inline-block;
	}
.site-logo img{
	margin-top: -40px;
	
	}	
.site-logo1{	
	display:inline-block;
	}
.hdr-ln-l {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    text-align: left;
    border-left: 1px solid #a0a0a0;
    padding-left: 10px;
    display:inline-block;
    margin-left: 10px;
}			
.hdr-ln {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    text-align: left;
    border-left: 1px solid #a0a0a0;
    padding-left: 10px;
    float: right;
    margin-left: 10px;
}

.hdr-ln1{
	color:#898989;
	font-size:9px;
	text-transform: uppercase;
	 float: left;
	}
.hdr-ln3{
	color:#898989;
	font-size:9px;
	text-transform: uppercase;
	 float: left;
	}	
.hdr-ln11{
	color:#898989;
	font-size:9px;
	text-transform: uppercase;
	padding-top: 5px;	
	}				
.hdr-rght li{
	display:inline-block;
	vertical-align: middle;
	    padding: 10px;}
.hdr-ln3 img{
	padding-top:7px;}		
.hdr-rght{
	text-align:right;}	
.hdr-ln2{
	color: #fff;
    font-size: 14px;
    text-align: left;
    border-left: 1px solid #a0a0a0;
    padding-left: 10px;
    float: right;
    margin-left: 10px;
	min-height: 40px;
	}
.call-us{
	background:#79a83e;
	padding:10px 15px;}
a.call-us{
	color:#fff;
	 font-size: 12px;
	 text-transform:uppercase;}	
.main-pic{
	background-image:url(img/fon-main.png);
	background-repeat:no-repeat;
	background-size:100% auto;
	padding: 50px 0;}	 		
.main-aksii2{
	background-image:url(img/fon-aksii.png);
	background-repeat:repeat;
	background-size:100% 100%;}	
.main-menu{
	background: linear-gradient(to top, #eeeeee, #ffffff);
	margin-bottom: -40px;
    margin-top: 20px;}	
.footer_line2{
	font-family: "Inter", sans-serif;
	text-align:right;
	vertical-align:central;
	letter-spacing:1px;
	font-size:14px;
	color:#444444;
	padding: 10px 0;}
.footer10{
	background:#444444;
	padding:30px 0;}	
.footer_cont{
	color:#fff;
	text-align:left;
	text-transform:uppercase;
	font-size:14px;
	}	
.hdr-ln-2{
	padding-top:20px;
	letter-spacing:1px;
	color:#fff;
	text-transform:initial;
	font-family: "Inter", sans-serif;	
	}
.ln-gr{
	background:#b7b7b7;
	height:1px;
	width:100%;
	margin-bottom:10px;}	
.ln-grn{
	background:#4abc00;
	height:3px;
	width:50px;}	
	 
.footer_nm{
	font-family: "Roboto Slab", serif;
	color:#fff;
	text-transform:uppercase;
	padding-bottom:10px;}	
.footer_cont3{
	text-align:left;
	color:#eaeaea;
	font-family: "Inter", sans-serif;
	font-size:16px;
	}	
.ftr-mail{
	text-decoration:underline;
	display:inline-block;
	color:#79a83e;	}
.footer_menu a{
	color:#fff;
	font-family: "Inter", sans-serif;
	font-size:14px;}
.footer_menu a:hover{
	color:#79a83e;
	}		
.footer_menu ul{
	list-style:none;
	padding: 0px;}	
.otzivi{
	background-image:url(img/fon-otzivi.png);
	background-repeat:no-repeat;
	background-size: 100% 100%;
    padding: 40px 0;}	
.otzivi-nm{
	font-family: "Roboto Slab", serif;
	color:#444444;
	text-transform:uppercase;
	font-size:24px;
	letter-spacing:2px;
	padding-bottom:15px;	
	font-weight:bold;}	
.owl-nav{
	position: absolute;
    top: -60px;
    right: 0;}	
.owl-prev{
	background-image:url(img/prev.png);
	height:50px;
	width:25px;
	display: inline-block;
	background-repeat:no-repeat;
	background-position:center;}
.owl-next{
	background-image:url(img/next.png);
	height:50px;
	width:25px;
	display: inline-block;
	background-repeat:no-repeat;
	background-position:center;
	margin-left:20px;}
.testimonial_rotator .testimonial_rotator_slide_title {
    color:#292929;
	font-family: "Inter", sans-serif;
	font-size:16px;
}						
.testimonial_rotator_description{
	    padding: 30px 30px 0px 80px;
background-image:url(img/fon-otzv.png);
background-repeat:no-repeat;
	background-position:top;
	background-size:100% auto;
	min-height:275px;
	color:#292929;
	font-family: "Inter", sans-serif;	
	font-size:16px;}
.wp-caption-text {
    text-align: center;
	 color:#444;
	font-family: "Inter", sans-serif;
	font-size:14px;
	text-transform:uppercase;
	padding:0px;
		margin-bottom:15px;
}	
.gallery-icon{
	padding:15px;   
    overflow: hidden;}
.gallery-icon img {
    /* height: 100%; */
    width: 100%;
    max-width: inherit;
}
.foto-main2{
	color: #444;
    text-align: left;
    text-transform: uppercase;
    font-size: 14px;}
.foto{
	padding:40px 0;}	
.yslygi{
	background:#ebebeb;
	padding:40px 0px;}	
.yslygi-nm p{
	font-family: "Roboto Slab", serif;
	color:#444444;
	text-transform:uppercase;
	font-size:24px;
	letter-spacing:2px;
	padding-bottom:15px;	
	font-weight:bold;
	margin-bottom: 0px;}
.yslygi-s{
	color:#444;
	font-family: "Inter", sans-serif;
	font-size:16px;
	margin-bottom:10px;
	}
.yslygi-n	{
	font-family: "Roboto Slab", serif;
	color:#444444;
	text-transform:uppercase;
	font-size:18px;
	letter-spacing:1px;
	font-weight:600;
	padding-left:35px;
	background-image:url(img/yslugi-n.png);
background-repeat:no-repeat;
	background-position:center left;
	margin-top:25px;
	margin-bottom:10px;}
.main-menu ul{
	list-style:none;
	padding:0;
	text-align:center;}				
.main-menu ul li{
	display:inline-block;}	
.form-mc1 input{
	width:100%;
	margin-top:5px;
	border-radius:0;
	height:35px;
	background:none;
	border:1px solid #b7b7b7;
	color:#444;
	font-family: "Inter", sans-serif;
	font-size:14px;
	padding-left:10px;}
.form-mc1 input:focus{	
	border:1px solid #79a83e;
	}	
.form-mc1 textarea:focus{
	border:1px solid #79a83e;
	}	
.form-mc1 textarea{
	width:100%;
	margin-top:5px;
	border-radius:0;
	background:none;
	border:1px solid #b7b7b7;
	color:#444;
	font-family: "Inter", sans-serif;
	font-size:14px;
	padding-left:10px;}	
.form-mc1{
	width:100%;
	color:#878787;
	font-family: "Inter", sans-serif;
	font-size:12px;
	padding-top:10px;
	letter-spacing:1px;}	
.button-cont2{
	background: #79a83e;
    padding: 10px 30px;
	color: #fff;
	font-family: "Inter", sans-serif;
    font-size: 18px;
    text-transform: uppercase;
	border:none;
	border-radius:0;
	font-weight:300;
	letter-spacing:1px;
	margin-top:12px;
	}	
.button-cont2:hover{
	background: #69972d;
   	}	
.content-area-main p {
    font-family: "Roboto Slab", serif;
    color: #444444;
    text-transform: uppercase;
    font-size: 24px;
    letter-spacing: 2px;
    padding-bottom: 15px;
    font-weight: bold;
    margin-bottom: 0px;
}				
.content-area-main{
	padding:40px 0;}
.main-cat-i img{
	width:100%;
	text-align:center;
	border:3px solid #fff;}	
.main-cat-i{
	padding-bottom:40px;
	font-family: "Inter", sans-serif;	
    font-size: 18px;
    text-transform: uppercase;
	text-align:center;}	
.main-cat-i a{	
	color: #444;
	}
.main-cat-n{
	height:80px;
	padding-top:10px;}	
.main-cat-i:hover img{
	border:3px solid #79a83e;}	
.main-aksii p {
    font-family: "Roboto Slab", serif;
    color: #fff;
    text-transform: uppercase;
    font-size: 24px;
    letter-spacing: 2px;
    padding-bottom: 15px;
    font-weight: bold;
    margin-bottom: 0px;
}
.main-aksii2{
	padding:10px 30px 50px 30px;}
.main-aksii2 h3{
	font-family: "Inter", sans-serif;
    font-size: 24px;
    text-transform: uppercase;
	color:#fff;
	letter-spacing:1px;
	line-height: 1;}
.main-aksii2{
	font-family: "Inter", sans-serif;
    font-size: 14px;
    text-transform: uppercase;
	color:#fff;
	letter-spacing:1px;}	
.call-us2 {
    background: #79a83e;
    padding: 10px 15px;
}
.call-us2:hover {
    background: #69972d;   
}
.call-us:hover {
    background: #69972d;    
}
a.call-us2 {
    color: #fff;
    font-size: 18px;
    text-transform: uppercase;
	font-family: "Inter", sans-serif;
}
.btn-grn{padding:30px 0 0 0;}
.main-menu .menu-item a{
	border-right:1px solid #eeedee;
	padding-right:13px;
	color: #444;
    font-size: 12px;
    text-transform: uppercase;
	font-family: "Inter", sans-serif;
	font-weight:600;
	}
.main-menu .menu-item:last-child a{
	border-right:none;
	padding-right:15px;}	
.main-menu .menu-item a :last-child{
	border-right:none;}
.main-menu li.menu-item {
	padding:22px 0 25px 10px;
	border-top: 3px solid #fcfdfc;}	
.main-menu li.menu-item:hover {
	border-top: 3px solid #79a83e;}		
.main-menu li.menu-item.current-menu-item{
	border-top: 3px solid #79a83e;}	
.maps{
	margin-bottom:40px;}
.breadcrumbs{
	padding: 40px 0px 10px 0;
	color:#444444;
	opacity:0.5;
	font-size: 18px;
	letter-spacing:1px;    
	font-family: "Inter", sans-serif;
	}		
.breadcrumbs a{
	
	color:#444444;
	
	}	
.site-main h2{
    font-family: "Roboto Slab", serif;
    color: #444444;
    text-transform: uppercase;
    font-size: 24px;
    letter-spacing: 2px;
    padding-bottom: 15px;
    font-weight: bold;
    margin-bottom: 0px;
}
.site-main{
	margin-bottom:50px;}
.button-cont3 {
    background: #79a83e;
    padding: 10px 30px;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    font-weight: 300;
    letter-spacing: 1px;
    margin-top: 12px;
	float:right;
}		
.cont-name1{
	padding: 12px 0 10px 35px;
	color: #444;
   font-family: "Inter", sans-serif;
    font-size: 14px;
    text-transform: uppercase;
	font-weight:700;
	letter-spacing:1px;
	background-image: url(img/txt1.png);
    background-repeat: no-repeat;
    background-position: center left;
	}
.cont-name2{
	padding: 12px 0 10px 35px;
	color: #444;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    text-transform: uppercase;
	font-weight:700;
	letter-spacing:1px;
	background-image: url(img/txt2.png);
    background-repeat: no-repeat;
    background-position: center left;
	}
.cont-name5{
	padding: 12px 0 10px 0px;
	color: #444;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    text-transform: uppercase;
	font-weight:700;
	letter-spacing:1px;
	
	}
.tel-top {
	margin-bottom:10px;
	line-height: 1.2em;}		
.tel-top a{
	font-size:14px;
	color:#fff;}	
.cont-txt1{
	padding-bottom:20px;
	font-size: 21px;
	color:#79a83e;
	text-decoration:underline;}	
.cont-name3{
	padding: 12px 0 10px 35px;
	color: #444;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    text-transform: uppercase;
	font-weight:700;
	letter-spacing:1px;
	background-image: url(img/txt3.png);
    background-repeat: no-repeat;
    background-position: center left;
	text-decoration:none;
	}
.cont-txt{
	padding-bottom:20px;
	font-size: 14px;
	color:#767676;}	
.txt-main{
	padding-left:35px;
	color: #444;
    font-family: "Inter", sans-serif;
    font-size: 14px;}
.txt-main h2{
	color: #444;
    font-family: Palatino;
    text-transform: uppercase;
    font-size: 21px;
    
    }			
.txt-main h3{
	color: #444;
    font-family: "Roboto Slab", serif;
    text-transform: uppercase;
    font-size: 18px;
    
    }
.main-list{
	background:#ebebeb;
	padding:1px 0;
	margin-bottom:20px;}
.main-list .cat-item{
	border-left:3px solid #ebebeb;}	
.main-list .current-cat{
	border-left:3px solid #79a83e;}
.main-list .current-cat a{
	color: #79a83e;}			
.main-list li{
	padding:10px 0px 0 15px;}	
.main-list a{
	color: #444;
    font-family: "Inter", sans-serif;
    font-size: 18px;
    text-transform: uppercase;
	line-height: 0.8em;}
.main-list .cat-item:hover a{
	color: #79a83e;}	
.main-list h3{
	display:none;}	
.main-list ul {
	padding:0;
	list-style:none;}
.main-cat h2 {
    font-family: "Roboto Slab", serif;
    color: #444444;
    text-transform: uppercase;
    font-size: 24px;
    letter-spacing: 2px;
    padding-bottom: 15px;
    font-weight: bold;
    margin-bottom: 0px;
}	
.zagl{
	display: inline-block;
	font-size:18px;
	text-transform:uppercase;}	
.main-cat-d{
	color: #444;
   font-family: "Inter", sans-serif;
    font-size: 16px;
	padding-bottom:10px;}
	
.img-content{
	width:25%;
	display:inline-block;}	
.txt-content{
	width: 74%;
    display: inline-block;
    vertical-align: top;
    padding-left: 20px;
}
.main-cat h2 a {
    font-family: "Roboto Slab", serif;
    color: #444444;
    text-transform: uppercase;
    font-size: 24px;
    letter-spacing: 2px;
    padding-bottom: 15px;
    font-weight: bold;
    margin-bottom: 0px;
}
a.more-link{
	color:#79a83e;
	}	
.entry-header-3{
	font-family: "Roboto Slab", serif;
    color: #444444;
    text-transform: uppercase;
   
    letter-spacing: 2px;
    padding-bottom: 15px;
    font-weight: bold;
    margin-bottom: 0px;
	 margin-top:35px;
	 text-align:center;}
.img2-content img{
	text-align:center;
	max-width:90%;}	
.post-thumbnail{
	text-align:center;}	 
.entry-content-cat p{
	font-family: "Roboto Slab", serif;
    color: #444444;
    text-transform: initial !important;
    font-size: 15px !important;
    letter-spacing: 0px !important;
    padding-bottom: 10px;
    font-weight: normal !important;
    margin-bottom: 0px;
	}	 	
	
								
@media (max-width:1199px){
	.main-menu .menu-item a {
    border-right: 1px solid #eeedee;
    padding-right: 7px;
    color: #444;
    font-size: 10px;
    text-transform: uppercase;
    
    font-weight: 600;
}
	.main-menu li.menu-item {
    padding: 22px 0 25px 5px;
    border-top: 3px solid #fcfdfc;
}
.testimonial_rotator_description {
  
    font-size: 12px;
}
.main-aksii p {  
    font-size: 18px;   
    padding-bottom: 5px;   
}
.main-aksii2 h3 {    
    font-size: 18px;   
}
}	
@media (max-width:991px){
	.main-menu .menu-item a {
   
    padding-right: 5px;
   
    font-size: 9px;
    
}
	.main-menu li.menu-item {
    padding: 22px 0 25px 5px;
    border-top: 3px solid #fcfdfc;
}
	.hdr-rght {
    text-align: center;
}
.site-logo1 {
    display: inherit;
    text-align: center;
}

.main-cat-i img {
    width: auto;
    text-align: center;
    border: 3px solid #fff;
}
.gallery-columns-4 .gallery-item {
    max-width: 100%;
}
}		
@media (max-width:767px){
	.main-menu .menu-item a {
   
  
   
    font-size: 12px;
    
}
	.img-content {
    width: 90%;
    display: inline-block;
}	
	.hdr-ln-l {
    font-size: 12px;
    }
	.main-menu{
		display:none;}	
	.main_mnu_button {
    background: linear-gradient(to top, #eeeeee, #ffffff);
    margin-bottom: -40px;
    margin-top: 20px;
	border:none;
	width:100%;
	font-size:24px;
}	
.main-menu ul li {
    display: block;
}
.main-menu{
	left: 0px;
    display: block;
    position: absolute;
    width: 100%;
    z-index: 100;}
.main-menu .menu-item a {
    border-right: none;
    padding-right: 0px;}
.content-area-main p {
    font-size: 14px;
   
}			
	}

@media (min-width:768px){
	.main_mnu_button{
		display:none;}	
		.
	}

.nav-links a{
	color:#4abc00;}
.nav-links {
	text-align:center;
	padding-bottom:15px;}	
	
#accordions-516 .accordions-head {
    background: #79a83e none repeat scroll 0 0 !important;
    outline: none;
}	

/* Обводка ссылки для акции */
a.lin {
	color: #ffffff; /* Цвет текста */
    background: #79a83e; /* Цвет фона */
    padding: 2px; /* Поля вокруг текста */
}	
/* Убираем синюю рамку после клика мышкой */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}
@font-face {
    font-family: "nbrb";
    src: url("/wp-content/themes/forum_pro/fonts/nbrb.woff2") format("woff2"), /* Укажите путь к файлу nbrb.woff2 */
         url("/wp-content/themes/forum_pro/fonts/nbrb.ttf") format("truetype"), /* Укажите путь к файлу nbrb.ttf */
         url("/wp-content/themes/forum_pro/fonts/nbrb.woff") format("woff");    /* Укажите путь к файлу nbrb.woff */
    unicode-range: U+E901, U+42, U+59, U+4E;
}

.nbrb-icon {
    font-family: "nbrb" !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: normal;
    -webkit-font-feature-settings: "liga";
    -moz-font-feature-settings: "liga=1";
    -moz-font-feature-settings: "liga";
    -ms-font-feature-settings: "liga" 1;
    font-feature-settings: "liga";
    -webkit-font-variant-ligatures: discretionary-ligatures;
    font-variant-ligatures: discretionary-ligatures;
}

.nbrb-icon-byn:before {
    content: "\e901"; /* Юникод для знака */
}
/* ==========================================================
   ГЛАВНАЯ — TDM ELECTRIC
   Компактная партнерская плашка сразу под hero
========================================================== */

.fp-tdm-home-section {
    padding: 24px 0;
    background: #f3f3f3;
    border-bottom: 1px solid #e2e2e2;
}

.fp-tdm-home {
    display: grid;
    grid-template-columns: 215px minmax(0, 1fr) 185px;
    align-items: stretch;
    width: 100%;
    min-height: 150px;
    background: #fff;
    border: 1px solid #dedede;
    border-left: 4px solid #f58200;
}


/* ==========================================================
   БРЕНД TDM
========================================================== */

.fp-tdm-home__brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 23px 24px;
    background: #444;
}

.fp-tdm-home__year {
    margin: 0 0 10px;
    padding: 0;
    color: #bcbcbc;
    background: none;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.fp-tdm-home__logo {
    display: flex;
    align-items: center;
    gap: 7px;
    width: max-content;
    margin: 0 0 11px;
}

.fp-tdm-logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 9px;
    background: #f58200;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 21px;
    line-height: 1;
    font-weight: 800;
}

.fp-tdm-logo-name {
    color: #f58200;
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
}

.fp-tdm-home__status {
    max-width: 150px;
    color: #fff;
    font-family: "Roboto Slab", serif;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
}


/* ==========================================================
   ТЕКСТ
========================================================== */

.fp-tdm-home__main {
    position: relative;
    width: auto;
    padding: 24px 30px;
    border-right: 1px solid #e4e4e4;
}

.fp-tdm-home__main:before {
    content: "";
    position: absolute;
    top: 0;
    left: 30px;
    width: 44px;
    height: 3px;
    background: #79a83e;
}

.fp-tdm-home h2 {
    margin: 4px 0 8px !important;
    padding: 0 !important;
    color: #444 !important;
    font-family: "Roboto Slab", serif !important;
    font-size: 20px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    letter-spacing: .5px !important;
    text-transform: uppercase;
}

.fp-tdm-home__lead {
    margin: 0 0 5px !important;
    color: #4b4b4b;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 600;
}

.fp-tdm-home__text {
    max-width: 670px;
    margin: 0 !important;
    color: #707070;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    line-height: 1.55;
}


/* Факты */

.fp-tdm-home__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 13px;
}

.fp-tdm-home__facts span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #555;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 600;
}

.fp-tdm-home__facts i {
    color: #4abc00;
    font-style: normal;
    font-size: 14px;
    line-height: 1;
}


/* ==========================================================
   КНОПКИ
========================================================== */

.fp-tdm-home__action {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    padding: 22px 20px;
    background: #fafafa;
}

.fp-tdm-home__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 39px;
    padding: 0 11px;
    border-radius: 0;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .3px;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.fp-tdm-home__button--orange {
    background: #f58200;
    border: 1px solid #f58200;
    color: #fff !important;
}

.fp-tdm-home__button--orange:hover {
    background: #df7600;
    border-color: #df7600;
    color: #fff !important;
}

.fp-tdm-home__button--green {
    background: #fff;
    border: 1px solid #79a83e;
    color: #69972d !important;
}

.fp-tdm-home__button--green:hover {
    background: #79a83e;
    color: #fff !important;
}


/* ==========================================================
   970px CONTAINER
========================================================== */

@media (min-width: 992px) and (max-width: 1199px) {

    .fp-tdm-home {
        grid-template-columns: 190px minmax(0, 1fr) 165px;
    }

    .fp-tdm-home__brand {
        padding: 20px;
    }

    .fp-tdm-home__main {
        padding: 22px 24px;
    }

    .fp-tdm-home__main:before {
        left: 24px;
    }

    .fp-tdm-home h2 {
        font-size: 18px !important;
    }

    .fp-tdm-home__facts {
        gap: 7px 12px;
    }

    .fp-tdm-home__action {
        padding: 20px 15px;
    }

}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 991px) {

    .fp-tdm-home {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .fp-tdm-home__action {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-start;
        padding: 14px 20px;
        border-top: 1px solid #e4e4e4;
    }

    .fp-tdm-home__button {
        width: auto;
        min-width: 170px;
    }

    .fp-tdm-home__main {
        border-right: 0;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

    .fp-tdm-home-section {
        padding: 18px 0;
    }

    .fp-tdm-home {
        display: block;
        border-left-width: 3px;
    }

    .fp-tdm-home__brand {
        padding: 18px 19px;
    }

    .fp-tdm-home__year {
        margin-bottom: 8px;
    }

    .fp-tdm-home__logo {
        margin-bottom: 8px;
    }

    .fp-tdm-home__status {
        max-width: none;
    }

    .fp-tdm-home__main {
        padding: 22px 19px 20px;
        border-right: 0;
    }

    .fp-tdm-home__main:before {
        left: 19px;
    }

    .fp-tdm-home h2 {
        font-size: 18px !important;
    }

    .fp-tdm-home__lead {
        font-size: 13px;
    }

    .fp-tdm-home__text {
        font-size: 12px;
    }

    .fp-tdm-home__facts {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .fp-tdm-home__action {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 16px 19px 19px;
    }

    .fp-tdm-home__button {
        width: 100%;
        min-width: 0;
    }

}


/* Убираем синюю рамку после клика мышкой */

.fp-tdm-home__button:focus:not(:focus-visible),
.fp-tdm-home__button:active {
    outline: none !important;
    box-shadow: none !important;
}

/* ==========================================================
   ГЛАВНАЯ — БЛАГОДАРСТВЕННЫЕ ПИСЬМА
   под родную ширину ForumPro
========================================================== */

.fp-home-letters {
    margin: 0;
    padding: 40px 0 45px;
    background: #fff;
}

.fp-home-letters__head {
    margin-bottom: 20px;
}

.fp-home-letters__head h2 {
    position: relative;
    margin: 0 0 8px !important;
    padding: 0 0 13px !important;
    color: #444 !important;
    font-family: "Roboto Slab", serif !important;
    font-size: 24px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase;
}

.fp-home-letters__head h2:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #4abc00;
}

.fp-home-letters__head h2:after {
    content: "";
    position: absolute;
    left: 50px;
    right: 0;
    bottom: 1px;
    height: 1px;
    background: #b7b7b7;
}

.fp-home-letters__head p {
    margin: 0 !important;
    color: #777;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

/* Именно 3 колонки на desktop */

.fp-home-letters__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* Карточка */

.fp-home-letter {
    display: block;
    min-width: 0;
    background: #fff;
    border: 1px solid #e2e2e2;
    text-decoration: none !important;
    overflow: hidden;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.fp-home-letter:hover {
    transform: translateY(-4px);
    border-color: #79a83e;
    box-shadow: 0 9px 23px rgba(0, 0, 0, .1);
}

/* Высота карточки специально подобрана под 1170px container */

.fp-home-letter__image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 430px;
    padding: 18px;
    background: #f8f8f8;
    overflow: hidden;
}

.fp-home-letter__image img {
    display: block;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 394px !important;
    margin: 0 auto !important;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 2px 9px rgba(0, 0, 0, .12);
}

/* Затемнение + кнопка */

.fp-home-letter__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(40, 40, 40, .58);
    opacity: 0;
    transition: opacity .2s ease;
}

.fp-home-letter:hover .fp-home-letter__overlay {
    opacity: 1;
}

.fp-home-letter__plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, .8);
    font-size: 23px;
    line-height: 1;
}

/* При 970 px */

@media (min-width: 992px) and (max-width: 1199px) {

    .fp-home-letters__grid {
        gap: 18px;
    }

    .fp-home-letter__image {
        height: 370px;
        padding: 15px;
    }

    .fp-home-letter__image img {
        max-height: 340px !important;
    }

}

/* 750 px — две колонки */

@media (min-width: 768px) and (max-width: 991px) {

    .fp-home-letters__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .fp-home-letter__image {
        height: 430px;
    }

}

/* Телефон */

@media (max-width: 767px) {

    .fp-home-letters {
        padding: 30px 0 35px;
    }

    .fp-home-letters__head h2 {
        font-size: 20px !important;
        letter-spacing: 1px !important;
    }

    .fp-home-letters__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fp-home-letter__image {
        height: auto;
        min-height: 400px;
    }

    .fp-home-letter__image img {
        max-height: 440px !important;
    }

    /* На тач-устройствах не полагаемся на hover */

    .fp-home-letter__overlay {
        inset: auto auto 15px 50%;
        width: auto;
        height: auto;
        padding: 9px 14px;
        white-space: nowrap;
        background: rgba(50, 50, 50, .88);
        opacity: 1;
        transform: translateX(-50%);
    }

}

/* ==========================================================
   ГЛАВНАЯ — POPUP БЛАГОДАРСТВЕННЫХ ПИСЕМ
========================================================== */

.fp-home-letter-modal {
    position: fixed;
    z-index: 9999999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px 80px;
    background: rgba(15, 15, 15, .93);
}

.fp-home-letter-modal.is-open {
    display: flex;
}

.fp-home-letter-modal__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    max-height: calc(100vh - 50px);
}

.fp-home-letter-modal__loader {
    padding: 20px;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 14px;
}

.fp-home-letter-modal__image {
    display: none;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 110px);
    margin: 0 auto;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 10px 45px rgba(0, 0, 0, .55);
}

.fp-home-letter-modal__image.is-loaded {
    display: block;
}

.fp-home-letter-modal__info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 42px;
    gap: 25px;
    padding-top: 10px;
    color: #fff;
}

.fp-home-letter-modal__title {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.fp-home-letter-modal__counter {
    flex: 0 0 auto;
    color: #aaa;
    font-family: "Inter", sans-serif;
    font-size: 13px;
}

.fp-home-letter-modal__close {
    position: absolute;
    z-index: 10;
    top: 12px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    font-family: Arial, sans-serif;
    font-size: 40px;
    font-weight: 200;
    line-height: 1;
    cursor: pointer;
}

.fp-home-letter-modal__close:hover {
    color: #79a83e;
    background: transparent;
}

.fp-home-letter-modal__arrow {
    position: absolute;
    z-index: 10;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 72px;
    padding: 0;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 0 !important;
    border-radius: 3px !important;
    outline: 0 !important;
    box-shadow: none !important;
    font-family: Arial, sans-serif;
    font-size: 56px;
    font-weight: 200;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
    transition: background .2s ease;
}

.fp-home-letter-modal__arrow:hover {
    color: #fff;
    background: rgba(121, 168, 62, .9);
}

.fp-home-letter-modal__prev {
    left: 18px;
}

.fp-home-letter-modal__next {
    right: 18px;
}

.fp-home-letter-modal button:focus,
.fp-home-letter-modal button:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Центрируем последние две карточки при 8 письмах на desktop */
@media (min-width: 992px) {
    .fp-home-letters__grid .fp-home-letter:nth-child(7) {
        grid-column: 1 / 2;
        justify-self: end;
        width: 100%;
    }

    .fp-home-letters__grid .fp-home-letter:nth-child(8) {
        grid-column: 2 / 3;
        justify-self: start;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .fp-home-letter-modal {
        padding: 55px 8px 70px;
    }

    .fp-home-letter-modal__image {
        max-height: calc(100vh - 155px);
    }

    .fp-home-letter-modal__close {
        top: 3px;
        right: 5px;
    }

    .fp-home-letter-modal__arrow {
        top: auto;
        bottom: 8px;
        width: 48px;
        height: 45px;
        font-size: 42px;
        transform: none;
    }

    .fp-home-letter-modal__prev {
        left: calc(50% - 58px);
    }

    .fp-home-letter-modal__next {
        right: calc(50% - 58px);
    }

    .fp-home-letter-modal__info {
        flex-direction: column;
        justify-content: center;
        gap: 2px;
        padding: 8px 60px 0;
        text-align: center;
    }
}

