:root {
  --color-primary-dark: #4d5c1d;
  --color-primary-light: #89a32c;
  --color-primary-medium: #789129;
  --color-bg: #f4f8fc;
  --color-bg-alt: #efefef;
  --color-text: #222;
  --color-text-light: #ffefef;
  --color-border: #cfd8e3;
  --color-shadow: rgba(0,0,0,0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  max-width: 100%;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Segoe UI", sans-serif;
  margin: 0;
}

body,
p,
label,
input,
textarea,
select {
  font-size: 1.2rem;
  line-height: 1.6;
}

body.modal-open,
body.form-open {
  overflow: hidden;
}

header {
  gap: 50px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 8%;
  background: #fff;
  z-index: 2000;
  box-shadow: 0 2px 6px var(--color-shadow);
  transition: transform 0.4s ease;
}

header.header-collapsed {
  transform: translateY(calc(100% - 190px));
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo {
  height: 120px;
  border-radius: 6px;
  flex-shrink: 0;
}

nav {
  display: flex;
  gap: 2.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

nav a,
.mobile-menu a {
  color: var(--color-primary-dark);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-primary-light);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.burger {
  position: absolute;
  left: 20px;
  top: 35px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 3000;
  display: none;
}

.burger svg .line {
  stroke: var(--color-primary-dark);
  transition: 0.35s ease;
}

.burger.active svg .line {
  stroke: var(--color-primary-light);
}

.no-hover:hover {
  background: inherit !important;
  color: inherit !important;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 14px;
  position: absolute;
  top: 90px;
  left: 20px;
  background: white;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.15);
  width: auto;
  max-width: 75%;
  z-index: 2000;
}

.mobile-menu a {
  text-align: left;
  white-space: nowrap;
  font-size: 1.1rem;
  padding: 8px 0;
}

.mobile-menu a:hover {
  color: var(--color-primary-light);
}

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

.slider {
  position: relative;
  width: 100%;
  height: 900px;
  overflow: hidden;
  padding: 0;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  filter: brightness(40%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide .text {
  color: var(--color-primary-light);
  text-decoration: none;
  position: absolute;
  bottom: 45%;
  left: 50%;
  transform: translateX(-50%);
  padding: 20px 35px;
  border-radius: 10px;
  max-width: 80%;
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.show-text .text {
  opacity: 1;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-primary-dark);
  color: var(--color-text-light);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.3s ease, transform 0.15s ease;
  box-shadow: 0 2px 8px var(--color-shadow);
}

.slider-arrow:hover {
  background: var(--color-primary-light);
  transform: translateY(-50%) scale(1.08);
}

.slider-arrow.left {
  left: 25px;
}

.slider-arrow.right {
  right: 25px;
}

.slider-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  z-index: 6;
}

.slider-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
}

.slider-dot.active {
  background: white;
  transform: scale(1.2);
}

@media (max-width: 900px) {
  .slider {
    height: 600px;
  }

  .slider-arrow {
    display: none;
  }

  .slide .text {
    bottom: 30%;
    font-size: 1.4rem;
    padding: 14px 25px;
  }
}

@media (max-width: 600px) {
  .slider {
    height: 400px;
  }

  .slide .text {
    bottom: 20%;
    font-size: 1.1rem;
    padding: 10px 18px;
  }
}

section:not(.slider) {
  padding: 70px 10%;
}

section.alt-bg {
  background: var(--color-bg-alt);
}

section h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--color-primary-dark);
  margin-top: 0;
  margin-bottom: 2rem;
}

.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-bg);
}

.about-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.about-image img {
  width: 100%;
  max-width: 520px;
}

.about-text {
  flex: 1 1 50%;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text);
  text-align: justify;
}

.about-text ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.about-text li {
  margin-bottom: 0.7rem;
  position: relative;
  padding-left: 1.5rem;
}

.about-text li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary-dark);
  font-weight: bold;
}

.services {
  padding-top: 70px;
  padding-bottom: 80px;
}

.services-container {
  max-width: 1180px;
  margin: 0 auto;
  background: #fff;
  border: 4px solid var(--color-primary-dark);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 26px var(--color-shadow);
}

.services-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 4px solid var(--color-primary-dark);
  background: #fff;
}

.tab-btn {
  min-height: 86px;
  background: #fff;
  color: var(--color-primary-dark);
  border: none;
  border-right: 4px solid var(--color-primary-dark);
  border-radius: 0;
  padding: 14px 18px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.tab-btn:last-child {
  border-right: none;
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--color-primary-dark);
  color: #fff;
}

