* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #111;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
}

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

/* Header Styles */
.site-header {
  background-color: #222;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

.logo {
  margin-bottom: 0;
  margin-right: 30px;
}

.logo img {
  max-height: 50px;
  width: auto;
}

.navigation {
  display: flex;
  align-items: center;
  flex: 1;
}

.burger-menu,
.header-right {
  margin: 0 10px;
}

.nav-menu {
  display: flex;
  margin: 0 30px 0 0;
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin-right: 20px;
}

.nav-menu li a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  transition: background 0.3s;
}

.nav-menu li a:hover {
  background-color: #333;
  border-radius: 4px;
}

.header-right {
  display: flex;
  align-items: center;
  margin-left: 30px;
  gap: 25px;
}

.messengers {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 30px;
}

.messengers a {
  width: 24px;
  height: 24px;
}

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

.cost-button {
  background-color: #ffd700;
  color: #111;
  padding: 10px 5px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.cost-button:hover {
  background-color: #e6c200;
}

.burger-menu {
  display: none;
}

#burger-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

#burger-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px 0;
}

@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    align-items: center;
  }

  .logo {
    margin-bottom: 15px;
  }

  .navigation {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .burger-menu {
    display: block;
    order: 1;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #222;
    padding: 20px;
    flex-direction: column;
    align-items: center;
    z-index: 1001;
  }

  .nav-menu.active {
    display: flex;
  }

  .header-right {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
    order: 3;
  }

  .messengers {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    order: 2;
  }

  .cost-button {
    margin-left: 0;
    order: 3;
  }
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 10px 0;
}

.hero h1 {
  font-size: 1.8em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-image {
  border: 5px solid #000;
  display: inline-block;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
}

/* Guidelines Section */
.guidelines {
  background-color: #1a1a1a;
  padding: 60px 0;
  text-align: center;
}

.guidelines h2 {
  color: #ffd700;
  margin-bottom: 20px;
  font-size: 1.8em;
  text-align: center;
}

.guidelines ul,
.services ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0 auto;
  max-width: 1200px;
  text-align: left;
}

.guidelines li,
.services li {
  margin-bottom: 10px;
  font-size: 1em;
}

/* Advantages Section */
.advantages {
  background-color: #000;
  padding: 60px 0;
  text-align: center;
}

.advantages h2 {
  font-size: 1.8em;
  margin-bottom: 40px;
  color: #fff;
}

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

.adv-item {
  text-align: center;
  padding: 20px;
}

.adv-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.adv-title {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: bold;
}

.adv-description {
  font-size: 14px;
}

/* Services Section */
.services {
  padding: 60px 0;
  text-align: center;
}

.services h2 {
  font-size: 1.8em;
  margin-bottom: 40px;
}

.services-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.service-card {
  background-color: #222;
  border-radius: 5px;
  padding: 20px;
  width: calc(25% - 20px);
  text-align: center;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
}

.service-card h3 {
  margin-top: 15px;
  font-size: 1.2em;
}

.service-card p {
  margin: 10px 0;
}

.order-button {
  background-color: #ffd700;
  color: #111;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.order-button:hover {
  background-color: #e6c200;
}

.measure .section {
  flex-wrap: wrap;
  padding-left: 20px;
  padding-right: 20px;
}

.measure-dark {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: center;
  background-color: #4a4a4a;
  justify-content: space-around;
}

.measure-dark .measure-text {
  margin-bottom: 20px;
  width: 50%;
  text-align: left;
}

.measure-dark .measure-text h1 {
  font-size: 1.8em;
  margin-bottom: 10px;
}

.measure-dark .measure-text p {
  font-size: 1em;
  margin-bottom: 10px;
}

.measure-dark .button {
  background-color: black;
  color: orange;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
}

.measure-image {
  margin-top: 20px;
}

.measure-image img {
  max-width: 100%;
  max-height: 350px;
}

.measure-orange {
  background-color: #b87333;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.measure-orange .button {
  background-color: black;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  margin: 10px;
  border-radius: 5px;
  display: inline-block;
}

/* Info Section */
.info-section {
  background-color: #1a1a1a;
  padding: 10px 0;
}

.info-section .container,
.services .container,
.guidelines .container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.info-section h2 {
  text-align: center;
  color: #ffd700;
  margin-bottom: 20px;
  font-size: 1.8em;
}

.info-section p {
  margin-bottom: 20px;
}

.info-section ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.info-section li {
  margin-bottom: 10px;
}

/* Portfolio Section */
.portfolio {
  padding: 10px 0;
  text-align: center;
}

.portfolio h2 {
  font-size: 1.8em;
  margin-bottom: 40px;
}

