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

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  background: #fff;
}

a {
  color: #f16d1a;
  text-decoration: none;
}
a:hover { color: #d55d12; text-decoration: underline; }

.wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 10px;
}

/* HEADER */
#header {
  margin: 15px 0 0;
}

#headerbar {
  margin-bottom: 15px;
}

#logo {
  display: block;
}

#logo .custom-logo {
  display: inline-block;
  width: 940px;
  height: 250px;
  background: url(../images/logo.png) 50% 50% no-repeat;
  background-size: contain;
}

@media (max-width: 979px) {
  #logo .custom-logo {
    width: 100%;
    height: 150px;
  }
}

@media (max-width: 479px) {
  #logo .custom-logo { height: 60px; }
}

/* MENUBAR */
#menubar {
  padding: 5px 5px 5px 8px;
  background: #2c3e50;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

#menu {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  gap: 2px;
}

#menu li {
  position: relative;
  padding-bottom: 8px;
  margin-bottom: -8px;
}

#menu a,
#menu span.separator {
  display: block;
  padding: 7px 12px;
  color: #c8d6e5;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 4px;
  transition: all .2s;
}

#menu a:hover,
#menu a.active,
#menu span.separator:hover {
  color: #fff;
  background: #f16d1a;
  text-decoration: none;
}

#menu a.active {
  color: #fff;
}

#menu .parent > a::after,
#menu .parent > span::after {
  content: ' ▾';
  font-size: 10px;
}

/* DROPDOWN */
#menu .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 320px;
  background: #fff;
  border-radius: 6px;
  z-index: 100;
  padding: 8px 6px;
  margin-top: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  border: 1px solid #eee;
}

#menu li:hover .dropdown {
  display: block;
}

#menu .dropdown a {
  color: #444;
  padding: 8px 12px;
  display: block;
  font-weight: 400;
  border-radius: 4px;
  transition: all .15s;
}

#menu .dropdown a:hover {
  color: #fff;
  background: #f16d1a;
  border-radius: 4px;
}

/* SEARCH */
#search form {
  display: flex;
  align-items: center;
}

#search input {
  background: #555;
  border: none;
  color: #ccc;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 12px;
  width: 120px;
  outline: none;
}

#search input::placeholder {
  color: #888;
}

#search button {
  display: none;
}

/* MAIN */
#main {
  margin-top: 0;
}

#content {
  margin: 20px;
  overflow: hidden;
}

/* ABOUT */
.about-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  border: 1px solid #e8e8e8;
  border-left: 4px solid #f16d1a;
  padding: 28px 32px;
  line-height: 1.8;
  font-size: 14px;
}

.about-card p {
  margin-bottom: 14px;
  color: #444;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.about-highlight {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  border: 1px solid #eee;
  transition: all .2s;
}

.about-highlight:hover {
  border-color: #f16d1a;
}

.about-highlight-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.about-highlight h4 {
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
}

.about-highlight p {
  font-size: 12px;
  color: #888;
  margin: 0;
}

/* HOME INTRO */
.home-intro {
  background: #f8f9fa;
  border-left: 4px solid #f16d1a;
  border-radius: 4px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.home-intro h2 {
  font-size: 18px;
  color: #2c3e50;
  margin: 0;
  line-height: 1.5;
  font-weight: 600;
}

.section-title-home {
  font-size: 20px;
  color: #2c3e50;
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f16d1a;
  font-weight: 600;
}

/* BREADCRUMBS */
#breadcrumbs {
  margin: 15px 20px 0;
  font-size: 12px;
  color: #888;
}

#breadcrumbs a {
  color: #f16d1a;
}

/* PAGE HEADER ON SUBPAGES */
.page-header-text {
  margin: 0 20px;
  padding: 15px 0 5px;
  border-bottom: 1px solid #ddd;
}

.page-header-text h1 {
  font-size: 22px;
  color: #333;
  font-weight: normal;
}

/* ITEM (content page) */
.item {
  margin-bottom: 20px;
}

.item h2 {
  font-size: 22px;
  color: #333;
  margin: 20px 0 10px;
  font-weight: normal;
}

.item h3 {
  font-size: 16px;
  color: #f16d1a;
  margin: 20px 0 8px;
  font-weight: bold;
}

.item h3 a {
  color: #f16d1a;
}

.item p {
  margin-bottom: 10px;
  text-align: justify;
}

.item img {
  max-width: 100%;
  height: auto;
}

/* SERVICE LIST */
.service-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.service-list li {
  background: #f8f9fa;
  padding: 10px 12px 10px 34px;
  position: relative;
  font-size: 13px;
  border-radius: 6px;
  border: 1px solid #eee;
  transition: all .2s;
}

.service-list li:hover {
  background: #fff;
  border-color: #f16d1a;
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 10px;
  top: 10px;
  color: #f16d1a;
  font-weight: 700;
  font-size: 14px;
}

.service-img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  max-width: 100%;
  height: auto;
}

