/* ============================================================
   ИТ-консалтинг — статическая копия сайта chelbukhov.ru
   Самодостаточная версия (без зависимостей от Тильды)
   ============================================================ */

/* ---- Font ---- */
@font-face {
  font-family: 'TildaSans';
  font-weight: 250 1000;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/TildaSans-VF.woff2') format('woff2-variations'),
       url('../fonts/TildaSans-VF.woff') format('woff-variations');
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'TildaSans', 'Segoe UI', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #000;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 40px;
  row-gap: 40px;
}
.span-6 { grid-column: span 6; }

/* ---- Typography ---- */
/* Tilda scale: title base 600, descr 300, name 600 */
.hero-title {
  font-size: 52px;
  font-weight: 600;
  line-height: 1.23;
}
.section-title {
  font-size: clamp(26px, 4.5vw, 42px);
  font-weight: 600;
  line-height: 1.23;
}
.section-descr {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.5;
  max-width: 560px;
}
.card-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
}
.card-descr {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 44px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: #000;
  background: #77aaff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: background .2s ease, opacity .2s ease, transform .2s ease;
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: translateY(1px); }

/* ============================================================
   Header / navigation
   ============================================================ */
.header {
  background: #292929;
  border-bottom: 1px solid rgba(255, 255, 255, 0.20);
  position: relative;
  z-index: 100;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.logo {
  color: #fff;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav__list a {
  color: #fff;
  font-size: 16px;
  white-space: nowrap;
  transition: opacity .2s ease;
}
.nav__list a:hover { opacity: 0.7; }

/* Burger (mobile) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 28px;
  height: 28px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ============================================================
   Hero (t1127)
   ============================================================ */
.hero {
  background: #292929;
  color: #fff;
  padding: 120px 0;
}
.hero .hero__title-col { grid-column: 1 / 7; }
.hero .hero__text-col { grid-column: 8 / 13; }
.hero__descr {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.55;
  margin-bottom: 30px;
}

/* ============================================================
   Experience block (t814)
   ============================================================ */
.exp {
  background: #292929;
  color: #fff;
  padding: 135px 0;
}
.exp__text-col { grid-column: 1 / 6; }
.exp__img-col { grid-column: 6 / 13; }
.exp__card {
  background: #fff;
  color: #000;
  border-radius: 15px;
  padding: 50px 44px;
  height: 100%;
  display: flex;
  align-items: center;
}
.exp__title {
  font-size: clamp(26px, 4.5vw, 42px);
  font-weight: 600;
  line-height: 1.23;
  margin-bottom: 16px;
}
.exp__line {
  width: 50px;
  height: 2px;
  background: #77aaff;
  opacity: 0.6;
  margin-bottom: 28px;
}
.exp__descr {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.55;
}
.exp__img-wrap {
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 1000 / 758;
}
.exp__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   Services (t846)
   ============================================================ */
.services {
  background: #fff;
  padding: 135px 0;
}
.services__header {
  text-align: center;
}
.services__header .section-title { margin-bottom: 40px; }
.services__header .section-descr { margin: 0 auto 90px; }
.services__item {
  grid-column: 3 / 11;
}
.services__item + .services__item { margin-top: 70px; }
.services__item .card-title { margin-bottom: 14px; }

/* ============================================================
   Partner / features (t820)
   ============================================================ */
.partner {
  background: #292929;
  color: #fff;
  padding: 135px 0;
}
.partner__header { text-align: center; }
.partner__header .section-title { margin-bottom: 40px; }
.partner__header .section-descr { margin: 0 auto 90px; }
.feature {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.feature__icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
}
.feature__icon img { width: 30px; height: 30px; }
.feature__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 10px;
}
.feature__descr {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55;
}

/* ============================================================
   About (t962)
   ============================================================ */
.about {
  background: #fff;
  padding: 150px 0;
  text-align: center;
}
.about__col { grid-column: 4 / 10; }
.about__photo {
  width: 260px;
  margin: 0 auto;
}
.about__photo img {
  width: 100%;
  height: auto;
}
.about__name {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.23;
  padding-top: 50px;
  padding-bottom: 20px;
}
.about__uptitle {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  padding-bottom: 40px;
}
.about__uptitle a { color: #3174f0; text-decoration: underline; }
.about__uptitle a:hover { opacity: 0.8; }
.about__descr {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55;
  text-align: left;
  padding-bottom: 60px;
}
.about__descr a { color: #3174f0; text-decoration: underline; }
.about__descr a:hover { opacity: 0.8; }
.about__descr p + p { margin-top: 18px; }

/* ============================================================
   Contacts (t555)
   ============================================================ */
.contacts {
  background: #fff;
  padding: 135px 0;
}
.contacts__text-col { grid-column: 1 / 6; }
.contacts__map-col { grid-column: 6 / 13; }
.contacts__text {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.55;
  margin-bottom: 30px;
}
.sociallinks { display: flex; align-items: center; gap: 14px; }
.sociallinks a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
}
.sociallinks svg { width: 25px; height: 25px; }
.contacts__map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  height: 400px;
}
.contacts__map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   Footer (t389)
   ============================================================ */
