:root {
  --bg-color: #f8f9fa;
  --text-color: #1a1a1a;
  --accent-color: #2563eb;
  --border-color: #d1d5db;
  --grid-line: rgba(0, 0, 0, 0.05);
  --font-main: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
}

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

/* Header */
.header {
  height: 80px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background: rgba(248, 249, 250, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.header__logo-img {
  width: 32px;
  height: 32px;
}

.header__menu {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}

.header__link {
  text-decoration: none;
  color: var(--text-color);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: var(--transition);
  position: relative;
}

.header__link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-color);
  transition: var(--transition);
}

.header__link:hover::after {
  width: 100%;
}

.header__btn {
  padding: 10px 20px;
  background: var(--text-color);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border-radius: 4px;
  transition: var(--transition);
}

.header__btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

/* Burger Menu */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.header__burger span {
  width: 25px;
  height: 2px;
  background: var(--text-color);
  transition: var(--transition);
}

/* Footer */
.footer {
  padding: 80px 0 40px;
  background: #fff;
  border-top: 1px solid var(--border-color);
  margin-top: 100px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer__logo-text {
  font-weight: 800;
  font-size: 1.5rem;
  display: block;
  margin-bottom: 15px;
}

.footer__tagline {
  font-size: 0.9rem;
  color: #666;
  max-width: 250px;
}

.footer__title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.footer__list {
  list-style: none;
}

.footer__list li {
  margin-bottom: 10px;
}

.footer__list a {
  text-decoration: none;
  color: #444;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer__list a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer__contact-info p {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer__contact-info a {
  color: var(--text-color);
  text-decoration: none;
}

.footer__bottom {
  padding-top: 40px;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 0.8rem;
  color: #888;
}

/* Media Queries */
@media (max-width: 992px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .header__nav {
    display: none;
  }
  .header__burger {
    display: flex;
  }
}

@media (max-width: 576px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* Hero Section & Bento Grid */
.hero {
  padding: 60px 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.bento-item {
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.bento-item:hover {
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.05);
}

.hero__block--main {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__tech-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-color);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__tech-label::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent-color);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 25px;
  letter-spacing: -2px;
}

.text-accent {
  color: var(--accent-color);
}

.hero__desc {
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 16px 32px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
  border-radius: 4px;
}

.btn--primary {
  background: var(--accent-color);
  color: #fff;
}

.btn--secondary {
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

.btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

.hero__block--visual {
  grid-column: span 1;
  padding: 0;
  background: #111;
  min-height: 300px;
}

#heroCanvas {
  width: 100%;
  height: 100%;
}

.hero__visual-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #fff;
}

.hero__status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
}

.hero__block--small {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero__stat {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.hero__block--small p {
  font-size: 0.85rem;
  color: #666;
  font-weight: 600;
}

/* Адаптивность Hero */
@media (max-width: 992px) {
  .hero__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero__block--main {
    grid-column: span 2;
  }
  .hero__block--visual {
    grid-column: span 2;
    height: 200px;
  }
}

@media (max-width: 576px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__block--main,
  .hero__block--visual,
  .hero__block--small {
    grid-column: span 1;
  }
}

/* Общие элементы секций */
.section-header {
  margin-bottom: 50px;
}
.section-label {
  font-family: var(--font-mono);
  color: var(--accent-color);
  font-size: 0.8rem;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 10px;
}
.section-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

/* Expertise Section */
.expertise {
  padding: 100px 0;
}
.expertise__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.expertise__card {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.expertise__card--featured {
  grid-row: span 2;
  background: var(--text-color);
  color: #fff;
  justify-content: center;
}

.expertise__card--featured h3 {
  font-size: 1.8rem;
  color: #fff;
}
.expertise__card--featured p {
  color: #ccc;
}

.expertise__icon {
  color: var(--accent-color);
  width: 32px;
  height: 32px;
}

.expertise__badge {
  background: var(--accent-color);
  color: #fff;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  align-self: flex-start;
}

.expertise__link {
  margin-top: 20px;
  color: var(--accent-color);
  text-decoration: none;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

/* Strategy Section */
.strategy {
  padding: 100px 0;
  background: #111;
  color: #fff;
  position: relative;
}

.strategy__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.strategy__text {
  margin-top: 30px;
  font-size: 1.2rem;
  color: #888;
}

.strategy__steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.step {
  display: flex;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #333;
}

.step__num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent-color);
}

.step h4 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.step p {
  color: #888;
  font-size: 0.95rem;
}

/* Адаптивность */
@media (max-width: 992px) {
  .expertise__grid {
    grid-template-columns: 1fr 1fr;
  }
  .expertise__card--featured {
    grid-column: span 2;
    grid-row: auto;
  }
  .strategy__wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 576px) {
  .expertise__grid {
    grid-template-columns: 1fr;
  }
  .expertise__card--featured {
    grid-column: span 1;
  }
  .section-title {
    font-size: 2.2rem;
  }
}

/* Analysis Section */
.analysis {
  padding: 120px 0;
  border-bottom: 1px solid var(--border-color);
}

.analysis__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.analysis__lead {
  font-size: 1.25rem;
  margin: 25px 0 40px;
  color: #444;
}

.analysis__metrics {
  display: flex;
  gap: 40px;
}

.metric {
  display: flex;
  flex-direction: column;
}

.metric__val {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
}

.metric__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
}

.analysis__visual {
  background: #fff;
  border: 1px solid var(--border-color);
  height: 400px;
  position: relative;
  padding: 40px;
}

.analysis__box {
  width: 100%;
  height: 100%;
  border: 1px dashed var(--border-color);
  position: relative;
  overflow: hidden;
}

.analysis__line {
  position: absolute;
  background: var(--grid-line);
  height: 1px;
  width: 100%;
  top: 25%;
}
.analysis__line:nth-child(2) {
  top: 50%;
}
.analysis__line:nth-child(3) {
  top: 75%;
}

.analysis__point {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--accent-color);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.analysis__tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  background: #eee;
  padding: 2px 6px;
}

