/*
Theme Name: ToPwWw
Author: ToPwWw
Author URI: http://topwww.ru
Version: 7.0
*/

/* === ШРИФТЫ === */

@font-face {
font-family: 'PT Sans';
src: url('https://shared.nsedc.ru/fonts/pt_sans.woff2') format('woff2'),
url('https://shared.nsedc.ru/fonts/pt_sans.woff') format('woff'),
url('https://shared.nsedc.ru/fonts/pt_sans.ttf') format('truetype');
font-style: normal;
font-weight: 400;
font-display: swap;
}

@font-face {
font-family: 'Montserrat Bold';
src: url('https://ribild.ru/fonts/Montserrat-Bold.ttf') format('truetype');
font-style: normal;
font-weight: 700;
font-display: swap;
}

@font-face {
font-family: 'Roboto Light';
src: url('https://ribild.ru/fonts/roboto-light_85c220ba059dfba8286cf7085f2f591f.woff') format('woff'),
url('https://ribild.ru/fonts/roboto-light_85c220ba059dfba8286cf7085f2f591f.ttf') format('truetype');
font-style: normal;
font-weight: 300;
font-display: swap;
}

/* === СБРОС === */

*, *::before, *::after { box-sizing: border-box; }

html { line-height: 1.15; -webkit-text-size-adjust: 100%; }

body {
margin: 0;
font-family: 'PT Sans', Arial, sans-serif;
font-size: 16px;
line-height: 1.66;
background: #f4f1ec;
color: #201600;
}

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