.service-img-right {
  float: right;
  margin: 0 0 16px 24px;
  max-width: 340px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.service-text-block {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
  padding: 20px 24px;
  margin-top: 20px;
  line-height: 1.7;
}

.service-text-block p {
  margin-bottom: 10px;
}

.service-gallery {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.service-gallery img {
  max-width: 280px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.gallery-item {
  border: 1px solid #ddd;
  padding: 4px;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity .2s;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-item:hover {
  opacity: .8;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active { display: flex; }

.lightbox-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 94%;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 4px;
  cursor: default;
}

.lightbox-nav {
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 36px;
  width: 50px;
  height: 80px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  flex-shrink: 0;
  line-height: 1;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,.3);
}

/* PARTNER */
.partner-block {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  border: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  gap: 24px;
  overflow: hidden;
}

.partner-img-wrap {
  width: 160px;
  min-height: 160px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.partner-img-wrap img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.partner-img-wrap .partner-placeholder {
  font-size: 48px;
  opacity: .3;
}

.partner-info {
  padding: 20px 20px 20px 0;
  flex: 1;
}

.partner-info h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
  font-weight: 700;
}

.partner-info p {
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
}

.partner-info .partner-phone {
  font-size: 18px;
  font-weight: 700;
  color: #f16d1a;
  margin-top: 8px;
}

.partner-info .partner-phone-sub {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

.partner-info .partner-phone-sub strong {
  color: #f16d1a;
}

/* CONTACTS */
.contacts-row {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin: 15px 0;
}

.contacts-col {
  flex: 1;
  min-width: 300px;
}

.contacts-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  border: 1px solid #e8e8e8;
  overflow: hidden;
}

.contacts-card-header {
  background: #2c3e50;
  color: #fff;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
}

.contacts-card-body {
  padding: 16px 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.contact-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-icon {
  width: 36px;
  height: 36px;
  background: #f16d1a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.contact-body {
  flex: 1;
}

.contact-body .contact-label {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-body .contact-value {
  font-size: 15px;
  color: #333;
  font-weight: 600;
}

.contact-body .contact-value-sub {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}

.requisites-box {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  border: 1px solid #e8e8e8;
  padding: 20px;
}

.requisites-box p {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
}

.requisites-box p strong {
  color: #333;
}

/* FOOTER */
#footer {
  margin: 0 20px 20px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
  font-size: 12px;
  color: #888;
  position: relative;
}

#footer a {
  color: #f16d1a;
}

#totop {
  position: absolute;
  right: 0;
  top: 15px;
  width: 21px;
  height: 21px;
  background: #444 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAARklEQVQYV2NkYPj/n4EBBJgYKAQMDAz/GRgY/jMwMPzHKYBVEJsCbAqxKcSmEJsCbAqxKcSmEJsCbAqxKcSmEJsCbAqxKQAAJNQQGzgvVdAAAAAASUVORK5CYII=) 50% 50% no-repeat;
  border-radius: 4px;
  cursor: pointer;
}

#totop:hover {
  background-color: #f16d1a;
}

/* MOBILE MENU TOGGLE */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
}

.menu-toggle:hover {
  background: rgba(255,255,255,.1);
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .wrapper {
    padding: 0 8px;
  }

  #menu a,
  #menu span.separator {
    font-size: 12px;
    padding: 5px 7px;
  }

  #menu .dropdown {
    width: 220px;
  }

  #search input {
    width: 80px;
  }

  .service-img-right {
    float: none;
    margin: 0 0 16px 0;
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .menu-toggle {
    display: block;
  }

  #menu {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 8px 0;
  }

  #menu.menu-open {
    display: flex;
  }

  #menubar {
    flex-wrap: wrap;
    padding: 5px;
  }

  #menu a,
  #menu span.separator {
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 0;
  }

  #menu li.parent > span::after {
    content: ' ▾';
  }

  #menu .dropdown {
    display: none;
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: #3a3a3a;
    padding: 0 0 4px 12px;
    margin-top: 0;
  }

  #menu .dropdown.dropdown-open {
    display: block;
  }

  #menu .dropdown a {
    padding: 8px 12px;
    font-size: 13px;
    color: #ccc;
  }

  #menu .dropdown a:hover {
    background: #555;
  }

  #menu li:hover .dropdown:not(.dropdown-open) {
    display: none;
  }

  #search {
    width: 100%;
    margin-top: 8px;
  }

  #search input {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  #content {
    margin: 12px;
  }

  #header {
    margin: 10px 0 0;
  }

  #logo .custom-logo {
    height: 100px;
  }

  .item h2 {
    font-size: 18px;
  }

  .item p {
    font-size: 13px;
    text-align: left;
  }

  .home-intro {
    padding: 14px 16px;
  }

  .home-intro h2 {
    font-size: 15px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .partner-block {
    flex-direction: column;
    text-align: center;
  }

  .partner-img-wrap {
    width: 100%;
    min-height: 100px;
  }

  .partner-info {
    padding: 0 16px 16px;
  }

  .contacts-row {
    gap: 16px;
  }

  .contacts-col {
    min-width: 100%;
  }

  .about-card {
    padding: 16px;
  }

  .about-highlights {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .about-highlight {
    padding: 12px;
  }

  .about-highlight-icon {
    font-size: 24px;
    margin-bottom: 6px;
  }

  .section-title-home {
    font-size: 17px;
  }

  #footer {
    margin: 0 12px 16px;
    font-size: 11px;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .service-img-right {
    max-width: 100%;
    margin: 0 0 12px;
  }

  .lightbox-nav {
    width: 36px;
    height: 60px;
    font-size: 28px;
  }

  .service-gallery img {
    max-width: 100%;
  }
}

@media (max-width: 400px) {
  #logo .custom-logo {
    height: 60px;
  }

  .about-highlights {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
}
