:root {
  --color-main-blue: #0a92d0;
  --color-main-white: #fff;
  --color-main-hover: #05acf9;
  --color-link-hover: #05acf9;
  --color-text-title-grey: #525960;
  --color-text-title-white: #fff;
  --color-text-grey: #595959;
  --color-text-white: #fff;
  --bg-color-grey: #f4f4f4;
  --bg-color-grey-accent: #f8f9fa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
}

a {
  font-size: 1rem;
}

ul {
  list-style: none;
}

.container {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 96px 20px;
}

.section_title {
  font-size: 36px !important;
  font-weight: bold !important;
  text-align: center;
  margin-bottom: 16px !important;
  color: var(--color-text-title-grey) !important;
  line-height: 1.2 !important;
}

.section_subtitle {
  font-size: 18px !important;
  word-wrap: break-word !important;
  text-align: center;
  color: var(--color-text-grey) !important;
  margin-bottom: 50px !important;
  line-height: 1.4 !important;
}

.section_servPrice .section_title {
  margin-top: 0 !important;
}

blockquote {
  padding: 40px 20px;
  background: var(--bg-color-grey-accent);
  border-left: 6px solid var(--color-main-blue);
}

.post-views {
  display: none;
}

.service-text .no-link {
  background-color: transparent !important;
  padding: 0 !important;
}

/* ===================================================== */
/* HEADER */
/* ===================================================== */
.header {
  background-color: rgba(255, 255, 255, 0.9);
  position: fixed;
  z-index: 100;
  width: 100%;
  top: 0;
  left: 0;
}

.header .container {
  padding: 0 20px !important;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
}

.phone_menu {
  background-color: #0a92d0;
  color: #fff;
  padding: 5px 0;
  border-radius: 5px;
  min-width: 200px;
  text-align: center;
}

/* ===================================================== */
/* BANNER */
/* ===================================================== */
.section_banner {
  background-image: url(../img/bg.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
  color: var(--color-main-white);
  margin-top: 66px;
}

.section_banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.section_banner > * {
  position: relative;
  z-index: 2;
}

.section_banner_wrap {
  text-align: center;
}

.section_banner h1 {
  font-size: 54px;
  font-weight: bold;
  max-width: 700px;
  margin: 0 auto 30px auto;
}

.section_banner p {
  margin-bottom: 60px;
  /* font-size: clamp(16px, 3vw, 23px); */
  font-size: 23px;
  max-width: 1000px;
  margin: 0 auto 30px auto;
}

.banner_button {
  display: grid;
  grid-template-columns: repeat(
    2,
    max-content
  ); /* Две колонки по ширине контента */
  justify-content: center; /* Центрируем колонки */
  gap: 30px;
}

.banner_button a {
  width: fit-content;
}

.legal_button {
  justify-content: start;
}

.legal_button a {
  color: var(--color-text-white) !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
}

.banner_btn,
.legal_btn {
  background-color: var(--color-main-blue);
  text-decoration: none;
  color: var(--color-text-white);
  padding: 12px 35px;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: nowrap; /* Запрещаем перенос текста внутри кнопки */
}

.banner_btn:hover,
.popularServiceBtn:hover,
.legal_btn:hover {
  background-color: var(--color-main-hover);
}

.banner_btn:last-child {
  background: rgba(208, 208, 208, 0.4);
}

.banner_btn:last-child:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* ===================================================== */
/* SERVICE */
/* ===================================================== */
.service_card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  gap: 20px;
  justify-content: center;
}

.service_item {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
}

.service_card_link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #f6f6f6;
}

.service_card_link:hover,
.advantages_item:hover,
.service_item:hover,
.feedback_item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service_card_link:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service_head {
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.service_head img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  border: none;
  outline: none;
}

.service_card_link:hover .service_head img {
  transform: scale(1.05);
}

.service_body {
  padding: 25px 15px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  height: calc(100% - 200px);
  flex-grow: 1;
}

.service_body_title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text-title-grey);
  margin: 0;
}

.service_body_subtitle {
  color: var(--color-text-grey);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.service_body_link {
  display: inline-block;
  color: var(--color-main-blue);
  font-weight: 500;
  text-decoration: none;
  margin-top: 10px;
  transition: all 0.3s ease;
  padding: 8px 0;
  position: relative;
  width: fit-content;
}

.service_body_link::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-main-blue);
  transition: all 0.3s ease;
}

.service_card_link:hover .service_body_link {
  color: var(--color-link-hover);
}