.footer {
  background: #fff;
  padding: 0 0 60px;
}
.footer__line {
  border: none;
  height: 1px;
  background: #000;
  opacity: 0.2;
  margin: 0 0 30px;
}
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.footer__copyright {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: #000;
}
.footer__toplink {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: #000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.footer__toplink:hover { opacity: 0.7; }
.footer__toplink svg { width: 6px; height: 16px; }

/* ============================================================
   Floating messenger widget (t898)
   ============================================================ */
.widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.widget__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.widget.is-open .widget__links {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.widget__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.widget__link svg { width: 24px; height: 24px; }
.widget__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #77aaff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
  transition: transform .2s ease;
}
.widget__toggle:hover { transform: scale(1.05); }
.widget__toggle svg { width: 30px; height: 28px; }
.widget__toggle .icon-close { display: none; }
.widget.is-open .widget__toggle .icon-write { display: none; }
.widget.is-open .widget__toggle .icon-close { display: block; }

/* ============================================================
   Education page
   ============================================================ */
.edu {
  background: #ebebeb;
  padding: 135px 0;
}
.edu__header { text-align: center; }
.edu__header .section-title { margin: 0 auto 60px; max-width: 760px; }
.edu__item {
  grid-column: 3 / 11;
  display: flex;
  align-items: center;
  gap: 30px;
}
.edu__item + .edu__item { margin-top: 60px; }
.edu__img {
  flex: 0 0 500px;
  max-width: 100%;
}
.edu__img img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.edu__text { flex: 1 1 auto; }
.edu__text .card-title { margin-bottom: 12px; }
.edu__text .card-title a { color: #000; }
.edu__text .card-title a:hover { color: #3174f0; }

/* ============================================================
   Responsive
   ============================================================ */
@media screen and (max-width: 960px) {
  .grid { column-gap: 20px; }

  /* collapse all explicit column placements to full width */
  .hero .hero__title-col,
  .hero .hero__text-col,
  .exp__text-col,
  .exp__img-col,
  .services__item,
  .about__col,
  .contacts__text-col,
  .contacts__map-col,
  .edu__item,
  .span-6 {
    grid-column: 1 / -1;
  }

  /* Nav -> burger */
  .burger { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #292929;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .header.is-open .nav { max-height: 320px; }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 20px;
  }
  .nav__list li { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .nav__list a {
    display: block;
    padding: 14px 0;
  }

  /* burger animation */
  .header.is-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .header.is-open .burger span:nth-child(2) { opacity: 0; }
  .header.is-open .burger span:nth-child(3) { opacity: 0; }
  .header.is-open .burger span:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }

  /* Hero: title shrinks, columns stack */
  .hero-title { font-size: 30px; }
  .hero .hero__title-col + .hero__text-col { margin-top: 20px; }
  .hero__descr + .btn { margin-top: 15px; }

  /* Experience card padding tighter */
  .exp__card { padding: 30px 20px; }
  .exp__text-col + .exp__img-col { margin-top: 20px; }

  /* Services: smaller spacing */
  .services__header .section-title { margin-bottom: 20px; }
  .services__header .section-descr { margin-bottom: 45px; }
  .services__item + .services__item { margin-top: 40px; }

  /* Partner: smaller spacing */
  .partner__header .section-title { margin-bottom: 20px; }
  .partner__header .section-descr { margin-bottom: 45px; }

  /* Education: stack rows */
  .edu__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .edu__img { flex: 0 0 auto; }
  .edu__header .section-title { margin-bottom: 45px; }

  /* Footer: everything stacks */
  .footer__inner { flex-direction: column; }
}

/* ---- 750px: 2-col sections stack ---- */
@media screen and (max-width: 750px) {
  .contacts__text-col,
  .contacts__map-col { grid-column: 1 / -1; }
  .contacts__text { margin-bottom: 24px; }
}

/* ---- 670px: smaller footer ---- */
@media screen and (max-width: 670px) {
  .footer__copyright,
  .footer__toplink { font-size: 12px; }
}

/* ---- 640px: smaller hero title ---- */
@media screen and (max-width: 640px) {
  .hero-title { font-size: 26px; }
  .about__name { font-size: 30px; }
}

/* ---- 480px: phone padding ---- */
@media screen and (max-width: 480px) {
  .hero { padding-top: 90px; padding-bottom: 15px; }
  .exp, .services, .partner, .contacts { padding-top: 90px; padding-bottom: 90px; }
  .about { padding-top: 90px; padding-bottom: 90px; }

  .section-title { font-size: 30px; }
}