/*
Theme Name: Santehnik Volgograd
Theme URI: https://santehnik-volgograda.ru
Description: Custom theme for plumbing services in Volgograd
Version: 1.0
Author: Farhad Industries
Text Domain: santehnik-volgograd
*/

/* Back to top */

#to-top {
  display: inline-block;
  background-image: url('/wp-content/uploads/2024/10/up2.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100%;
  width: 40px;
  height: 40px;
  position: fixed;
  bottom: 30px;
  right: 20px;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  -webkit-transition: background-color 0.3s, opacity 0.5s, visibility 0.5s;
  -o-transition: background-color 0.3s, opacity 0.5s, visibility 0.5s;
  transition: background-color 0.3s, opacity 0.5s, visibility 0.5s;
}

#to-top:hover,
#to-top:active {
  background-color: #fd802b;
}

#to-top:hover {
  cursor: pointer;
}

#to-top.is-active {
  opacity: 1;
  visibility: visible;
}
.menu__call--mobile, .header__logo--mobile {
	display: none;
}
@media (max-width: 1023px) {
	.menu__call {
		display: none;
	}
	.menu__call--mobile {
		display: block;
		padding: 5px;
		z-index: 99;
	}
	.header__logo {
		display: none;
	}
	.header__logo--mobile {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
	}
}

.portfolio-video {
	display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
	padding: 0 80px;
}

.portfolio-video__item {
	width: 50%;
}

.portfolio-video__item iframe {
	width: 100%;
	height: 350px;
	border: none;
}

@media (max-width: 1160px) {
    .portfolio-video {
        padding: 0;
    }
}

@media (max-width: 576px) {
    .portfolio-video {
        flex-direction: column;
    }
	.portfolio-video__item {
		width: 100%;
	}
}

.form-wrap {
	background-color: #F0F0F0;
	min-height: 350px;
}

.form-wrap .form__container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

