body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

:root{
  --bg:#f2f4f7;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --blue:#1F4E79;
  --red:#C4161C;
  --red2:#ff3b3f;
  --radius:20px;
  --shadow:0 15px 40px rgba(0,0,0,.08);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

html{
  scroll-behavior:smooth;
  scroll-padding-top:70px;
}

.container{
  max-width:1200px;
  margin:auto;
  padding:0 20px;
}

.topbar{
  position:sticky;
  top:0;
  background:white;
  box-shadow:0 5px 20px rgba(0,0,0,.05);
  z-index:1000;
}

.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 0;
}

.topbar.scrolled .nav{
  padding:8px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:18px;
}

.brand img{
  height:100px;
  transition:all .3s ease;
}

.topbar.scrolled .brand img{
  height:70px;
}

.brand .title{
  font-size:auto;
  font-weight:auto;
}

.menu{
  display:flex;
  align-items:center;
  gap:18px;
  font-weight:600;
}

.menu a{
  text-decoration:none;
  color:#111;
}

.btn-red {
  background: linear-gradient(135deg, #d60000, #a80000);
  color: white;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.hero {
  height: 520px;
  background: url("../assets/hero.jpg") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 900px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  margin: 0 0 20px;
  white-space: nowrap;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.hero p {
  font-size: 20px;
  color: rgba(255,255,255,0.95);
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.section{
  padding:80px 0;
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:20px;
}

.card{
  background:var(--card);
  padding:25px;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.card h3{
  margin-top:0;
}

.card-img{
  overflow:hidden;
  border-radius:20px;
}

.gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:15px;
}

.gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:25px;
}

.gallery img{
  width:100%;
  height:260px;          /* фиксированная высота */
  object-fit:cover;      /* аккуратно обрезает */
  border-radius:20px;
  transition:0.4s ease;
  box-shadow:0 15px 35px rgba(0,0,0,.08);
}

.gallery img:hover{
  transform:translateY(-6px);
  box-shadow:0 20px 45px rgba(0,0,0,.15);
}
.footer{
  padding:30px 0;
  text-align:center;
  color:var(--muted);
}

#about p{
  max-width:900px;
  line-height:1.7;
  color:#374151;
  margin-bottom:20px;
  font-size:17px;
}

.lang-switch{
  display:flex;
  gap:8px;
}

.lang-switch button{
  background:none;
  border:1px solid #ddd;
  padding:6px 10px;
  border-radius:8px;
  cursor:pointer;
  font-weight:600;
}

.lang-switch button:hover{
  background:#f3f4f6;
}

.btn-green {
    background: #2e7d32;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    margin-left: 10px;
    display: inline-block;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
}

/* ===== Верхнее меню ===== */

.main-nav {
    display: flex;
    gap: 28px;
    font-weight: 600;
    font-size: 16px;
}

.main-nav a {
    text-decoration: none;
    color: #1f2937; /* темный как в лого */
    position: relative;
    transition: 0.3s;
}

.main-nav a:hover {
    color: #d32f2f; /* красный акцент как в логотипе */
}

.main-nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #d32f2f;
    transition: 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

/* ===== Нижнее меню ===== */

.section-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 40px 0;
}

.section-links a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    transition: 0.3s;
}

.section-links a:hover {
    color: #d32f2f;
    transform: translateX(6px);
}

/* ===== Services: 3 columns ===== */

.services-3col{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  width: 100%;
  margin-top: 18px;
}

.service-box{
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(17,24,39,0.08);
  border-radius: 16px;            /* мягкие углы как у фото */
  padding: 22px 22px 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  transition: transform .25s ease, box-shadow .25s ease;
  aspect-ratio: 1 / 1;            /* квадратная карточка */
  display: flex;
  flex-direction: column;
}

.service-box:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.09);
}

.service-box h3{
  margin: 0 0 14px 0;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;                 /* темный, как текст лого */
  letter-spacing: 0.2px;
}

/* список с красивыми маркерами */
.service-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.service-list li{
  position: relative;
  padding-left: 26px;
  color: #374151;
  line-height: 1.35;
}