a { color: #222; text-decoration: none; transition: color 0.2s; }
a:hover, a:active { color: #000; }
:focus { outline: none; }

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

table { border-collapse: collapse; width: 100%; }
td, th { padding: 0.4em; text-align: left; }
td:first-child, th:first-child { padding-left: 0; }
td:last-child, th:last-child { padding-right: 0; }

.screen-reader-text {
clip: rect(1px,1px,1px,1px);
position: absolute !important;
width: 1px;
height: 1px;
overflow: hidden;
}

/* === LAYOUT === */

#page { position: relative; word-wrap: break-word; }

.wrap {
margin: 0 auto;
max-width: 1400px;
padding: 0 2em;
}

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

.no-parallax {
width: 100%;
margin: 0 auto;
}

/* Flex-шапка: логотип слева, навигация справа */
.header-flex {
display: flex;
justify-content: space-between;
align-items: center;
}

.header-logo {
flex-shrink: 0;
	    margin: 8px;
}

.header-nav {
display: flex;
align-items: center;
position: relative;
}

/* === ОТСТУПЫ === */

.raspor10 { height: 10px; }
.raspor20 { height: 20px; }
.raspor30 { height: 30px; }
.raspor35 { height: 35px; }
.raspor40 { height: 40px; }
.raspor50 { height: 50px; }
.raspor50_mob { height: 50px; display: none; }

/* === ЯКОРЯ (компенсация фиксированной шапки) === */

#logoTop2, #logoTop3, #logoTop6, #logoTop22 {
scroll-margin-top: 100px;
}

/* === ШАПКА === */

.site-header {
background-color: #201600;
position: fixed;
top: 0;
z-index: 999;
width: 100%;
box-shadow: 0 6px 9px -5px rgba(0, 0, 0, 0.5);
}

#masthead .wrap { position: relative; }

.team {
height: 60px;
display: block;
}

.site-content-contain { position: relative; }
.site-content { padding-top: 60px; }

/* Десктоп-меню */



.items li {
display: inline-block;
margin-left: 20px;
}

.items li a {
color: #f4f1ec;
font-size: 15px;
text-transform: uppercase;
font-family: 'Montserrat Bold';
font-weight: 600;
line-height: 2;
transition: color 0.2s ease-out;
position: relative;
}

.items li a:hover { color: #856e5e; }

/* Анимация подчёркивания пунктов меню */
.items li a em.standart-speed {
display: block;
height: 2px;
width: 0;
background: #856e5e;
position: absolute;
bottom: 0;
left: 0;
transition: width 0.3s ease;
}

.items li a:hover em.standart-speed {
width: 100%;
}

.icon {
color: #f4f1ec;
cursor: pointer;
display: none;
font-size: 28px;
line-height: 1;
}

.showitems { display: block !important; }

.brmob { display: none; }

/* Бургер-меню */

.burger-menu { display: none; }

.menu-btn {
display: flex;
align-items: center;
position: absolute;
top: -12px;
right: 20px;
width: 56px;
height: 60px;
cursor: pointer;
z-index: 1;
}

.menu-btn > span,
.menu-btn > span::before,
.menu-btn > span::after {
display: block;
position: absolute;
width: 100%;
height: 5px;
background-color: #856e5e;
transition-duration: 0.25s;
border-radius: 20px;
}

.menu-btn > span { top: 28px; }
.menu-btn > span::before { content: ''; top: -14px; }
.menu-btn > span::after { content: ''; top: 14px; }

.menubox {
display: block;
position: fixed;
visibility: hidden;
top: 0;
right: -100%;
width: 100%;
max-width: 600px;
height: 100%;
margin: 0;
padding: 120px 0;
list-style: none;
background-color: #f4f1ec;
box-shadow: 1px 0 6px rgba(0,0,0,0.2);
transition-duration: 0.25s;
overflow-y: auto;
}

.menu-item {
display: block;
padding: 12px 24px;
color: #201600;
font-family: 'Montserrat Bold';
font-size: 22px;
font-weight: 700;
text-decoration: none;
transition-duration: 0.25s;
}

.menu-item:hover { background-color: #856e5e; color: #fff; }

#menu-toggle { opacity: 0; }

#menu-toggle:checked ~ .menu-btn > span { transform: rotate(45deg); }
#menu-toggle:checked ~ .menu-btn > span::before { top: 0; transform: rotate(0); }
#menu-toggle:checked ~ .menu-btn > span::after { top: 0; transform: rotate(90deg); }
#menu-toggle:checked ~ .menubox { visibility: visible; right: 0; }

/* === POPUP ФОРМЫ === */

.popup {
    position: fixed;
    z-index: 10000;
    top: 150px;
    left: 50%;
    transform: translate(-50%, 0); /* Центрируем по горизонтали и вертикали */
    width: 90%;
    max-width: 600px;
    padding: 0 30px;
    border-radius: 5px;
    background: #f4f1ec;
    box-shadow: 4px 4px 30px rgba(19, 5, 7, 0.6);
    transition: top 0.8s;
    margin-left: 0px !important;
}

.p_content {
  width: 100%;
  text-align: center;
  font-size: 16px;
  padding: 40px 0 20px;
}

.p_close {
  position: absolute;
  top: 0;
  right: 25px;
  width: 32px;
  height: 32px;
  padding: 5px;
  z-index: 10001;
}

.p_close span {
  display: block;
  width: 32px;
  height: 32px;
  background: url("https://ribild.ru/wp-content/uploads/2024/02/clo.png") no-repeat;
  background-size: contain;
  z-index: 10002;
}

.p_body {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #000;
  opacity: 0.7;
  transition: opacity 0.8s;
  z-index: 9999;
}

.js__popup { z-index: 10000; }
.js__p_start { z-index: 10000; }
.js__p_close { z-index: 10001; }
.js__p_body { z-index: 9999; }
.js__slide_top { height: 0; overflow: hidden; top: 0; z-index: 10000; }
.js__fadeout { height: 0; overflow: hidden; opacity: 0; z-index: 9999; }

/* === ЗАГОЛОВКИ === */

.zagolovok000 {
margin: 0 auto;
padding: 0;
text-align: left;
font-family: 'Montserrat Bold';
font-weight: 700;
font-size: 30px;
line-height: 1.35;
color: #201600;
}

.zagolovok-news { color: #201600; }
.zagolovok-clients { color: #201600; }

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

.knopiknop {
    font-size: 17px;
    width: 400px;
    display: grid;
    max-width: 100%;
    color: #f4f1ec;
    font-weight: 400;
    margin: 0 auto;
    text-align: center;
    padding: 14px 24px;
    line-height: 1.5;
    background: #201600;
    border-radius: 5px;
    font-family: 'Montserrat Bold';
    box-shadow: 0 6px 9px -5px rgba(0, 0, 0, 0.5);
    transition: background 0.3s, color 0.3s;
    cursor: pointer;
}

.knopiknop:hover {
color: #f4f1ec;
background: #856e5e;
}

.knopiknop2 {
font-size: 17px;
width: 300px;
max-width: 100%;
color: #f4f1ec;
font-weight: 400;
margin: 0 auto;
text-align: center;
padding: 14px 24px;
line-height: 1.5;
background: #201600;
border-radius: 5px;
font-family: 'Montserrat Bold';
box-shadow: 0 6px 9px -5px rgba(0, 0, 0, 0.5);
transition: background 0.3s, color 0.3s;
cursor: pointer;
}

.knopiknop2:hover {
color: #f4f1ec;
background: #54606a;
}

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

.section-about {
background: #201600;
}

.onas {
font-family: 'PT Sans';
font-size: 22px;
color: #f4f1ec;
line-height: 1.45;
}

.onas ul {
list-style: none;
margin: 0;
padding: 0;
}

.grid_tezis {
display: flex;
flex-direction: column;
gap: 2rem;
margin-top: 1.5rem;
}

.grid_tezis_row1,
.grid_tezis_row2 {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
}

/* === НОВОСТИ === */

.section-news {
background: #f4f1ec;
}

.news-all-btn {
text-align: center;
}

/* === УСЛУГИ === */

.section-services {
padding: 0;
}

/* === ЗАКАЗ === */

.section-order {
text-align: center;
}

.order-btn-wrap {
text-align: center;
}

/* === БАННЕР === */

.section-banner {
width: 100%;
overflow: hidden;
}

.banner-img {
width: 100%;
display: block;
}

/* === КЛИЕНТЫ === */

.section-clients-title {
padding-top: 30px;
}

.section-clients-logos {
padding-bottom: 30px;
}

.clients-logos-wrap {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
}

.clients-logos-wrap a {
display: inline-block;
transition: filter 0.3s, opacity 0.3s;
filter: grayscale(100%);
opacity: 0.6;
}

.clients-logos-wrap a:hover {
filter: grayscale(0);
opacity: 1;
}

.partner {
height: 100px;
margin: 50px;
display: inline-block;
}

/* === КОНТАКТЫ === */

.section-contacts {
background: #f4f1ec;
}

.contacts-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 40px;
align-items: start;
}

.contacts-info {
min-width: 0;
}

.contact-item {
display: flex;
align-items: center;
gap: 10px;
}

.contact-item .contaktext {
flex: 1;
}

.kontaktimg {
width: 45px;
height: 45px;
margin-left: -9px;
flex-shrink: 0;
}

.contaktext {
font-family: 'PT Sans';
font-weight: 600;
font-size: 18px;
color: #201600;
text-align: left;
line-height: 1.5;
}

.contact-phone {
color: inherit;
text-decoration: none;
transition: color 0.2s;
}

.contact-phone:hover {
color: #856e5e;
}

.contacts-buttons {
display: flex;
flex-direction: column;
align-items: flex-start;
}

.contact-download-link {
text-decoration: none;
display: inline-block;
}

.kontact_margin_right {
display: inline-block;
vertical-align: top;
margin-right: 200px;
}

/* === ПОДВАЛ === */

.section-footer {
background: #201600;
padding: 30px 0;
}

.footer-flex {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 15px;
}

.footer-left,
.footer-right {
display: flex;
align-items: center;
gap: 15px;
}

.footer-copy {
font-family: 'PT Sans';
color: #696969;
font-size: 14px;
}

.section-footer .saitsdelaem {
color: #8a857d;
}

.w100menu { width: 100%; }

.saitsdelaem {
font-family: 'PT Sans';
font-weight: 400;
color: #696969;
text-align: left;
line-height: 1.4;
letter-spacing: 0.8px;
font-size: 14px;
}

.saitsdelaem a {
font-family: 'PT Sans';
font-weight: 400;
font-size: 15px;
color: #d3cec4;
text-align: left;
text-transform: none;
line-height: 1.4;
letter-spacing: -0.2px;
transition: color 0.2s;
}

.saitsdelaem a:hover { color: #ebe7df; }

.right2 { text-align: right; }

/* === СЛАЙДЕР — ДЕСКТОП (по умолчанию) === */

.sequence {
height: 315vh;
position: relative;
}

.stage {
height: 100vh;
min-height: 680px;
position: sticky;
top: 0;
overflow: hidden;
isolation: isolate;
background: radial-gradient(circle at 70% 53%, #fff 0 14%, #f5f7fa 62%);
}

.scene {
position: absolute;
right: 5vw;
top: 50%;
width: min(82vw, 1510px);
aspect-ratio: 2600 / 1800;
transform: translateY(-43%);
overflow: hidden;
isolation: isolate;
z-index: 1;
opacity: var(--system-opacity, 0);
}

#ovik { --system-opacity: 1; }

.frame {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: contain;
object-position: center;
opacity: 0;
transform: translateZ(0) scale(1.15);
will-change: opacity, transform;
pointer-events: none;
}

.frame.active { opacity: 1; }

.frame.incoming {
opacity: var(--frame-blend, 0);
transform: translateZ(0) scale(calc(1.15 - var(--frame-blend, 0) * 0.002));
}

.wash {
position: absolute;
z-index: 3;
inset: 0;
pointer-events: none;
background: linear-gradient(90deg,
rgba(245,247,250,0.96) 0%,
rgba(245,247,250,0.84) 24%,
rgba(245,247,250,0.38) 42%,
rgba(245,247,250,0) 64%);
}

.copy {
position: absolute;
z-index: 4;
left: clamp(24px, 7vw, 130px);
top: 50%;
width: min(35vw, 510px);
transform: translateY(-50%);
}

.slide {
position: absolute;
inset: 0;
display: grid;
align-content: center;
opacity: 0;
visibility: hidden;
transform: translate3d(0, 16px, 0);
transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.slide.active {
opacity: 1;
visibility: visible;
transform: none;
}

.eyebrow {
margin: 0 0 18px;
color: #5d7188;
font-size: 12px;
font-weight: 700;
letter-spacing: 0.15em;
}

.slide h1 {
margin: 0 0 20px;
color: #10243a;
font-size: clamp(28px, 4vw, 48px);
font-weight: 700;
line-height: 1.15;
}

.slide p:not(.eyebrow) {
margin: 0;
color: #506277;
font-size: 17px;
line-height: 1.55;
}

.slide-btn-wrap {
margin-top: 30px;
	    display: flex;
	text-align:left;
	float:left;
}

.progress {
position: absolute;
z-index: 5;
left: clamp(24px, 7vw, 130px);
bottom: 32px;
width: min(220px, 26vw);
height: 3px;
background: #d4dde5;
}

.progress span {
display: block;
width: 0;
height: 100%;
background: #173b60;
}

.count {
position: absolute;
z-index: 5;
right: 30px;
bottom: 31px;
color: #62758a;
font: 700 12px/1 Arial;
letter-spacing: 0.08em;
}

.label {
position: absolute;
z-index: 5;
right: 30px;
top: 28px;
color: #718297;
font-size: 12px;
}

.sliderbr_mob { display: none; }

/* === СЛАЙДЕР — ПЛАНШЕТЫ (768–1150px) === */

@media screen and (max-width: 1150px) and (min-width: 768px) {
  .single_title { font-size: 26px; }
  .single-thumb { width: 100% !important; float: none !important; }
  .single_text { font-size: 16px; }

  .sequence { height: 250vh; }
  .stage { min-height: 580px; }
  .slide h1 { font-size: clamp(24px, 3.5vw, 36px); }
  .slide p:not(.eyebrow) { font-size: 15px; }
  .eyebrow { font-size: 11px; }
}

/* === СЛАЙДЕР — МОБИЛЬНЫЕ (≤767px) === */
/* Механика: автопрокрутка + свайпы, без скролл-драйва */

@media screen and (max-width: 767px) {
	
	
.slide-btn-wrap { display: none !important; }
	
	
  .sequence {
    height: auto;
    margin-top: 10px;
  }
	
	.slide {
      margin-top: 65px !important;
}

  .stage {
    position: relative;
    height: 520px;
    min-height: 520px;
    touch-action: pan-y;
  }

  .copy {
    left: 20px;
    right: 20px;
    top: 10%;
    width: auto;
    transform: none;
    z-index: 5;
  }

  .slide h1 { font-size: 24px; }
  .slide p:not(.eyebrow) { font-size: 15px; line-height: 1.5; }
  .eyebrow { font-size: 11px; margin-bottom: 12px; }

  .slide .bounceInRight.wow.animated:has(a.js__p_another_start) {
    display: none !important;
  }
  .slide a.js__p_another_start {
    display: none !important;
  }

  .scene {
    top: 5%;
    right: -20%;
    width: 130vw;
    height: 100%;
    aspect-ratio: auto;
    transform: none;
  }

  .frame { transform: translateZ(0) scale(1.08); }
  .frame.incoming {
    transform: translateZ(0) scale(calc(1.08 - var(--frame-blend, 0) * 0.002));
  }

  .wash {
    background: linear-gradient(180deg,
      rgba(245,247,250,0.91),
      rgba(245,247,250,0.45) 45%,
      transparent 72%);
  }

  .label { display: none; }
  .count { right: 20px; bottom: 24px; }
  .progress { left: 20px; bottom: 24px; width: 130px; }
}

/* === Очень маленькие экраны (≤400px) === */

@media screen and (max-width: 400px) {
	
	.slide {
      margin-top: 65px !important;
}
	
  .sequence { height: auto; }
  .stage { min-height: 500px; }
  .slide h1 { font-size: 21px; }
  .slide p:not(.eyebrow) { font-size: 14px; }
  .scene { top: 30%; height: 50%; }

  .single-thumb { width: 100% !important; float: none !important; }
}

/* === ФОНОВЫЕ СЕКЦИИ === */

#fon1 {
background: url(https://ribild.ru/wp-content/uploads/2024/03/111a.jpg) no-repeat center center / cover;
background-attachment: fixed;
}

#fon2 {
background: url(https://ribild.ru/wp-content/uploads/2024/03/333a.jpg) no-repeat center center / cover;
background-attachment: fixed;
}

#fon33333 { position: relative; }

/* === МОБИЛЬНАЯ ВЕРСИЯ — ПЛАНШЕТЫ (≤1150px) === */

@media screen and (max-width: 1150px) {
.site-header { height: auto; padding-bottom: 10px; }

.team { height: 50px; margin-top: 10px; }

.burger-menu { display: block; }

.icon { display: none !important; }

.items { display: none; }

.raspor50_mob { height: 50px; display: block; }

.kontact_margin_right { margin-right: 0 !important; }

/* Типографика */
.zagolovok000 { font-size: 26px; }
.onas { font-size: 20px; }
.contaktext { font-size: 17px; }
.contaktext a { font-size: 17px; }
.knopiknop { font-size: 17px; width: 100% !important; max-width: 500px; }
.knopiknop2 { font-size: 17px; width: 100% !important; max-width: 400px; }
.menu-item { font-size: 22px; }
.footer-copy { font-size: 13px; }
.saitsdelaem { font-size: 13px; }
.saitsdelaem a { font-size: 14px; }

.kontaktimg { width: 38px; height: 38px; min-width: 38px; }

.partner { height: 80px; margin: 30px; }

/* Фоны без fixed на мобильных */
#fon1, #fon2 {
background-attachment: scroll;
}

/* Grid в одну колонку */
.grid_tezis_row1,
.grid_tezis_row2 {
grid-template-columns: 1fr;
}

/* Контакты в одну колонку */
.contacts-grid {
grid-template-columns: 1fr;
gap: 20px;
}
}

/* === МОБИЛЬНАЯ ВЕРСИЯ — СМАРТФОНЫ (≤767px) === */

@media screen and (max-width: 767px) {
	.single_title { font-size: 24px; }
.single-thumb { width: 100% !important; float: none !important; }
  .single-ima {
    max-width: 100%;
    height: auto;
  }
.single_text { font-size: 16px; }

	.entry-title a{
	
	font-size: 24px !important;
	line-height: 1.4 !important;
}

.team { height: 45px; }

/* Скрыть блок новостей */
.news-block,
.news-section,
.news-wrapper,
#news-container {
display: none !important;
}
}

/* === МОБИЛЬНАЯ ВЕРСИЯ — МАЛЕНЬКИЕ ЭКРАНЫ (≤560px) === */

@media screen and (max-width: 560px) {
	
	.single_title { font-size: 22px; }
.single_text { font-size: 15px; }
.single_text h2 { font-size: 20px; }
.single_text h3 { font-size: 18px; }
.single-thumb { width: 100% !important; float: none !important; }
		.entry-title a{
	
	font-size: 22px !important;
	line-height: 1.4 !important;
}
.zagolovok000 { font-size: 22px; }
.onas { font-size: 17px; }
.contaktext { font-size: 15px; }
.contaktext a { font-size: 15px; }

.knopiknop, .knopiknop2 { font-size: 16px; }

.menu-item { font-size: 20px; }

.menubox { max-width: 100%; padding: 100px 0; }

.partner { height: 60px; margin: 20px; }

.slide h1 { font-size: 22px; }
.slide p:not(.eyebrow) { font-size: 14px; }
.eyebrow { font-size: 10px; }

.popup { width: 95%; padding: 0 15px; }

.site-content { padding-top: 70px; }

.team { height: 40px; }

.kontaktimg { width: 32px; height: 32px; min-width: 32px; }
.footer-copy { font-size: 12px; }
.saitsdelaem { font-size: 12px; }
.saitsdelaem a { font-size: 13px; }

/* Футер в колонку */
.footer-flex {
flex-direction: column;
gap: 10px;
text-align: center;
}
.footer-left,
.footer-right {
flex-direction: column;
align-items: center;
}
}

/* === Очень маленькие экраны (≤400px) === */

@media screen and (max-width: 400px) {
.team { height: 35px; }
.zagolovok000 { font-size: 20px; }
.onas { font-size: 16px; }
.knopiknop, .knopiknop2 { font-size: 15px; }
.slide h1 { font-size: 20px; }
.slide p:not(.eyebrow) { font-size: 13px; }
.menu-item { font-size: 18px; }
	.single-thumb { width: 100% !important; float: none !important; }
}

@media (prefers-reduced-motion: reduce) {
.sequence { height: auto; }
.stage { position: relative; }
.incoming { opacity: 0 !important; }
}



.entry-title a{
	
	font-size: 18px !important;
	line-height: 1.4 !important;
}


/* === ВНУТРЕННИЕ СТРАНИЦЫ (SINGLE) === */

.single {
 
  margin: 0 auto;
}

.single_title {
  margin: 0;
  font-family: 'Montserrat Bold';
  font-weight: 700;
  font-size: 30px;
  line-height: 1.35;
  color: #201600;
}

.single_title a {
  color: #201600;
  text-decoration: none;
  transition: color 0.2s;
	  font-size: 30px;
}

.single_title a:hover { color: #856e5e; }

.single-content {
  position: relative;
  overflow: hidden;
}

.single-thumb {
  float: left;
  width: calc(45% - 30px); /* Ширина картинки с отступом */
  margin-right: 30px;
  margin-bottom: 20px;
}

.single-ima {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.single_text {
  font-family: 'PT Sans', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #201600;
}

.single_text p { margin: 0 0 1.2em; }

.single_text h2,
.single_text h3 {
  font-family: 'Montserrat Bold';
  font-weight: 700;
  color: #201600;
  margin: 1.5em 0 0.6em;
  line-height: 1.3;
}

.single_text h2 { font-size: 24px; }
.single_text h3 { font-size: 20px; }

.single_text img { border-radius: 5px; }

.single_text a {
  color: #856e5e;
  text-decoration: underline;
  transition: color 0.2s;
}

.single_text a:hover { color: #201600; }

.single_text ul,
.single_text ol { margin: 0 0 1.2em 1.5em; }

.single_text blockquote {
  margin: 1.2em 0;
  padding: 15px 20px;
  border-left: 4px solid #856e5e;
  background: #ede8e0;
  border-radius: 0 5px 5px 0;
  font-style: italic;
  color: #4a3f38;
}

.clear { clear: both; }



/* === СТИЛИ ДЛЯ ФОРМ CONTACT FORM 7 === */

.wpcf7-form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.wpcf7-form-control-wrap {
  margin-bottom: 20px;
}

.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid #d3cec4;
  border-radius: 5px;
  font-family: 'PT Sans', Arial, sans-serif;
  font-size: 16px;
  color: #201600;
  background: #f4f1ec;
}

.wpcf7-form textarea {
  height: 150px;
  resize: vertical;
}

.wpcf7-form button {
  background: #201600;
  color: #f4f1ec;
  border: none;
  padding: 14px 24px;
  font-size: 17px;
  font-family: 'Montserrat Bold';
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.wpcf7-form button:hover {
  background: #856e5e;
  color: #f4f1ec;
}

.wpcf7-response-output {
  margin-top: 20px;
  padding: 15px;
  border-radius: 5px;
  background: #ede8e0;
}

.wpcf7-not-valid-tip {
  color: #856e5e;
  font-size: 14px;
}

/* Адаптивные стили */
@media screen and (max-width: 767px) {
  .wpcf7-form input,
  .wpcf7-form textarea,
  .wpcf7-form select {
    font-size: 15px;
  }
  
  .wpcf7-form button {
    font-size: 16px;
  }
}

@media screen and (max-width: 560px) {
  .wpcf7-form input,
  .wpcf7-form textarea,
  .wpcf7-form select {
    font-size: 14px;
  }
  
  .wpcf7-form button {
    font-size: 15px;
  }
}



.js__p_another2_start{
	text-decoration: none !important;
}



/* === LIGHTBOX === */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 92%;
  max-height: 88%;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  transform: scale(0.92);
  transition: transform 0.25s ease;
}

.lightbox.open .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 80, 80, 0.4);
}

.lightbox-close::before,
.lightbox-close::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.lightbox-close::before { transform: rotate(45deg); }
.lightbox-close::after  { transform: rotate(-45deg); }

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #ccd;
  font-size: 14px;
  font-family: 'PT Sans', Arial, sans-serif;
  max-width: 80%;
  text-align: center;
}

@media screen and (max-width: 767px) {
  .lightbox-img { max-width: 96%; max-height: 82%; }
  .lightbox-close { top: 10px; right: 12px; width: 40px; height: 40px; }
  .lightbox-caption { font-size: 13px; bottom: 14px; }
}


/* === БАННЕР === */

.section-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

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

.section-banner .banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.section-banner .banner-text {
  margin-left: clamp(24px, 7vw, 130px);
  max-width: 520px;
  color: #fff;
  font-family: 'PT Sans', Arial, sans-serif;
  font-size: 19px;
  line-height: 1.65;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  pointer-events: auto;
}

.section-banner .banner-text p {
  margin: 0 0 14px;
}

.section-banner .banner-text-accent {
  font-weight: 700;
  font-size: 21px;
  margin-top: 20px !important;
}

@media screen and (max-width: 767px) {
  .section-banner {
    display: flex;
    flex-direction: column;
  }

  .section-banner .banner-img {
    position: relative;
    z-index: 1;
	  content: url(https://ribild.ru/wp-content/uploads/2026/09/IMG_3081.jpg);
  }

  .section-banner .banner-overlay {
    position: relative;
    background: #041020;
    padding: 30px 20px;
    height: auto;
  }

  .section-banner .banner-text {
    margin-left: 0;
    max-width: none;
    font-size: 16px;
    color: #fff;
    text-shadow: none;
  }

  .section-banner .banner-text-accent {
    font-size: 17px;
  }
}

@media screen and (max-width: 400px) {
  .section-banner .banner-overlay {
    padding: 24px 16px;
  }

  .section-banner .banner-text {
    font-size: 15px;
  }

  .section-banner .banner-text-accent {
    font-size: 16px;
  }
}