.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.portfolio-item {
  background-color: #222;
  border-radius: 5px;
  overflow: hidden;
  width: calc(50% - 20px);
}

.portfolio-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.portfolio-details {
  display: flex;
  justify-content: space-around;
  padding: 15px;
  background-color: #333;
}

.detail {
  display: flex;
  align-items: center;
}

.detail img {
  width: 24px;
  height: 24px;
  margin-right: 5px;
}

/* Rules Section */
.rules {
  background-color: #1a1a1a;
  padding: 60px 0;
  text-align: center;
}

.rules h2 {
  color: #ffd700;
  margin-bottom: 20px;
  font-size: 1.8em;
}

.rules ul {
  list-style: disc;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
  text-align: center;
}

.rules li {
  margin-bottom: 10px;
  font-size: 1em;
}

.rules-button {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.rules-button .button {
  background-color: #ffd700;
  color: #111;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.rules-button .button:hover {
  background-color: #e6c200;
}

/* FAQ Section */
.faq {
  padding: 10px 0;
  background-color: #1a1a1a;
  text-align: left;
}

.faq h2 {
  color: #ffd700;
  margin-bottom: 40px;
  font-size: 1.8em;
}

.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  border-bottom: 1px solid #333;
}

.accordion-header {
  background: none;
  border: none;
  color: #fff;
  text-align: left;
  width: 100%;
  padding: 15px;
  font-size: 1.1em;
  cursor: pointer;
  outline: none;
  transition: background 0.3s;
}

.accordion-header:hover {
  background-color: #333;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #222;
  padding: 0 15px;
}

.accordion-content p {
  margin: 15px 0;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  padding: 15px;
}

/* Footer */
.site-footer {
  background-color: #FFB114;
  padding: 20px 0;
  text-align: center;
}

/* Custom Footer Styles */
.site-footer-custom {
  background-color: #FFB114;
  color: #000;
  padding: 40px 0 20px 0;
  font-family: 'Roboto', sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  align-content: flex-start;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  width:35%;
}

.footer-logo img {
  max-height: 65px;
  width: auto;
}

.footer-copy {
  font-size: 1em;
  color: #000;
}
.footer-copy p {
  font-size: 1.3em;
  margin: 0;
  font-weight: 700;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-contacts {
  text-align: left;
}

.footer-title {
  font-weight: bold;
  font-size: 1.3em;
  margin-bottom: 6px;
}

.footer-phone a {
  color: #000;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
}
.footer-email a{
  color: #000;
  text-decoration: none;
  font-weight: 300;
  font-size: 1.1em;
}

.footer-phone a:hover,
.footer-email a:hover {
  text-decoration: underline;
}
.footer-messengers {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.footer-messengers a {
  display: inline-block;
  width: 50px;
  height: 50px;
}

.footer-messengers img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  transition: box-shadow 0.2s;
}

.footer-messengers a:hover img {
  box-shadow: 0 0 0 2px #ffd700;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 0 10px;
  }

  .footer-left,
  .footer-right {
    align-items: center;
    text-align: center;
  }

  .footer-right {
    align-items: center;
  }

  .footer-contacts {
    text-align: center;
  }
}

/* Responsive Styles */
@media(max-width: 992px) {
  .service-card {
    width: calc(50% - 20px);
  }

  .portfolio-item {
    width: calc(100% - 20px);
  }

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

@media(max-width: 768px) {
  .nav-menu {
    flex-direction: column;
    align-items: center;
  }

  .nav-menu li {
    margin: 10px 0;
  }

  .header-right {
    margin-top: 10px;
  }

  .services-grid {
    flex-direction: column;
    align-items: center;
  }

  .service-card {
    width: 100%;
  }

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

  .measure-dark .measure-text {
    width: 100%;
  }

  .measure-dark {
    justify-content: center;
  }

  .measure-orange .button {
    padding: 10px 5px;

  }

  .advantages-grid {
    gap: 0px;
  }
  .footer-left {
    width:100%;
  }
}

.measure-button {
  display: flex;
  justify-content: center;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #222;
    border-radius: 8px;
    overflow: hidden;
}

table tbody tr {
    border-bottom: 1px solid #333;
}

table tbody tr:last-child {
    border-bottom: none;
}

table td {
    padding: 15px;
    text-align: left;
    color: #fff;
}

table td:first-child {
    font-weight: 500;
    width: 60%;
}

table td:last-child {
    font-weight: 700;
    color: #ffd700;
}

table tbody tr:hover {
    background-color: #333;
}

/* Responsive Table Styles */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    table td {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    table td:first-child {
        width: auto;
    }
}