/* маркер-галочка в стиль сайта (красный акцент) */
.service-list li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(211,47,47,0.10);
  color: #d32f2f;
  font-weight: 900;
  font-size: 12px;
}

/* адаптация под экран */
@media (max-width: 1024px){
  .services-3col{ grid-template-columns: 1fr; }
  .service-box{ aspect-ratio: auto; } /* на мобиле пусть будет по высоте */
}

/* SECTION TITLE */
.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  color: #222;
}

.section-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background-color: #c40000;
  margin-top: 10px;
}

/* CONTACT SECTION */
.contact-section {
  background: #f4f6f9;
}

.contact-wrapper {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.contact-card {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.contact-company {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 25px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 16px;
}

.contact-item i {
  width: 30px;
  color: #c40000;
  margin-right: 10px;
  font-size: 18px;
}

.contact-item a {
  text-decoration: none;
  color: #333;
  transition: 0.3s;
}

.contact-item a:hover {
  color: #c40000;
}

.contact-map {
  flex: 1;
  min-width: 300px;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* Responsive */
@media (max-width: 900px) {
  .contact-wrapper {
    flex-direction: column;
  }
}

.services-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-box {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

.service-box:hover {
  transform: translateY(-5px);
}

.service-box h3 {
  margin-bottom: 15px;
  font-size: 20px;
}

.service-box ul {
  list-style: none;
  padding-left: 0;
}

.service-box li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 18px;
}

.service-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #c40000;
  font-weight: bold;
}


.partners-wrapper {
  display: flex;
  justify-content: center;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}

.partner-logo img {
  max-height: 80px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: 0.3s ease;
}

.partner-logo img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.section-title {
  font-size: 32px;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: "";
  width: 60px;
  height: 3px;
  background: #c40000;
  position: absolute;
  left: 0;
  bottom: -10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* NAVIGATION */
.nav {
  display: flex;
  align-items: center;
  gap: 30px;              /* расстояние между пунктами */
}

.nav a {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: #222;
  transition: 0.3s ease;
}

.nav a:hover {
  color: #c40000;
}

.nav {
  margin-left: auto;
}

.topbar .container {
  display: flex;
  align-items: center;
}

/* ===== BURGER ===== */
.burger{
  display:none;
  font-size:28px;
  background:none;
  border:none;
  cursor:pointer;
}

/* ===== MOBILE ===== */
@media (max-width: 768px){

  .burger{
    display:block;
  }

  .menu{
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:white;
    display:none;
    flex-direction:column;
    padding:20px 0;
    box-shadow:0 10px 30px rgba(0,0,0,.1);
  }

  .menu a{
    padding:12px 20px;
  }

  .menu.active{
    display:flex;
  }

  .nav{
    position:relative;
  }

  .hero h1{
    font-size:28px;
  }

  .services-wrapper{
    flex-direction:column;
  }

}

@media (max-width: 768px){

  .partners-wrapper{
    flex-direction: column;
    align-items: center;
  }

  .partner-logo img{
    max-width: 80%;
    height: auto;
  }

}

@media (max-width: 768px){

  .services-wrapper{
    flex-direction: column;
    gap: 20px;
  }

  .service-box{
    width: 100%;
  }

}

.service-box{
  padding: 20px;
}

@media (max-width: 768px){
  .service-box h3{
    font-size: 18px;
  }
}

@media (max-width: 768px){

  .services-wrapper{
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

}

@media (max-width: 768px){

  .topbar .container{
    flex-wrap: wrap;
  }

  .cta-buttons{
    display: flex;
    gap: 10px;
  }

  .cta-buttons .btn{
    padding: 8px 12px;
    font-size: 14px;
  }

}

@media (max-width: 768px){
  .btn{
    white-space: nowrap;
  }
}

.btn{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: 0.2s ease;
}

.btn-mail{
  background: #d32f2f;
}

.btn-phone {
    background: #4caf50;
    position: fixed;
    bottom: 20px;
    right: 20px;   /* справа — как на скрине */
    z-index: 9999;
}

.btn:hover{
  transform: scale(1.08);
}