.service_card_link:hover .service_body_link::after {
  background-color: var(--color-link-hover);
  transform: translateY(2px);
}

.service_card_link * {
  text-decoration: none;
}

/* ===================================================== */
/* POPULAR SERVICE */
/* ===================================================== */
.section_popularService {
  background-color: var(--bg-color-grey);
}

.popularServiceTable {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin: 0 0 30px;
}

.popularServiceTable table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  min-width: 562px;
}

.popularServiceTable table thead {
  background-color: var(--color-main-blue);
  border-bottom: 2px solid #e3e3e3;
}

.popularServiceTable table thead tr {
  border-bottom: 2px solid #dee2e6;
}

.popularServiceTable table thead td {
  font-weight: 600;
  color: var(--color-text-white);
  padding: 20px 25px;
  text-align: left;
  white-space: nowrap;
}

.popularServiceTable table thead td:last-child {
  text-align: right;
}

.service-price-cell,
.price-cell {
  font-weight: bold;
}

.price-cell {
  text-align: right !important;
}

.popularServiceTable table tbody tr {
  border-bottom: 1px solid #e9ecef;
}

.popularServiceTable table tbody tr:nth-child(odd) {
  background-color: var(--bg-color-grey);
}

.popularServiceTable table tbody tr:nth-child(even) {
  background-color: var(--bg-color-grey-accent);
}

.popularServiceTable table td:nth-child(1) {
  min-width: 180px;
}

.popularServiceTable table td:nth-child(2) {
  min-width: 100px;
  text-align: right;
}

.popularServiceTable table td {
  padding: 20px 25px;
  text-align: left;
  vertical-align: top;
}

.popularServiceBtn {
  display: flex;
  justify-content: center;
  background-color: var(--color-main-blue);
  padding: 12px 35px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--color-text-white);
  border-radius: 5px;
}

.popularServiceBtn:hover {
  background-color: var(--color-link-hover);
}

/* Полоса прокрутки таблицы */
.popularServiceTable::-webkit-scrollbar {
  height: 8px;
}

.popularServiceTable::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.popularServiceTable::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.popularServiceTable::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ===================================================== */
/* ADVANTAGES */
/* ===================================================== */
.advantages_wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 0 auto;
  max-width: 1200px;
}

.advantages_item {
  background: #fff;
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.advantages_item_img {
  margin-bottom: 20px;
}

.advantages_item_img img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.advantages_item_title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.4;
}

.advantages_item_subtitle {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
}

/* ===================================================== */
/* FEEDBACK */
/* ===================================================== */
.section_feedback {
  background-color: var(--bg-color-grey);
}

.feedback_wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 0 auto;
  max-width: 1200px;
}

.feedback_item {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #eaeaea;
}

.feedback_head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.feedback_item_logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #0a92d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feedback_item_title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.feedback_item_dubtitle {
  font-size: 0.875rem;
  color: #666;
}

.feedback_body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.feedback_star {
  margin-bottom: 15px;
  color: #ffc107;
  font-size: 1.125rem;
}

.feedback_star::before {
  content: "★★★★★";
}

.feedback_message {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
  flex-grow: 1;
  font-style: italic;
}

.feedback_date {
  font-size: 0.8125rem;
  color: #888;
  text-align: right;
}

/* ===================================================== */
/* QUESTION */
/* ===================================================== */
.section_question {
  background-color: var(--color-main-blue);
  color: var(--color-text-white);
}

.section_question p,
.section_question .section_title {
  color: var(--color-text-white) !important;
}

.section_repair_title .section_subtitle,
.section_repair_title .section_title {
  text-align: left;
}

.question_wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 20px;
}

.question_item {
  border-radius: 12px;
  padding: 30px 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.question_item_img {
  margin-bottom: 20px;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.question_item_img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.question_item_title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-title-white);
  margin-bottom: 15px;
  line-height: 1.3;
}

.question_item_subtitle {
  font-size: 1rem;
  color: var(--color-text-title-white);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.question_item_subtitle span {
  display: block;
}

.question_btn {
  display: block;
  width: fit-content;
  margin: 0 auto;
  background-color: var(--color-main-white);
  padding: 12px 35px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--color-main-blue);
  border-radius: 5px;
  margin-bottom: 40px;
}

.question_btn:hover {
  background-color: var(--bg-color-grey);
}

.question_map iframe {
  width: 100%;
}