/* Growth Section */
.growth {
  padding: 100px 0;
  background: var(--bg-color);
}
.text-center {
  text-align: center;
}

.growth__bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 20px;
  margin-top: 60px;
}

.growth__item--large {
  grid-column: span 2;
  grid-row: span 1;
  background: #fff;
}
.growth__item--wide {
  grid-column: span 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--text-color);
  color: #fff;
}

.growth__item h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.growth__item p {
  font-size: 0.9rem;
  color: #666;
}
.growth__item--wide p {
  color: #aaa;
}

.growth__icon {
  color: var(--accent-color);
  margin-bottom: 15px;
}

.growth__tag {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-color);
}

.growth__cta-text {
  display: flex;
  flex-direction: column;
}
.growth__cta-text strong {
  font-size: 1.4rem;
}

/* Responsive */
@media (max-width: 992px) {
  .analysis__grid {
    grid-template-columns: 1fr;
  }
  .growth__bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .growth__item--wide {
    grid-column: span 2;
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .growth__bento {
    grid-template-columns: 1fr;
  }
  .growth__item--large,
  .growth__item--wide {
    grid-column: span 1;
  }
}

/* Contact Section */
.contact {
  padding: 80px 0;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  background: #fff;
  padding: 60px;
  border-radius: 0; /* Bento style */
}

.contact__info .section-title {
  font-size: 2.5rem;
  margin: 20px 0;
}
.contact__meta {
  margin-top: 30px;
}
.contact__meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-color);
  font-weight: 600;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.form__input {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-color);
  font-family: var(--font-main);
  background: var(--bg-color);
  transition: var(--transition);
}

.form__input:focus {
  outline: none;
  border-color: var(--accent-color);
  background: #fff;
}

.form__error {
  color: #ef4444;
  font-size: 0.75rem;
  display: none;
  margin-top: 5px;
}

/* Captcha Styling */
.form__captcha {
  padding: 15px;
  background: #f9f9f9;
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.captcha__container {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 10px;
}
.captcha__checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  position: relative;
}
.captcha__container input:checked ~ .captcha__checkmark {
  background: var(--accent-color);
  border-color: var(--accent-color);
}
.captcha__container input:checked ~ .captcha__checkmark::after {
  content: "✓";
  color: #fff;
  position: absolute;
  left: 3px;
  top: -2px;
  font-size: 14px;
}
.captcha__container input {
  display: none;
}
.captcha__logo {
  height: 30px;
  opacity: 0.5;
}

/* Agreement */
.form__agreement {
  font-size: 0.8rem;
  color: #666;
}
.agreement__container {
  display: flex;
  gap: 10px;
  cursor: pointer;
}

/* Success Message */
.form__success {
  position: absolute;
  inset: 0;
  background: #fff;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
}
.form__success i {
  width: 48px;
  height: 48px;
  color: var(--accent-color);
  margin-bottom: 15px;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 400px;
  background: var(--text-color);
  color: #fff;
  padding: 20px;
  z-index: 2000;
  transform: translateY(150%);
  transition: var(--transition);
}
.cookie-popup.active {
  transform: translateY(0);
}
.cookie-popup p {
  font-size: 0.85rem;
  margin-bottom: 15px;
}
.cookie-popup a {
  color: var(--accent-color);
}

/* Policy Pages Styling */
.pages {
  padding: 100px 0;
  background: #fff;
}
.pages h1 {
  font-size: 3rem;
  margin-bottom: 40px;
  border-left: 5px solid var(--accent-color);
  padding-left: 20px;
}
.pages h2 {
  margin: 30px 0 15px;
  font-size: 1.5rem;
}
.pages p {
  margin-bottom: 15px;
  color: #444;
}
.pages ul {
  margin-bottom: 20px;
  padding-left: 20px;
}
.pages li {
  margin-bottom: 10px;
}

@media (max-width: 992px) {
  .contact__grid {
    grid-template-columns: 1fr;
    padding: 30px;
  }
}