.services-content {
  min-height: 520px;
  padding: 42px 54px;
}

.tab-content {
  display: none;
  animation: tabFade 0.25s ease;
}

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

.tab-content p {
  max-width: 900px;
}

.tab-content h4 {
  margin: 0 0 14px;
  color: var(--color-primary-dark);
  font-size: 1.35rem;
}

.tab-content ul {
  margin: 0 0 28px;
  padding-left: 24px;
}

.tab-content li {
  margin-bottom: 8px;
}

.project-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

.project-column {
  background: #f8faf4;
  border: 1px solid rgba(109, 131, 37, 0.25);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.project-column h4 {
  text-align: center;
}

.order-button,
button[type="submit"] {
  background: var(--color-primary-dark);
  color: var(--color-text-light);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.15s;
  font-size: 1.1rem;
}

.order-button:hover,
button[type="submit"]:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
}

.tab-content .order-button {
  display: block;
  margin: 12px auto 0;
  min-width: 220px;
}
.portfolio {
  background: var(--color-bg);
}

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

.portfolio-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px var(--color-shadow);
}

.portfolio-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.portfolio-card h4 {
  color: var(--color-primary-dark);
  font-size: 1.25rem;
  text-align: center;
  margin: 18px 16px 12px;
}

.portfolio-more {
  background: var(--color-primary-dark);
  color: var(--color-text-light);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  margin: auto 24px 24px;
  cursor: pointer;
  font-size: 1.05rem;
  transition: background 0.3s ease, transform 0.15s ease;
}

.portfolio-more:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
}

.portfolio-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.portfolio-modal.hidden {
  display: none;
}

.portfolio-modal-content {
  position: relative;
  width: min(1000px, 96vw);
  max-height: 92vh;
  background: #fff;
  border-radius: 16px;
  padding: 48px 28px 28px;
  overflow-y: auto;
  box-shadow: 0 10px 32px rgba(0,0,0,0.3);
}

.portfolio-modal-title {
  color: var(--color-primary-dark);
  text-align: center;
  margin: 0 0 24px;
  font-size: 1.7rem;
}

.portfolio-slider {
  position: relative;
  width: 100%;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

.portfolio-slider-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.portfolio-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-primary-dark);
  color: var(--color-text-light);
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.15s ease;
}

.portfolio-slider-btn:hover {
  background: var(--color-primary-light);
  transform: translateY(-50%) scale(1.06);
}

.portfolio-prev {
  left: 18px;
}

.portfolio-next {
  right: 18px;
}

.portfolio-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: -42px;
  margin-bottom: 24px;
  position: relative;
  z-index: 5;
}

.portfolio-dot {
  width: 14px;
  height: 14px;
  padding: 0;
  border: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
}

.portfolio-dot.active {
  background: #fff;
  transform: scale(1.2);
}


@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .portfolio-card img {
    height: 260px;
  }

  .portfolio-modal {
    padding: 12px;
  }

  .portfolio-modal-content {
    width: 100%;
    max-height: 94vh;
    padding: 46px 14px 20px;
    border-radius: 14px;
  }

  .portfolio-slider {
    height: 420px;
    background: #fff;
  }

  .portfolio-slider-btn {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }

  .portfolio-prev {
    left: 10px;
  }

  .portfolio-next {
    right: 10px;
  }
}

@media (max-width: 600px) {
  .portfolio-card img {
    height: 220px;
  }

  .portfolio-slider {
    height: 320px;
  }

  .portfolio-modal-title {
    font-size: 1.35rem;
  }
}
.portfolio-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.portfolio-load-more {
  background: var(--color-primary-dark);
  color: var(--color-text-light);
  border: none;
  padding: 12px 26px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.15s ease;
}

.portfolio-load-more:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
}
.portfolio-card-hidden {
  display: none !important;
}
#steps {
  background: var(--color-bg);
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  max-width: 900px;
  counter-reset: step;
}

.steps-list li {
  position: relative;
  counter-increment: step;
  background: #fff;
  border-radius: 12px;
  padding: 22px 24px 22px 80px;
  margin-bottom: 18px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-light));
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact {
  padding: 80px 10%;
  text-align: center;
}