/* ===================================================== */
/* FOOTER */
/* ===================================================== */
.footer {
  background-color: var(--bg-color-grey);
}

.footer_wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 30px;
}

.footer_menu_service,
.footer_main_menu,
.footer_contact,
.footer_sociall {
  display: flex;
  flex-direction: column;
}

.footer_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer_wrap ul li:first-child,
.footer_sociall p {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-title-grey);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.footer_wrap ul li p {
  font-size: 1rem;
  color: var(--color-text-title-grey);
}

.footer_wrap ul li a {
  color: var(--color-text-grey);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer_wrap ul li a:hover {
  text-decoration: underline;
}

.footer_social_ico {
  display: flex;
  gap: 15px;
}

.footer_social_ico a {
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
}

.footer_social_ico a:hover {
  transform: translateY(-3px);
}

.footer_social_ico img {
  width: 30px;
  height: 30px;
}

.footer_bottom {
  padding-top: 20px;
  border-top: 1px solid #d9d9d9;
  text-align: center;
  font-size: 0.875rem;
  color: #aaa;
}

.footer_mark {
  text-align: center;
  color: var(--color-text-grey);
}

/* ===================================================== */
/* GLASS EFFECT */
/* ===================================================== */
.glass-effect {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* ===================================================== */
/* REPAIR PAGES */
/* ===================================================== */
.repair_laptop_bg {
  background-image: url(../img/laptop.jpg);
}

.repair_pc_bg {
  background-image: url(../img/pc.jpg);
}

.repair_video_bg {
  background-image: url(../img/graphics_card.jpg);
}

.repair_console_bg {
  background-image: url(../img/console.jpg);
}

.repair_windows_bg {
  background-image: url(../img/windows.jpg);
}

.section_repair_title {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-top: 66px;
}

.section_repair_title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  z-index: 1;
}

.section_repair_title > * {
  position: relative;
  z-index: 2;
}

.section_servPrice,
.section_blog,
.section_contacts,
.section_page_single {
  margin-top: 66px;
}

.repair_services_popservices {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.repair_services_right_sidebar {
  display: grid;
  grid-template-rows: 1fr 1.5fr;
  gap: 20px;
}

.repair_services_popservices_list,
.repair_sidebar_service,
.repair_sidebar_diagn {
  background-color: #f6f6f6;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #e4e4e4;
  transition: all 0.3s ease;
}

.repair_sidebar_diagn {
  background-color: #0a92d0;
  border: 1px solid #0a92d0;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: fit-content;
}

.repair_services_popservices_list h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 30px;
}

.popservices_list_item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.popservices_list_item:last-child {
  margin-bottom: 0;
}

.popservices_list_item .service-link,
.service-table-link {
  text-decoration: none;
  color: #000;
  transition: all 0.3s ease;
}

.popservices_list_item .service-link:hover,
.service-table-link:hover {
  color: #0a92d0;
}

.popservices_list_item span {
  font-weight: bold;
  padding: 5px 15px;
  background: #e4e4e4;
  border-radius: 5px;
  min-width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popservices_list_item .no-link {
  padding: 0 !important;
}

.repair_sidebar_diagn h3,
.repair_sidebar_service h3 {
  font-weight: bold;
  font-size: 1.25rem;
}

.sidebar_diagn_btn {
  display: flex;
  width: 100%;
  background-color: #fff;
  padding: 12px 35px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #000;
  border-radius: 5px;
  justify-content: center;
}

.repair_sidebar_service {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.repair_sidebar_service ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.repair_sidebar_service ul li a {
  text-decoration: none;
  font-size: 1rem;
  color: #000;
}

.sidebar_diagn_btn:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.services_model_wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.services_model_item {
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  font-size: 2.25rem;
  font-weight: bold;
  color: #fff;
  background-color: #0a92d0;
  padding: 40px 0;
  border-radius: 5px;
}

.repair_services_model .section_title {
  margin: 50px 0;
}

.section_repair_table .section_title {
  margin-bottom: 50px;
}

.section_repair_table {
  background-color: #f4f4f4;
}

/* ===================================================== */
/* BREADCRUMBS */
/* ===================================================== */
.section_breadcrumbs .container {
  padding: 0;
}

.breadcrumbs {
  color: var(--color-text-grey);
  margin-bottom: 50px;
}

.breadcrumbs a {
  color: var(--color-main-blue);
}

.category-item a {
  transition: all 0.3s ease;
}

.category-item a:hover {
  color: var(--color-main-hover);
}

/* ===================================================== */
/* TABS */
/* ===================================================== */
.tabs-container {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 40px 0;
}

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  background: #f8f9fa;
  border-bottom: 2px solid #e9ecef;
}

.tab-btn {
  padding: 15px 25px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 16px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 150px;
  text-align: center;
}

.tab-btn:hover {
  color: var(--color-text-white);
  background: var(--color-main-hover);
}

.tab-btn.active {
  color: var(--color-main-blue);
  border-bottom-color: var(--color-main-blue);
  background: #fff;
}

.tabs-content {
  padding: 30px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.5s;
}

.tab-pane.active {
  display: block;
}

.tab-content h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  font-size: 24px;
}

.tab-content p {
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================================== */
/* CONTACTS */
/* ===================================================== */
.contacts_wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contacts_form,
.contacts_adres {
  background-color: #f4f4f4;
  border: 1px solid #e4e4e4;
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.contacts_title {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text-title-grey);
  margin-bottom: 20px;
}

.wpcf7-form {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.wpcf7-form label {
  margin-bottom: 10px;
  display: block;
  color: var(--color-text-title-grey);
  font-weight: 500;
}

.wpcf7-form .wpcf7-form-control {
  width: 100%;
  box-sizing: border-box;
}

.contacts_wrap .wpcf7-form input[type="text"],
.contacts_wrap .wpcf7-form input[type="email"],
.contacts_wrap .wpcf7-form input[type="tel"],
.contacts_wrap .wpcf7-form input[type="url"],
.contacts_wrap .wpcf7-form textarea {
  width: 100%;
  border: 1px solid #c1c1c1;
  border-radius: 5px;
  padding: 10px 12px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  margin-bottom: 20px;
}

.contacts_wrap .wpcf7-form textarea {
  min-height: 90px;
  height: 90px;
  max-height: 150px;
  resize: vertical;
  font-family: inherit;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: #0073aa;
}

.wpcf7-form input[type="submit"] {
  height: auto;
  padding: 12px 30px;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  margin-bottom: 0;
}

.wpcf7-form input[type="submit"]:hover {
  background: #005a87;
}

.form_btn {
  background-color: var(--color-main-blue) !important;
  transition: all 0.3s ease;
  cursor: pointer;
  color: #fff;
  border: none;
}

.form_btn:hover {
  background-color: var(--color-link-hover) !important;
}

.wpcf7-response-output {
  padding: 15px;
  border-radius: 5px;
  margin: 0 !important;
  border-width: 1px !important;
  color: #000;
}

.wpcf7-mail-sent-ok {
  border-color: #46b450 !important;
  background: #f0f9f1;
  color: #2e7d32;
}

.wpcf7-validation-errors {
  border-color: #ffb900 !important;
  background: #fff8e1;
  color: #8a6d3b;
}

.wpcf7-spam-blocked {
  border-color: #dc3232 !important;
  background: #f9eaea;
  color: #a00;
}

.wpcf7-not-valid-tip {
  color: #dc3232;
  font-size: 14px;
  margin-top: 5px;
  margin-bottom: 5px;
  display: block;
}

.wpcf7-not-valid {
  border-color: #dc3232 !important;
}

.wpcf7-spinner {
  margin-left: 10px;
  vertical-align: middle;
}

.contacts_adres_wrap {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
}

.adres_item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.adres_item_body_title {
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--color-text-title-grey);
}

.adres_item_body_subtitle {
  color: var(--color-text-grey);
}

/* ===================================================== */
/* BLOG */
/* ===================================================== */
.section_blog_wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.blog_item {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}

.blog_head img {
  width: 100%;
  height: 100%;
  max-height: 210px;
  object-fit: cover;
  object-position: center;
}

.blog_body {
  padding: 25px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.blog_title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.blog_title a {
  color: var(--color-text-title-grey);
  transition: all 0.3s ease;
}

.blog_title a:hover {
  color: var(--color-main-hover);
}

.blog_subtitle {
  font-size: 1rem;
  color: var(--color-text-grey);
  margin-bottom: 30px;
}

.blog_next {
  display: flex;
  justify-content: space-between;
}

.blog_date {
  font-size: 1rem;
  color: var(--color-text-grey);
}

.blog_btn_read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-main-blue);
  transition: all 0.3s ease;
}

.blog_btn_read:hover {
  color: var(--color-link-hover);
}

.blog_btn_read::after {
  content: "→";
  transition: transform 0.3s ease;
}

.blog_btn_read:hover::after {
  transform: translateX(5px);
}

/* ===================================================== */
/* MODAL */
/* ===================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 999 !important;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  padding: 1rem;
  box-sizing: border-box;
}

.modal-content {
  background-color: #fff;
  margin: 5vh auto;
  padding: 2rem;
  max-width: 600px;
  border-radius: 8px;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #000;
}

.form-wrapper {
  margin-top: 1rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact Form 7 в модальном окне */
.wpcf7 form {
  display: flex;
  flex-direction: column;
}

.label {
  display: block;
  font-weight: 500;
  font-size: 1rem;
  color: #333;
  margin-bottom: 5px !important;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
  border-color: #0073aa;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox-row {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

input[type="submit"] {
  background-color: #0073aa;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
  background-color: #005f8d;
}

/* ===================================================== */
/* SINGLE PAGE CONTENT */
/* ===================================================== */
.section_more .container > * {
  max-width: 100%;
}

.section_more .container p {
  margin: 0 0 1rem;
  line-height: 1.6;
  font-size: 1rem;
  color: #333;
}

.section_more .container a {
  color: var(--color-main-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.section_more .container a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

.section_more .container img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.section_more .container ul,
.section_more .container ol {
  padding-left: 2rem;
}

.section_more .container li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.section_more .container h1,
.section_more .container h2,
.section_more .container h3,
.section_more .container h4,
.section_more .container h5,
.section_more .container h6 {
  margin: 2rem 0 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-title-grey);
}

.section_more .container h1 {
  font-size: 2.5rem;
  margin-top: 0;
}

.section_more .container h2 {
  font-size: 2rem;
}

.section_more .container h3 {
  font-size: 1.75rem;
}

.section_more .container h4 {
  font-size: 1.5rem;
}

.section_more .container h5 {
  font-size: 1.25rem;
}

.section_more .container h6 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section_more .container blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-left: 4px solid #0073aa;
  font-style: italic;
  color: #555;
}

.section_more .container blockquote p {
  margin: 0;
}

.section_more .container table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section_more .container th,
.section_more .container td {
  padding: 0.75rem;
  border: 1px solid #ddd;
  text-align: left;
}

.section_more .container th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.section_more .container tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

.section_more .container hr {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid #e0e0e0;
}

.section_more .container code {
  background-color: #f4f4f4;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
}

.section_more .container pre {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.section_more .container pre code {
  background-color: transparent;
  padding: 0;
}

.section_more .container .alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
  max-width: 50%;
}

.section_more .container .alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  max-width: 50%;
}

.section_more .container .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section_more .container:after {
  content: "";
  display: table;
  clear: both;
}

.section_more .container strong,
.section_more .container b {
  font-weight: 600;
}

.section_more .container em,
.section_more .container i {
  font-style: italic;
}

.section_more .container sub,
.section_more .container sup {
  font-size: 0.75em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

.section_more .container sup {
  top: -0.5em;
}

.section_more .container sub {
  bottom: -0.25em;
}

.section_more .container .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.section_more .container .gallery-item {
  margin: 0;
}

.section_more .container .gallery img {
  width: 100%;
  height: auto;
}

.wp-block-media-text__content {
  padding: 0 !important;
}

.wp-block-media-text {
  gap: 20px;
}

.section_more ol {
  list-style: disc;
}

.section_more ul {
  list-style: decimal;
}

details {
  margin-bottom: 1rem;
}

details strong {
  color: var(--color-main-blue);
}

details p {
  padding-left: 1rem;
  padding-top: 0.5rem;
}

/* ===================================================== */
/* SINGLE.PHP SPECIFIC */
/* ===================================================== */
.section_page_single .entry-meta {
  margin: 10px 0;
  font-weight: bold;
}

.posted-off .entry-meta .posted-on {
  display: none;
}

/* Стили для кнопки "Вверх" */
.up-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--color-main-blue);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(44, 125, 250, 0.3);
  z-index: 1000;
}

.up-button.visible {
  opacity: 1;
  visibility: visible;
}

.up-button:hover {
  background-color: var(--color-main-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(44, 125, 250, 0.4);
}

.up-button:active {
  transform: translateY(0);
}

.up-arrow {
  width: 15px;
  height: 15px;
  border-left: 3px solid white;
  border-top: 3px solid white;
  transform: rotate(45deg);
  margin-top: 6px;
}