.form-wrap .form__row {
	display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.form-wrap .form, .form-wrap .form__title {
	max-width: 100%;
}

.form-wrap .form .button {
	margin-top: 0;
}

.form-wrap .form input {
	min-height: 75px;
}

@media (max-width: 1023px) {
	.menu__call--main {
		display: flex;
		flex-direction: column;
		gap: 20px;
		background: unset;
	}

	.menu__call--main br {
		display: none;
	}

	.menu__call--main a {
		padding: 22px;
		text-align: center;
		background-color: #DD1515;
		font-size: 22px;
		font-weight: 700;
		line-height: 1.2272727273;
		border-radius: 10px;
	}
}

@media (max-width: 768px) {
	.form-wrap .form__row {
		flex-direction: column;
	}
	.main__list {
		width: 100%;
	}
}

.costs__body {
	grid-template-columns: 1fr;
}

.main__body .wpcf7 {
	width: 100%;
	max-width: 550px;
}

.showh {
	background-color: #1A202A !important;
}

.page_tmpl {
	padding-top: 150px;
}

@media (max-width: 1023px) {
    .page_tmpl {
        padding-top: 50px;
    }
}

.seo p {
	line-height: 1.5;
	margin-bottom: 25px;
}

.seo ul {
	margin-bottom: 25px;
}

.seo h2, .seo h3, .seo h4 {
	margin-bottom: 20px;
}

.cost_1 {
	grid-template-columns: 1fr;
}

.services_page {
	padding: 140px 0;
}

@media (max-width: 768px) {
    .services_page {
        padding: 40px 0;
    }
}

.costs__row, .footer__lists {
	-ms-flex-wrap: nowrap;
	    flex-wrap: nowrap;
}

.costs__row span:nth-child(2) {
	-ms-flex-negative: 0;
	    flex-shrink: 0
}

.footer__lists ul {
	width: 50%;
}

@media (max-width: 768px) {
	.costs__row {
		-ms-flex-wrap: wrap;
		    flex-wrap: wrap;
	}
	.footer__lists ul {
		width: 100%;
	}
}
.social-wrapper {
    position: fixed;
    left: 50%;
    bottom: 15px;
    z-index: 999;
    display: flex;
    gap: 15px;
    background: #fff;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 0 20px #dfe5eb;
    transform: translateX(-50%);
}

footer {
	padding-bottom: 100px !important;
}

/* Header fixes - compact logo + call label */
.header__logo b {
	font-size: 0.85em;
	line-height: 1.1;
	white-space: nowrap;
}

.header__logo b br {
	display: none;
}

@media (max-width: 1259px) {
	.header__logo b br {
		display: inline;
	}
}

.menu__call-label {
	display: block;
	font-size: 20px;
	font-weight: 400;
	opacity: 1;
	margin-bottom: 2px;
}

.menu__call a {
	white-space: nowrap;
}

/* Tighter menu gaps on mid screens */
@media (min-width: 1024px) and (max-width: 1259px) {
	.menu {
		gap: 15px;
	}
	.menu__link {
		font-size: 16px;
	}
	.menu__call {
		padding: 10px 14px;
		font-size: 16px;
	}
}

/* Green blinking dot next to "На связи 24/7" */
.menu__call-label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.menu__call-label::before {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	background-color: #00e676;
	border-radius: 50%;
	animation: blink-dot 1.5s ease-in-out infinite;
	flex-shrink: 0;
}

@keyframes blink-dot {
	0%, 100% { opacity: 1; box-shadow: 0 0 8px 2px #4caf50; }
	50% { opacity: 0.2; box-shadow: 0 0 0 #4caf50; }
}

/* CF7 acceptance checkbox */
.wpcf7-acceptance { font-size: 12px; color: #999; margin-top: 10px; display: block; }
.wpcf7-acceptance a { color: #DD1515; text-decoration: underline; }
.wpcf7-acceptance a:hover { color: #ff3333; }
.wpcf7-list-item { margin: 0; }
.wpcf7-list-item label { display: flex; align-items: flex-start; gap: 6px; cursor: pointer; }
.wpcf7-list-item input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; }

/* Form styling - match original */
.popup__content .wpcf7 {
	padding: 30px;
}

.popup__content .wpcf7 input[type="text"],
.popup__content .wpcf7 input[type="tel"],
.form input[type="text"],
.form input[type="tel"],
.wpcf7 input[type="text"],
.wpcf7 input[type="tel"] {
	width: 100%;
	max-width: 400px;
	background-color: #FFFFFF;
	border: 1px solid #ddd;
	border-radius: 10px;
	padding: 18px 14px;
	font-size: 20px;
	font-weight: 400;
	color: #000;
	margin-bottom: 12px;
	box-sizing: border-box;
	font-family: "Montserrat", sans-serif;
}

.wpcf7 input::placeholder {
	color: #999;
}

.wpcf7 input:focus {
	outline: none;
	border-color: #DD1515;
}

.wpcf7 .form__row {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

.wpcf7 .button,
.wpcf7 input[type="submit"] {
	display: block;
	width: 100%;
	max-width: 400px;
	padding: 20px 42px;
	text-align: center;
	background-color: #DD1515;
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	margin: 10px auto 0;
	font-family: "Montserrat", sans-serif;
}

.wpcf7 .button:hover,
.wpcf7 input[type="submit"]:hover {
	background-color: #ff3030;
}

.wpcf7-acceptance {
	display: block;
	max-width: 400px;
	margin: 5px auto;
	font-size: 12px;
	color: #999;
}

.wpcf7-acceptance a {
	color: #DD1515;
	text-decoration: underline;
}

.wpcf7-response-output {
	max-width: 400px;
	margin: 10px auto !important;
	text-align: center;
}

/* Popup form centering */
.popup__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 30px 20px;
}

.popup__content .wpcf7 {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.popup__content .wpcf7-form {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Success message styling */
.wpcf7-response-output.wpcf7-mail-sent-ok,
.wpcf7 form.sent .wpcf7-response-output {
	color: #4CAF50;
	font-size: 18px;
	font-weight: 700;
	border-color: #4CAF50 !important;
	padding: 15px;
	background: #f0fff0;
	border-radius: 10px;
}

/* Service page hero */
.service-hero {
	padding: 140px 0 40px;
}
@media (max-width: 1023px) {
	.service-hero {
		padding: 110px 0 30px;
	}
}
@media (max-width: 768px) {
	.service-hero {
		padding: 100px 0 20px;
	}
}
.service-hero .title {
	font-size: 32px;
	text-transform: uppercase;
}
@media (max-width: 768px) {
	.service-hero .title {
		font-size: 24px;
	}
}
.service-cta {
	margin-top: 0;
}
.service-cta .button {
	margin-top: 10px;
}

/* Service page content enhancements */
.seo .faq-block {
	margin-top: 40px;
}
.seo .faq-block h3 {
	margin-bottom: 20px;
}
.seo .faq-item {
	border-bottom: 1px solid #ddd;
	padding: 15px 0;
}
.seo .faq-item strong {
	display: block;
	margin-bottom: 8px;
	font-size: 1.05em;
}

/* ================================================
   About Page Styles
   ================================================ */

/* Hero */
.about-hero {
	padding: 160px 0 60px;
}
.about-hero__container {
	display: flex;
	align-items: center;
	gap: 60px;
}
.about-hero__content {
	flex: 1;
}
.about-hero__title {
	font-size: 36px;
	font-weight: 700;
	line-height: 1.25;
	margin-bottom: 20px;
	color: #fff;
}
.about-hero__subtitle {
	font-size: 18px;
	line-height: 1.5;
	color: #ccc;
	margin-bottom: 30px;
}
.about-hero__btn {
	display: inline-block;
	font-size: 22px;
}
.about-hero__photo {
	flex-shrink: 0;
	width: 300px;
	height: 360px;
}
.about-hero__photo-placeholder {
	width: 100%;
	height: 100%;
	background: #2a3140;
	border-radius: 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	color: #666;
}
.about-hero__photo-placeholder svg {
	opacity: 0.4;
}
.about-hero__photo-placeholder span {
	font-size: 14px;
	opacity: 0.5;
}
.about-hero__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 16px;
}

@media (max-width: 1023px) {
	.about-hero {
		padding: 120px 0 40px;
	}
	.about-hero__container {
		flex-direction: column;
		text-align: center;
		gap: 30px;
	}
	.about-hero__title {
		font-size: 28px;
	}
	.about-hero__photo {
		width: 220px;
		height: 260px;
	}
}
@media (max-width: 768px) {
	.about-hero {
		padding: 100px 0 30px;
	}
	.about-hero__title {
		font-size: 24px;
	}
	.about-hero__subtitle {
		font-size: 16px;
	}
}

/* About Text */
.about-text {
	padding: 50px 0 60px;
}
.about-text__body {
	max-width: 820px;
	margin: 40px auto 0;
	font-size: 17px;
	line-height: 1.7;
	color: #333;
}
.about-text__body p {
	margin-bottom: 20px;
}
.about-text__body p:last-child {
	margin-bottom: 0;
}
@media (max-width: 768px) {
	.about-text {
		padding: 30px 0 40px;
	}
	.about-text__body {
		font-size: 15px;
		margin-top: 25px;
	}
}

/* Principles */
.about-principles {
	padding: 50px 0 70px;
}
.about-principles__items {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	margin-top: 50px;
}
.about-principles__item {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}
.about-principles__icon {
	width: 80px;
	height: 80px;
	background: rgba(221, 21, 21, 0.15);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.about-principles__icon svg {
	color: #DD1515;
	stroke: #DD1515;
}
.about-principles__item h3 {
	font-size: 20px;
	font-weight: 700;
	color: #fff;
}
.about-principles__item p {
	font-size: 15px;
	line-height: 1.5;
	color: #bbb;
	max-width: 240px;
}

@media (max-width: 1023px) {
	.about-principles__items {
		grid-template-columns: repeat(2, 1fr);
		gap: 35px;
		margin-top: 35px;
	}
}
@media (max-width: 576px) {
	.about-principles__items {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	.about-principles {
		padding: 30px 0 50px;
	}
}

/* Work Gallery */
.about-gallery {
	padding: 50px 0 60px;
}
.about-gallery__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
	margin-top: 40px;
}
.about-gallery__item {
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 4/3;
	display: block;
}
.about-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.about-gallery__item:hover img {
	transform: scale(1.05);
}

@media (max-width: 1023px) {
	.about-gallery__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 576px) {
	.about-gallery__grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.about-gallery {
		padding: 30px 0 40px;
	}
}

/* CTA */
.about-cta {
	padding: 60px 0;
	text-align: center;
}
.about-cta__title {
	font-size: 34px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 15px;
}
.about-cta__text {
	font-size: 18px;
	color: #ccc;
	margin-bottom: 35px;
}
.about-cta__buttons {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
}
.about-cta__phone {
	display: inline-block;
}
.about-cta__tg {
	display: inline-block;
	background-color: #28A4E4 !important;
}
.about-cta__tg:hover {
	background-color: #1d8bc7 !important;
}

@media (max-width: 768px) {
	.about-cta {
		padding: 40px 0;
	}
	.about-cta__title {
		font-size: 26px;
	}
	.about-cta__text {
		font-size: 16px;
	}
	.about-cta__buttons {
		flex-direction: column;
	}
}

/* Fix form container on all pages */
.form-wrap {
	background-color: #F0F0F0;
	padding: 40px 20px;
}

.form-wrap .form__container {
	max-width: 550px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.form-wrap .form__title {
	text-align: center;
	margin-bottom: 20px;
}

.form-wrap .wpcf7 {
	width: 100%;
	max-width: 450px;
}

.form-wrap .wpcf7-form {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.form-wrap .wpcf7 input[type="text"],
.form-wrap .wpcf7 input[type="tel"] {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}


/* Hero video - adaptive: cover on all devices, crops center */
.main__bg video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	-o-object-fit: cover;
}

/* ================================================
   Portfolio Page — Masonry Gallery
   ================================================ */

.portfolio-page {
	padding: 140px 0 60px;
}

.portfolio-page__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.portfolio-page__intro {
	max-width: 800px;
	margin: 30px auto 50px;
	text-align: center;
	font-size: 17px;
	line-height: 1.7;
	color: #555;
}

/* Masonry grid */
.portfolio-masonry {
	columns: 3;
	column-gap: 16px;
}

.portfolio-masonry__item {
	display: block;
	break-inside: avoid;
	margin-bottom: 16px;
	border-radius: 12px;
	overflow: hidden;
	position: relative;
	cursor: pointer;
	text-decoration: none;
}

.portfolio-masonry__item img {
	width: 100%;
	display: block;
	transition: transform 0.4s ease;
}

.portfolio-masonry__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 20px;
	transition: background 0.35s ease;
}

.portfolio-masonry__caption {
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.35s ease, transform 0.35s ease;
	text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.portfolio-masonry__item:hover img {
	transform: scale(1.06);
}

.portfolio-masonry__item:hover .portfolio-masonry__overlay {
	background: rgba(0, 0, 0, 0.45);
}

.portfolio-masonry__item:hover .portfolio-masonry__caption {
	opacity: 1;
	transform: translateY(0);
}

/* CTA */
.portfolio-page__cta {
	text-align: center;
	padding: 60px 0 40px;
}

.portfolio-page__cta h2 {
	font-size: 30px;
	font-weight: 700;
	margin-bottom: 12px;
}

.portfolio-page__cta p {
	font-size: 17px;
	color: #666;
	margin-bottom: 30px;
}

.portfolio-page__cta-buttons {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

.button--outline {
	background: transparent !important;
	border: 2px solid #DD1515 !important;
	color: #DD1515 !important;
}

.button--outline:hover {
	background: #DD1515 !important;
	color: #fff !important;
}

/* SEO text */
.portfolio-page__seo {
	max-width: 800px;
	margin: 0 auto 40px;
	font-size: 15px;
	line-height: 1.7;
	color: #777;
	text-align: center;
}

/* Responsive */
@media (max-width: 1023px) {
	.portfolio-page {
		padding: 110px 0 40px;
	}
	.portfolio-masonry {
		columns: 2;
	}
}

@media (max-width: 576px) {
	.portfolio-page {
		padding: 80px 0 30px;
	}
	.portfolio-masonry {
		columns: 1;
	}
	.portfolio-page__cta h2 {
		font-size: 24px;
	}
	.portfolio-page__cta-buttons {
		flex-direction: column;
	}
}

/* ================================================
   Services Accordion (Homepage)
   ================================================ */

.services-accordion {
	margin-top: 30px;
}

.svc-accordion__group {
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	margin-bottom: 6px;
	overflow: hidden;
	background: #fff;
}

.svc-accordion__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 24px;
	cursor: pointer;
	user-select: none;
	background: #fafafa;
	transition: background 0.25s ease;
}

.svc-accordion__header:hover {
	background: #f0f0f0;
}

.svc-accordion__header h3 {
	font-size: 20px;
	font-weight: 700;
	margin: 0;
	color: #1A202A;
}

.svc-accordion__arrow {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	transition: transform 0.3s ease;
	color: #999;
}

.svc-accordion__group.is-open .svc-accordion__arrow {
	transform: rotate(180deg);
	color: #DD1515;
}

.svc-accordion__body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease;
}

.svc-accordion__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
	padding: 8px 24px 24px;
}

.svc-accordion__tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 16px 10px;
	border-radius: 10px;
	border: 1px solid #eee;
	background: #f8f8f8;
	text-decoration: none;
	color: #666;
	transition: all 0.3s ease;
}

.svc-accordion__tile:hover {
	color: #1A202A;
	border-color: #DD1515;
	box-shadow: 0 0 12px rgba(221, 21, 21, 0.15);
	background: #fff;
	transform: translateY(-2px);
}

.svc-accordion__tile-icon {
	width: 44px;
	height: 44px;
	margin-bottom: 8px;
	filter: grayscale(100%) opacity(0.5);
	transition: filter 0.3s ease;
}

.svc-accordion__tile:hover .svc-accordion__tile-icon {
	filter: grayscale(0%) opacity(1);
}

.svc-accordion__tile-name {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 4px;
}

.svc-accordion__tile-price {
	font-size: 13px;
	color: #999;
	transition: color 0.3s ease;
}

.svc-accordion__tile:hover .svc-accordion__tile-price {
	color: #DD1515;
}

.services-accordion__footer {
	text-align: center;
	margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
	.svc-accordion__header {
		padding: 14px 16px;
	}
	.svc-accordion__header h3 {
		font-size: 17px;
	}
	.svc-accordion__grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 8px;
		padding: 8px 16px 16px;
	}
	.svc-accordion__tile {
		padding: 12px 6px;
	}
	.svc-accordion__tile-icon {
		width: 36px;
		height: 36px;
	}
	.svc-accordion__tile-name {
		font-size: 13px;
	}
}

@media (max-width: 480px) {
	.svc-accordion__grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* Tighter accordion on mobile */
@media (max-width: 768px) {
	.svc-accordion__group {
		margin-bottom: 4px;
	}
	.svc-accordion__header {
		padding: 14px 18px;
	}
	.svc-accordion__header h3 {
		font-size: 18px;
	}
	.svc-accordion__grid {
		padding: 6px 14px 18px;
		gap: 8px;
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	}
}

/* First accordion open by default */
.svc-accordion__group.is-open .svc-accordion__body {
	max-height: 2000px;
}
