* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fff;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: #730000;
}

.logo-mark {
  width: 48px;
  height: 48px;
  padding: 8px;
  border-radius: 8px;
  background: #730000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-mark img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.nav {
  display: flex;
  gap: 1.5rem;
}
.nav a {
  position: relative;
  transition: color 0.3s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #730000;
  transition: width 0.3s;
}
.nav a:hover {
  color: #730000;
}
.nav a:hover::after {
  width: 100%;
}

.more {
  color: #730000;
  font-weight: 500;
  font-size: 0.8em;
  margin-top: 8px;
  transition: color 0.2s ease;
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
  }

  .brand h3 {
    font-size: 1.1rem;
    margin: 0;
    white-space: nowrap;
  }

  .nav {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1.2rem;
    width: 100%;
  }

  .nav a {
    font-size: 0.95rem;
  }

  .logo-mark img {
    width: 32px;
    height: 32px;
  }
}

.hero-section {
  position: relative;
  padding: 3rem 0 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fbfbfb 100%);
  height: 60vh;
}

.hero-decor-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.hero-decor-line {
  position: absolute;
  background: #730000;
  opacity: 0;
  transform: translateX(var(--line-offset)) rotate(-45deg);
  width: var(--line-width);
  height: var(--line-height);
  top: var(--line-top);
  left: 50%;
  border-radius: 0;
  animation: fadeInOut 6s infinite;
}

.line1 {
  --line-top: 10%;
  --line-width: 220vw;
  --line-height: 3px;
  --line-offset: -50%;
  animation-delay: 0s;
}
.line2 {
  --line-top: 25%;
  --line-width: 250vw;
  --line-height: 50px;
  --line-offset: -60%;
  animation-delay: 2s;
}
.line3 {
  --line-top: 40%;
  --line-width: 200vw;
  --line-height: 15px;
  --line-offset: -40%;
  animation-delay: 5s;
}
.line4 {
  --line-top: 55%;
  --line-width: 270vw;
  --line-height: 100px;
  --line-offset: -70%;
  animation-delay: 7s;
}
.line5 {
  --line-top: 70%;
  --line-width: 210vw;
  --line-height: 15px;
  --line-offset: -30%;
  animation-delay: 10s;
}
.line6 {
  --line-top: 85%;
  --line-width: 230vw;
  --line-height: 8px;
  --line-offset: -40%;
  animation-delay: 14s;
}
.line7 {
  --line-top: 95%;
  --line-width: 260vw;
  --line-height: 120px;
  --line-offset: -60%;
  animation-delay: 18s;
}

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 0.2;
  }
}

.hero-text {
  position: relative;
  z-index: 4;
  max-width: 70%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: flex-start;
  word-break: break-word;
  padding-right: 0;
  color: #222;
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #730000;
}
.hero-text p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #000000;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, #730000, #a00000);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  line-height: normal;
}

.btn-hero {
  background: linear-gradient(180deg, #730000, #500000);
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(115, 0, 0, 0.08);
  transition: all 0.3s ease;
  color: #fff;
  display: inline-block;
  text-align: center;
  width: auto;
  align-self: flex-start;
}
.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(115, 0, 0, 0.14);
}

.hero-image {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: 100%;
  min-height: 0;
  position: relative;
  z-index: 1;
}
.hero-image img {
  height: 100%;
  max-height: 100%;
  width: auto;
  object-fit: cover;
  object-position: bottom center;
  border-radius: 12px;
  display: block;
}

.section {
  padding: 4rem 0;
  background-color: #f4f0ee;
}
.section h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #730000;
  text-align: center;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.service {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  text-align: left;
  overflow: visible;
  flex: 1 1 260px;
}

.service:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}
.service .icon {
  fill: #730000;
  width: 40px;
  height: 40px;
  display: block;
  margin: 0 auto 0.5rem;
}
.service h4 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  color: #111;
  text-align: center;
}

.details {
  margin-top: 0.75rem;
  list-style: disc;
  padding-left: 1.2rem;
  text-align: left;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

.details.open {
  max-height: 500px;
  opacity: 1;
}

.details li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

#experience {
  background-color: #fff;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.metric-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.metric-number {
  font-size: 2rem;
  font-weight: 700;
  color: #730000;
}
.metric-label {
  margin-top: 0.5rem;
  color: #444;
  font-size: 0.95rem;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
  justify-items: stretch;
  align-items: stretch;
}

