:root {
  --bg: #f5f7f8;
  --card: #ffffff;
  --accent: #007f60;
  --accent-dark: #00674f;
  --muted: #6b7280;
  --shadow: 0 6px 20px rgba(17, 24, 39, 0.08);
  --radius: 10px;
  --gap: 18px;
  --max-width: 1200px;
  --text: #111827;
  --success: #16a34a;
}

.contacts .wrapper {
  width: 100%;
  max-width: var(--max-width);
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--gap);
  align-items: start;
  margin: 0 auto;
}

.contact-data {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

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

.contact-data .contact-item-img {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff, #f6faf9);
  border: 1px solid rgba(16, 24, 32, 0.04);
  box-shadow: 0 4px 10px rgba(11, 16, 19, 0.04);
  overflow: hidden;
}

.contact-data .contact-item-img img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

.contact-data .contact-item-content h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
  line-height: 1;
}

.contact-data .contact-item-content a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.contact-data .contact-item-content .muted {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.contact-data .contact-item-content a:empty {
  color: var(--muted);
  font-weight: 400;
}

.contact-form .contact-form-data {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}

.contact-form h4 {
  margin: 0 0 14px 0;
  font-size: 20px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form .form-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}


.contact-form .form-item {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start
}

.contact-form label {
  font-size: 13px;
  color: var(--muted);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(16, 24, 32, 0.08);
  background: linear-gradient(#fff, #fbfeff);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: box-shadow .12s ease, border-color .12s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(0, 127, 96, 0.08);
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
  padding-top: 10px
}

.contact-form .bi-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 127, 96, 0.18);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  align-self: flex-start;
  font-size: 13px;
}

.contact-form-data-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form-data-right .contact-banner {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 32, 0.04);
  background: linear-gradient(180deg, #fff, #fbfeff);
}

.contact-form-data-right .contact-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
}

.contact-form .bi-button:not([disabled]):hover {
  transform: translateY(-3px);
  background: var(--accent-dark);
  box-shadow: 0 18px 36px rgba(0, 127, 96, 0.22);
}

.contact-form .bi-button[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.contact-map {
  grid-column: 1 / -1;
  margin-top: var(--gap);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.contact-map iframe {
  display: block;
  border: 0;
  width: 100%;
  height: 420px;
}

.box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.box-hover {
  transition: transform .18s ease, box-shadow .18s ease;
  cursor: default;
}

.box-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.12);
}

.overflow-hidden {
  overflow: hidden;
}

.mod-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 1050;
}

.mod-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mod-modal {
  background: #fff;
  padding: 20px 30px;
  border-radius: 10px;
  position: relative;
  transform: scale(.8);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  min-width: 350px;
  text-align: center;
}

.mod-overlay.active .mod-modal {
  transform: scale(1);
  opacity: 1;
}

.mod-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mod-header .close {
  border-radius: 12px;
  font-size: var(--fs-16);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  outline: none;
  border: none;
  transition: 0.3s ease-in-out all;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #ffffff;
  background-color: #007f60;
}

.mod-header .close:hover {
  opacity: 0.75;
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.widget-title {
  margin-top: 0;
  font-size: 16px;
  color: #1e1e1e;
  border-left: 4px solid #007f60;
  padding: 5px 0 5px 10px;
  margin-bottom: 15px;
}

.blog-last-post {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-last-post li {
  width: 100%;
}

.blog-last-post li a {
  text-decoration: none;
  color: #1e1e1e;
  display: block;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  font-size: 14px;
  font-weight: 400;
}

.blog-last-post li a:hover {
  color: #1e1e1e;
  border-color: #007f60;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.blog-category {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}


.blog-category li {
  position: relative;
  margin-bottom: 10px;
  border-left: 3px solid #007f60;
  background: #fff;
  padding: 10px 12px 10px 35px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-category li::before {
  content: "📁";
  position: absolute;
  left: 10px;
  top: 9px;
  opacity: 0.6;
}

.blog-category li:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-category a {
  color: #1e1e1e;
  text-decoration: none;
  font-weight: 500;
}

.blog-category a:hover {
  color: #007f60;
}

.articles-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.article-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.article-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.article-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.article-content {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.article-title {
  font-size: 18px;
  margin: 0 0 10px;
}

.article-title a {
  color: #1e1e1e;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-title a:hover {
  color: #007f60;
}

.article-excerpt {
  font-size: 15px;
  color: #666;
  margin-bottom: 14px;
  line-height: 1.5;
  flex-grow: 1;
}

.article-more {
  align-self: flex-start;
  margin-top: auto;
  display: inline-block;
  background: #007f60;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.article-more:hover {
  background: #007f60;
  color: #fff;
  opacity: 0.75;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.pagination a, .pagination span {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 5px;
  border-radius: 6px;
  background: #fff;
  color: #333;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination span.current,
.pagination a:hover {
  background: #007f60;
  color: #fff;
}

.part-category {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.part-category-item {
  border-left: 3px solid #007f60;
  background: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.parts-sidebar-parent {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.parts-sidebar-sublist {
  display: none;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  margin-left: 24px;
}

.parts-sidebar-sublist.active {
  display: flex;
}

.toggle-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: none;
  outline: none;
  background: transparent;
  transform: rotate(0deg);
  transform-origin: center center;
  width: 20px;
  height: 20px;
  transition: transform 0.1s ease;
  font-size: 12px;
}

.toggle-sub.active {
  transform: rotate(90deg);
}

.part-category a {
  text-decoration: none;
  font-size: 14px;
  color: #1e1e1e;
  font-weight: 500;
  transition: color 0.3s ease;
}

.part-category a:hover {
  color: #007f60;
}

.child-category-item.active a,
.parts-sidebar-parent.active a {
  color: #007f60;
  font-weight: 700;
}


@media (max-width: 980px) {
  .contacts .wrapper {
    grid-template-columns:1fr;
    padding-bottom: 30px
  }
  .contacts .contact-form .contact-form-data {
    grid-template-columns:1fr
  }
  .contacts .contact-banner img {
    min-height: 160px
  }
}

@media (max-width: 765px) {
  .contacts .contact-item-img {
    width: 56px;
    min-width: 56px;
    height: 56px
  }
  .contacts .contact-item-img img {
    width: 36px;
    height: 36px
  }

  .mod-modal {
    margin: 0 10px;
  }
}