.form-contact,
form {
  max-width: 500px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input,
textarea,
select {
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

.checkbox input {
  margin-top: 8px;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: rgba(33, 49, 16, 0.62);
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  max-width: 650px;
  width: 90%;
  position: relative;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  animation: zoomIn 0.4s ease forwards;
  margin-top: calc(var(--header-height, 70px) + 10px);
  max-height: calc(100vh - var(--header-height, 70px) - 20px);
  overflow-y: auto;
}

.modal-content h2,
.form-panel h2 {
  color: var(--color-primary-dark);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  text-align: center;
}

.modal-content img {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  margin: 1rem 0;
}

.modal-list {
  padding-left: 18px;
  margin-top: 10px;
}

.modal-list li {
  margin-bottom: 6px;
  line-height: 1.4;
}

.close-button {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--color-primary-dark);
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.close-button:hover {
  color: var(--color-primary-light);
  background: none;
  transform: scale(1.2);
}

.form-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
  z-index: 1000;
}

.form-overlay.show {
  opacity: 1;
  visibility: visible;
}

.form-panel {
  margin-bottom: 20px;
  max-height: calc(100vh - var(--header-offset, 80px) - 20px);
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  width: 420px;
  max-width: 420px;
  transform: translateX(100vw);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.form-overlay.show .form-panel {
  transform: translateX(0);
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.site-footer {
  background: var(--color-primary-dark);
  color: #e6f0ff;
  padding: 32px 16px 20px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1 1 45%;
  min-width: 260px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.contact-main {
  flex: 1;
  min-width: 160px;
}

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

.contact-value a {
  color: #fff;
  text-decoration: none;
}

.icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.10);
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.icon:hover {
  transform: scale(1.18);
}

.icon.telegram {
  background: #229ED9;
}

.icon.whatsapp {
  background: #25D366;
}

.icon svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.footer-bottom {
  text-align: center;
  margin-top: 25px;
  font-size: 14px;
  opacity: 0.85;
}

#year {
  font-weight: 600;
  color: #dbefff;
}

@keyframes zoomIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

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

@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 1100px) {
  .services-content {
    padding: 32px;
  }

  .project-packages {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  header {
    justify-content: center;
  }

  .burger {
    display: block;
  }

  .desktop-menu {
    display: none;
  }

  .logo {
    margin: auto;
  }

  .slider {
    height: 600px;
  }

  .slider-arrow {
    display: none;
  }

  .slide .text {
    bottom: 30% !important;
    font-size: 1.4rem;
    padding: 14px 25px;
  }

  section,
  .about,
  .services,
  .contact {
    padding-left: 16px;
    padding-right: 16px;
  }

  .about-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .about-image {
    width: 100%;
  }

  .about-text {
    text-align: left;
  }

  .services-buttons {
    grid-template-columns: 1fr 1fr;
  }

  .tab-btn:nth-child(2) {
    border-right: none;
  }

  .tab-btn:nth-child(1),
  .tab-btn:nth-child(2) {
    border-bottom: 4px solid var(--color-primary-dark);
  }

  .services-content {
    min-height: auto;
    padding: 24px 18px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 28px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-col {
    width: 100%;
  }

  .site-footer {
    width: 100vw;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 600px) {
  body,
  p,
  label,
  input,
  textarea,
  select {
    font-size: 1rem;
  }

  h2,
  section h2 {
    font-size: 1.4rem;
  }

  .slider {
    height: 400px;
  }

  .slide .text {
    bottom: 20% !important;
    font-size: 1.1rem;
    padding: 10px 18px;
  }

  .services-container {
    border-width: 3px;
    border-radius: 18px;
  }

  .services-buttons {
    grid-template-columns: 1fr;
  }

  .tab-btn,
  .tab-btn:nth-child(1),
  .tab-btn:nth-child(2) {
    border-right: none;
    border-bottom: 3px solid var(--color-primary-dark);
    min-height: 62px;
    font-size: 0.95rem;
  }

  .tab-btn:last-child {
    border-bottom: none;
  }

  .project-column {
    padding: 18px;
  }

  .order-button,
  button[type="submit"] {
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
  }

  .form-panel {
    width: 95%;
    padding: 1.2rem;
  }

  .steps-list li {
    padding: 20px 18px 20px 70px;
  }
}
.portfolio-slider video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.additionally {
  text-align: center;
}

.additionally-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.additionally-button-wrap {
  text-align: center;
  margin-top: 30px;
}

.button-additionally {
  display: inline-block;
  background: var(--color-primary-dark);
  color: var(--color-text-light);
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.3s, transform 0.15s;
}

.button-additionally:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
}