:root {
  --bg: #fff;
  --bg2: #fff;
  --fg: #181818;
  --accent: #232323;
  --accent2: #ececec;
  --muted: #888;
  --border: #ececec;
  --radius: 18px;
  --font-main: 'Inter', Arial, sans-serif;
}
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--fg);
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  box-sizing: border-box;
}
.main-header {
  background: var(--bg2);
  border-bottom: 1.5px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}
.logo, .footer-logo {
  font-weight: 900;
  font-size: 1.42rem;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  letter-spacing: -.5px;
}
.logo img, .footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f7f7ff;
  box-shadow: 0 2px 8px #0001;
}
nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
nav a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.08rem;
  border-bottom: 2px solid transparent;
  transition: border 0.2s;
}
nav a:hover {
  border-bottom: 2px solid var(--accent);
}
.cta-btn {
  background: #181818;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 32px;
  font-size: 1.13rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-left: 10px;
  box-shadow: 0 2px 12px #00000010;
}
.cta-btn:hover {
  background: #333;
  color: #fff;
}
.hero {
  background: var(--bg2);
  text-align: center;
  padding: 80px 0 60px 0;
}
.hero-content {
  max-width: 900px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 22px;
  letter-spacing: -1px;
  color: #181818;
}
.hero p {
  color: var(--muted);
  font-size: 1.28rem;
  margin-bottom: 32px;
}
.services, .how-we-work, .about {
  padding: 68px 0 40px 0;
}
h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 40px;
  color: #181818;
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  max-width: 950px;
  margin: 0 auto;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 20px #0000000f;
  padding: 30px 24px 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1.5px solid #ececec;
  min-height: 100px;
  max-width: 100%;
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s, transform 0.7s;
  word-break: break-word;
}
.service-card.visible {
  opacity: 1 !important;
  transform: none !important;
}
.service-card i {
  font-size: 2.1rem;
  color: #181818;
  margin-right: 4px;
}
.service-card strong {
  font-size: 1.13rem;
  font-weight: 700;
  color: #181818;
  max-width: 100%;
  word-break: break-word;
}
.service-card span {
  color: #555;
  font-size: 1rem;
  display: block;
  margin-top: 2px;
  max-width: 100%;
  word-break: break-word;
}

/* Новый стиль для how-we-work */
.work-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.work-step-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 20px #0000000f;
  padding: 28px 26px 30px 26px;
  border: 1.5px solid #ececec;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s, transform 0.7s;
}
.work-step-card.visible {
  opacity: 1 !important;
  transform: none !important;
}
.step-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.step-num {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 2.1rem;
  font-weight: 900;
  color: #232323;
  background: #f2f2f3;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px #0000000a;
  border: 1.5px solid #e3e3e3;
}
.step-title {
  font-weight: 900;
  font-size: 1.13rem;
  color: #181818;
  letter-spacing: -0.5px;
  word-break: break-word;
  max-width: 100%;
  margin-top: 3px;
}
.step-desc {
  color: #333;
  font-size: 1.09rem;
  line-height: 1.56;
  word-break: break-word;
  max-width: 100%;
  font-weight: 500;
  margin-left: 62px;
}

.about-content {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
  flex-wrap: wrap;
  background: #fafbfc;
  border-radius: var(--radius);
  box-shadow: 0 2px 20px #0000000a;
  padding: 38px 28px 32px 28px;
  border: 1.5px solid #ececec;
}
.about-content > div {
  flex: 1;
  min-width: 0;
}
.about-block {
  margin-top: 20px;
}
.about-block-title {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.about-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0 0;
}
.about-content li {
  margin-bottom: 10px;
  font-size: 1.08rem;
  color: #181818;
  display: flex;
  align-items: center;
  gap: 11px;
  word-break: break-word;
  max-width: 100%;
}
.about-content i {
  color: #181818;
  font-size: 1.35rem;
}
.about-cta {
  margin-top: 24px;
  font-size: 1.09rem;
}

footer {
  background: var(--bg2);
  padding: 38px 0 16px 0;
  border-top: 1.5px solid var(--border);
  color: var(--muted);
  font-size: 1rem;
}
.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto 18px auto;
}
.footer-logo {
  font-weight: 900;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #181818;
}
.footer-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f7f7ff;
  box-shadow: 0 2px 8px #0001;
}
.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  color: #333;
  font-size: 2.1rem;
  transition: color 0.19s;
  display: flex;
  align-items: center;
}
.footer-links a:hover {
  color: #181818;
}
.footer-copy {
  text-align: center;
  color: #aaa;
  font-size: 0.97rem;
  word-break: break-word;
}
@media (max-width: 1000px) {
  .about-content { padding: 28px 10px 18px 10px; }
  .work-step-card { min-height: 170px; }
}
@media (max-width: 900px) {
  .service-cards,
  .work-steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}
@media (max-width: 700px) {
  .about-content { padding: 20px 10px 18px 10px; }
  .work-steps-grid { grid-template-columns: 1fr; }
  .work-step-card { min-height: 1px; }
  .step-desc { margin-left: 0; }
}
@media (max-width: 600px) {
  .main-header .container { flex-direction: column; gap: 10px;}
  .hero h1 { font-size: 2rem; }
  .container { padding: 0 8px;}
  .about-content { padding: 16px 4px 12px 4px; }
  .service-cards,
  .work-steps-grid { grid-template-columns: 1fr; gap: 16px;}
  .footer-main { flex-direction: column; gap: 10px;}
  .service-card,
  .work-step-card {
    padding: 16px 8px 20px 8px;
    gap: 10px;
  }
  .step-header { gap: 10px; }
  .step-num {
    font-size: 1.5rem;
    width: 34px;
    height: 34px;
    margin-right: 7px;
  }
  .step-title,
  .step-desc,
  .service-card strong,
  .service-card span {
    font-size: 1rem;
  }
  .step-desc { margin-left: 0; }
  .footer-links { gap: 18px; }
  .footer-links a { font-size: 1.5rem; }
}
.modal-overlay {
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(20,20,20,0.20);
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.27s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity:1; }
}
.modal {
  background: var(--bg2);
  border-radius: var(--radius);
  box-shadow: 0 2px 32px #0001;
  max-width: 370px;
  width: 90vw;
  padding: 38px 26px 26px 26px;
  position: relative;
  animation: slideUp 0.25s;
}
@keyframes slideUp {
  from { transform: translateY(32px); opacity: 0;}
  to   { transform: translateY(0); opacity:1;}
}
.modal-close {
  position: absolute;
  right: 16px; top: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #888;
  cursor: pointer;
}
.modal h2 {
  margin-top: 0;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 22px;
  color: #181818;
}
#tgForm input, #tgForm textarea {
  width: 100%;
  padding: 12px 13px;
  margin-bottom: 13px;
  border: 1.5px solid #ececec;
  border-radius: 10px;
  background: #f7f8fa;
  color: #181818;
  font-size: 1rem;
  font-family: var(--font-main);
  box-sizing: border-box;
}
#tgForm textarea { min-height: 80px; }
#tgForm button {
  background: #181818;
  color: #fff;
  padding: 13px 0;
  border: none;
  border-radius: 10px;
  font-size: 1.09rem;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  margin-top: 10px;
}
#tgForm button:hover {
  background: #333;
}
.form-message {
  margin-top: 14px;
  font-size: 1.05rem;
  font-weight: 500;
}
.aos {
  /* animation on scroll */
}
.aos.visible {
  opacity: 1 !important;
  transform: none !important;
}