/*
Theme Name: Taxo
Author: Taxo+
Description: Тема для компанії ТАХО+
Version: 1.0
Text Domain: taxotheme
*/
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
li,
p,
button,
a {
  margin: 0;
  padding: 0;
}
* {
  box-sizing: border-box;
}

:root {
  --header-height: 56px;
  --color-accent-hover: #fdd10f;
  --color-link-gray: #9ca3af;
  --color-link-gray-hover: #fff;
  --color-title: #1f2937;

  --e-global-color-primary: #0055a4;
  --e-global-color-secondary: #1f2937;
  --e-global-color-text: #4b5563;
  --e-global-color-accent: #ff6b35;
  --e-global-color-b7ad5d7: #f5f7fa;
  --e-global-color-d646454: #ffffff;
  --e-global-color-cac00af: #9ca3af;
  --e-global-color-3f9436f: #6b7280;
  --e-global-color-e956e81: #ea580c;

  --font-family-main: 'Inter';
}
body {
  font-family: var(--font-family-main), sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.text-accent {
  color: var(--e-global-color-accent);
}
.text-primary {
  color: var(--e-global-color-primary);
}

.container-xl {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 15px;
}

.site-logo {
  max-width: 120px;
  height: auto;
}

.elementor-widget-text-editor a {
  color: var(--e-global-color-primary);
  transition: color 0.25s ease;
}
.elementor-widget-text-editor a:hover {
  color: var(--e-global-color-accent);
}

.hide,
.draft-block {
  display: none !important;
}

/**-------------------------------
  * icon
  *-----------------------------*/
.icon {
  height: 1em;
  width: 1em;
  display: block;
}

/**-------------------------------
  * hero-img
  *-----------------------------*/
.hero-img {
  position: relative;
}
.hero-img::before {
  content: '';
  position: absolute;
  display: block;
  height: 6rem;
  width: 6rem;
  background: var(--e-global-color-accent);
  border-radius: 50%;
  opacity: 0.2;
  top: -1.5rem;
  left: -1.5rem;
}
.hero-img img {
  position: relative;
}
@media (max-width: 768px) {
  .hero-img {
    max-height: 450px;
  }
  .hero-img img {
    height: 100% !important;
    width: 100%;
    object-fit: cover;
  }
}

/**-------------------------------
  * hero-img-shadow-bottom
  *-----------------------------*/
.hero-img-shadow-bottom {
  position: relative;
}
.hero-img-shadow-bottom::after {
  background-image: linear-gradient(to top, #fefefe, transparent);
  content: '';
  height: 13rem;
  width: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  pointer-events: none;
}
@media (max-width: 1260px) {
  .hero-img-shadow-bottom::after {
    height: 6rem;
  }
}
@media (max-width: 768px) {
  .hero-img-shadow-bottom::after {
    height: 4rem;
  }
}

@media (max-width: 1320px) and (min-width: 1025px) {
  .home-hero-section .hero-title .elementor-heading-title {
    font-size: 44px !important;
  }
}

@media (max-width: 768px) and (min-width: 576px) {
  .hero-buttons-group > * {
    width: auto !important;
  }
}

@media (max-width: 1199px) {
  .hero-contacts .elementor-icon-list-text {
    font-size: 14px !important;
  }
}

/**-------------------------------
  * elementor customize
  *-----------------------------*/
.hero-phone .elementor-icon-box-content {
  display: flex;
  flex-direction: column-reverse;
}

.elementor-widget-text-editor h2,
.elementor-widget-text-editor h3,
.elementor-widget-text-editor h4,
.elementor-widget-text-editor h5,
.elementor-widget-text-editor h6 {
  color: var(--e-global-color-secondary);
  margin-bottom: 0.6em;
  margin-top: 1.1em;
}
.elementor-widget-text-editor h2 {
  font-size: 1.35em;
}
.elementor-widget-text-editor h3 {
  font-size: 1.3em;
}
.elementor-widget-text-editor h4 {
  font-size: 1.25em;
}
.elementor-widget-text-editor h5 {
  font-size: 1.1em;
}
.elementor-widget-container > h2:nth-child(1),
.elementor-widget-container > h3:nth-child(1),
.elementor-widget-container > h4:nth-child(1),
.elementor-widget-container > h5:nth-child(1),
.elementor-widget-container > h6:nth-child(1) {
  margin-top: 0;
}
.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol {
  padding-left: 1.5rem;
}
.elementor-widget-text-editor li {
  margin-bottom: 0.7em;
}
.elementor-widget-text-editor
  .elementor-widget-container
  > *:nth-last-child(1) {
  margin-bottom: 0 !important;
}
.services-card-price-block h2,
.services-card-price-block h3,
.services-card-price-block h4,
.services-card-price-block h5,
.services-card-price-block h6 {
  font-size: 1em;
  margin-bottom: 0;
  margin-top: 0;
}

.hide-icon
  .elementor-icon-list-item
  + .elementor-icon-list-item
  .elementor-icon-list-icon {
  visibility: hidden;
}

/**-------------------------------
  * header
  *-----------------------------*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--e-global-color-primary);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 50;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.header-nav .menu {
  display: flex;
  gap: 30px;
  padding-left: 30px;
  padding-right: 30px;
}

.header-nav .menu li {
  list-style: none;
}

.header-nav .menu li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.header-nav .menu li a:hover {
  color: var(--color-accent-hover);
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-contacts .phones {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: white;
}

.header-contacts .phones a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.header-contacts .phones a:hover {
  color: var(--color-accent-hover);
}

.header-callback-btn {
  background: var(--e-global-color-accent);
  color: #fff;
  padding: 0;
  border-radius: 50%;
  text-decoration: none;
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.3s ease;
}
.header-callback-btn:hover {
  background: var(--e-global-color-primary);
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
}

.burger-btn .burger-btn-open {
  display: block;
}
.burger-btn .burger-btn-close {
  display: none;
}
.burger-btn.is-open .burger-btn-open {
  display: none;
}
.burger-btn.is-open .burger-btn-close {
  display: block;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: white;
  padding: 2.5rem 1rem 3.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobile-menu .mobile-menu-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  list-style: none;
  padding: 0;
  text-align: center;
}

.mobile-menu .mobile-menu-list li a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.mobile-callback-btn {
  background: var(--e-global-color-primary);
  border-radius: 8px;
  color: white;
  font-size: 14px;
  padding: 12px 20px;
  display: flex;
  margin-top: 2.5rem;
  text-align: center;
  text-decoration: none;
}
.mobile-callback-btn svg {
  margin-right: 8px;
}

/* Responsive header menu */
@media (max-width: 991px) {
  .header-nav,
  .header-callback-btn {
    display: none;
  }
  .header-contacts {
    margin-left: auto;
    padding-right: 35px;
  }
  .burger-btn {
    display: block;
  }
  .mobile-menu.is-open {
    display: flex;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 46px;
  }
  .site-logo {
    max-width: 100px;
  }
}

@media (max-width: 575px) {
  .header-contacts {
    padding-right: 20px;
  }
  .header-contacts .phones {
    font-size: 13px;
  }
}

/**-------------------------------
  * site-main
  *-----------------------------*/
.site-main {
  padding-top: var(--header-height);
  flex: 1;
  display: flex;
  flex-direction: column;
}

/**-------------------------------
  * price
  *-----------------------------*/
.price {
  padding: 6px 8px 4px;
  background-color: var(--e-global-color-accent);
  border-radius: 6px;
  color: #fff;
  line-height: 1;
}
.price b {
  font-size: 1.28em;
  font-weight: 900;
  line-height: 1;
}

/**-------------------------------
  * faq
  *-----------------------------*/
.faq .e-child {
  margin-top: -5px;
  border-top: 0 !important;
}

/**-------------------------------
  * prices-table
  *-----------------------------*/
.prices-table {
  width: 100%;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-collapse: collapse;
  font-family: var(--font-family-main), Sans-serif;
  overflow: hidden;
  line-height: 1.3;
}

.prices-table .col-foto {
  display: none;
}

.prices-table-head {
  background-color: var(--e-global-color-primary);
  color: #fff;
}

.prices-table-head th {
  text-align: left;
  padding: 16px 24px;
}

.prices-table-body td {
  padding: 16px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.prices-table-row:nth-child(even) td {
  background-color: #f9fafb;
}
.prices-table-row:last-child td {
  border-bottom: none;
}

.prices-table-body .col-name {
  font-weight: 500;
}

.prices-table-body .col-price {
  font-weight: 600;
  color: var(--e-global-color-primary);
}

.prices-table-body .col-name-subtitle {
  font-size: 0.875em;
  color: var(--e-global-color-3f9436f);
  margin-top: 2px;
}

.products-prices-foto {
  background-color: #e5e7eb;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4rem;
  width: 4rem;
}

@media (max-width: 600px) {
  .prices-table {
    border-radius: 4px;
    font-size: 12px;
  }
  .prices-table-head th,
  .prices-table-body td {
    padding: 10px 12px;
  }
  .products-prices-foto {
    height: 3rem;
    width: 3rem;
  }
}

.service-img img {
  height: 300px !important;
  width: 450px;
  object-fit: cover;
  max-width: 100% !important;
}

@media (max-width: 450px) {
  .service-img img {
    height: 250px !important;
    width: 100% !important;
  }
}


/**-------------------------------
  * product-card
  *-----------------------------*/
.product-card-img {
  position: relative;
  width: 100%;
  padding-top: calc(260 / 345 * 100%);
  overflow: hidden;
}

.product-card-img .elementor-widget-container {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.product-card-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.product-card > .e-con {
  flex: 1 !important;
}
.product-card .product-btn-buy {
  margin-top: auto;
}
.product-card .elementor-heading-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 575px) {
  .site-main .product-cards {
    --e-con-grid-template-columns: repeat(1, 1fr) !important;
  }
}

/**-------------------------------
  * footer
  *-----------------------------*/
.footer {
  background-color: #1f2937;
  color: #ffffff;
  padding: 2rem 0 1rem;
  line-height: 1.5;
  font-size: 12px;
}

.footer a {
  color: var(--color-link-gray);
  cursor: pointer;
  transition: color 0.25s ease;
  text-decoration: none;
}

.footer a:hover {
  color: var(--e-global-color-accent);
}

.footer ul,
.footer ol {
  padding: 0;
  list-style: none;
  margin: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-logo {
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1;
}

.footer-description {
  color: var(--color-link-gray);
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-title {
  font-size: 1.25em;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-menu li + li {
  margin-top: 0.5rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
}

.footer-contact-item + .footer-contact-item {
  margin-top: 0.75rem;
}

.footer-contact-item-icon {
  font-size: 16px;
  color: var(--e-global-color-accent);
  flex: 0 0 28px;
  margin-top: 0.125rem;
}

.footer-contact-item-multi {
  display: flex;
  flex-direction: column;
}

.footer-contact-item a {
  color: #fff;
}
.footer-contact-item a:hover {
  color: var(--e-global-color-accent);
}

.footer-bottom {
  border-top: 1px solid #374151;
  margin-top: 1rem;
  padding-top: 1rem;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  color: var(--color-link-gray);
  margin-bottom: 1rem;
}

.footer-policy {
  display: flex;
  gap: 1.5rem;
}

.footer-column--ghost {
  display: none;
}

@media (min-width: 768px) {
  .footer {
    padding-top: 3rem;
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-bottom {
    flex-direction: row;
    margin-top: 3rem;
    padding-top: 1rem;
  }
  .footer-copy {
    margin-bottom: 0;
  }
}

@media (min-width: 1240px) {
  .footer {
    font-size: 14px;
  }
  .footer-grid {
    grid-template-columns: 1.25fr 0.5fr 1fr 1fr;
  }
  .footer-column--ghost {
    display: block;
  }
}

/**-------------------------------
  * form
  *-----------------------------*/
.form-item + .form-item {
  margin-top: 1.5rem;
}
.form-label + br {
  display: none;
}
.hp-input {
  display: none !important;
  position: absolute;
  top: -999999999px;
  left: -999999999px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-title);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  font-family: var(--font-family-main), sans-serif;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--e-global-color-primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.2);
}

.form-input {
  min-height: 50px;
}

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

.form-submit {
  display: inline-block;
  background: var(--e-global-color-accent);
  color: #fff;
  padding: 12px 30px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
}

.form-submit:hover {
  background: var(--e-global-color-primary);
}

.form-footer {
  margin-top: 1.25rem;
  position: relative;
}

.wpcf7-spinner {
  position: absolute;
  bottom: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, 50%);
}

.wpcf7-response-output {
  border-radius: 0.15rem;
  font-size: 12px !important;
  padding: 0.5rem 1rem !important;
}

.wpcf7-not-valid-tip {
  font-size: 12px;
}

.map-full iframe {
  height: 400px !important;
}
@media (min-width: 1025px) {
  .map-full,
  .map-full .elementor-custom-embed,
  .map-full iframe {
    height: 100% !important;
  }
}

/**-------------------------------
  * modal
  *-----------------------------*/
.modal {
  display: none;
  position: fixed;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  font-size: 14px;
  text-align: left;
  position: relative;
  padding: 20px;
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 8px;
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.25s ease-in-out;
}

.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  cursor: pointer;
}

.modal-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.modal .form-label {
  color: var(--e-global-color-text);
  font-weight: 500;
}

.modal .form-item + .form-item {
  margin-top: 1rem;
}

/**-------------------------------
  * page-radio
  *-----------------------------*/
.radio-hero-section h1 span {
  font-size: 1.25em;
  display: block;
  line-height: 1.15;
}

@media (min-width: 1025px) {
  .radio-hero-section h1 span {
    font-size: 1.55em;
  }
}

/**-------------------------------
  * page-404
  *-----------------------------*/
.page-404 {
  display: flex;
  padding: 3rem 1rem;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  flex: 1;
  line-height: 1.25;
}
.page-404-inner {
  width: 400px;
  max-width: 100%;
}
.page-404 h1 {
  margin-bottom: 1rem;
  line-height: 1.1;
}

html {
  margin-top: 0 !important;
}
#wpadminbar {
  top: auto !important;
  bottom: 0;
  position: fixed;
}
body.admin-bar {
  padding-bottom: 32px;
}