.case-card {
  background: #fff;
  border: 1px solid rgba(115, 0, 0, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(115, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  word-wrap: break-word;
  cursor: pointer;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(115, 0, 0, 0.2);
}

.case-card h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #730000;
}

.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background: #fff;
  margin: auto;
  padding: 1.5rem;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  position: relative;
  animation: modalFade 0.4s ease;
}

.modal-content h4 {
  margin-bottom: 1rem;
  color: #730000;
}

.modal-content p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.modal-content p:last-child {
  margin-bottom: 0;
}

.modal-content {
  padding: 2rem;
}
.modal-content a {
  color: inherit;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.6s ease, filter 0.6s ease;
}

.modal-content a:hover {
  color: #730000;
  filter: brightness(1.15);
}

@keyframes modalFade {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #730000;
  cursor: pointer;
}

.advantages-section {
  padding: 80px 0;
}

.advantages-section h3 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2rem;
}

.advantages-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.advantage {
  display: flex;
  align-items: stretch;
  gap: 24px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.advantage:nth-child(1) {
  animation-delay: 0.1s;
}
.advantage:nth-child(2) {
  animation-delay: 0.3s;
}
.advantage:nth-child(3) {
  animation-delay: 0.5s;
}
.advantage:nth-child(4) {
  animation-delay: 0.7s;
}

.line {
  width: 4px;
  background-color: #730000;
  border-radius: 2px;
}

.content {
  flex: 1;
}

.content h4 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #222;
}

.content p {
  margin: 0;
  line-height: 1.6;
  color: #444;
  font-size: 1rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .advantages-list {
    gap: 30px;
    padding: 0 20px;
  }

  .advantage {
    gap: 15px;
  }

  .content h4 {
    font-size: 1.1rem;
  }

  .content p {
    font-size: 0.95rem;
  }

  .line {
    width: 3px;
  }
}

#contacts {
  background-color: #fff;
}

.contact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  background: #f4f0ee;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 2rem;
}
.contact-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}
.meta .name {
  font-weight: 600;
  font-size: 1.1rem;
}
.meta .role {
  font-size: 0.9rem;
  color: #555;
}
.contact-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.contact-right .phone,
.contact-right .email {
  font-size: 1rem;
}

#contacts a.phone,
#contacts a.email {
  color: inherit;
  text-decoration: none;
  transition: color 0.6s ease, filter 0.6s ease;
}

#contacts a.phone:hover,
#contacts a.email:hover {
  color: #730000;
  filter: brightness(1.15);
}

.footer {
  text-align: center;
  padding: 1rem 0;
  background: #f9f9f9;
  font-size: 0.7rem;
  color: #555;
}

.fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #730000, #500000);
  color: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(115, 0, 0, 0.08);
  fill: #fff;
}
.fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(115, 0, 0, 0.14);
}
.fab svg {
  width: 50px;
  height: 50px;
  display: block;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-grid {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 0 2%;
    min-height: auto;
  }
  .hero-text {
    max-width: 90%;
    margin: 0 0 16px;
    padding-right: 0;
    align-self: flex-start;
    z-index: 4;
  }
  .hero-text .btn-hero {
    align-self: flex-start;
  }
  .hero-image {
    width: 100%;
    margin-top: 16px;
    align-items: center;
    justify-content: center;
  }
  .hero-image img {
    width: 100%;
    height: auto;
    max-width: 420px;
    object-fit: contain;
    border-radius: 16px;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .metric {
    min-height: auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-right {
    flex-direction: column;
    align-items: flex-start;
  }
}

.hero-grid {
  grid-template-columns: 1fr !important;
}
.hero-image {
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 40% !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  z-index: 1 !important;
  pointer-events: none !important;
}
.hero-text {
  max-width: none !important;
  width: auto !important;
  margin-right: 42% !important;
  z-index: 4 !important;
}
.hero-text p {
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

@media (max-width: 1440px) and (orientation: portrait) {
  .hero-image {
    display: none !important;
  }

  .hero-section .container {
    max-width: 100% !important;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-text {
    max-width: 100% !important;
    width: 100% !important;
    text-align: left;
    padding: 0;
  }

  .hero-text h1,
  .hero-text p,
  .btn-hero {
    text-align: left;
  }

  .hero-section {
    height: auto !important;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}



