/* --- GLOBAL RESETS & VARIABLES --- */
:root {
  --ton-primary: #0098EA;
  --ton-bg-gray: #F7F9FB;
  --ton-bg-white: #fff;
  --ton-bg-black: #1E2337;
  --ton-gradient-from: #2D83EC;
  --ton-gradient-to: #1AC9FF;
  --ton-text-dark: #333333;
  --ton-text-light: #FFFFFF;
  --ton-shadow: 0 4px 24px rgba(30,35,55,0.08);
  --ton-radius: 20px;
  --ton-radius-sm: 12px;
  --ton-gap: 40px;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-size: 15px;
  overflow-x: hidden;
  width: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: var(--ton-bg-gray);
  color: var(--ton-text-dark);
  min-height: 100vh;
  line-height: 1.6;
  width: 100%;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: hidden;
}

/* --- HEADER --- */
.header {
  background: linear-gradient(90deg, var(--ton-gradient-from), var(--ton-gradient-to));
  color: var(--ton-text-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--ton-shadow);
  overflow-x: hidden;
  width: 100%;
}
.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  flex-wrap: nowrap;
  padding: 8px 0;
  min-height: 56px;
  overflow-x: hidden;
  width: 100%;
  gap: 16px;
}
.header__logo {
  margin-right: 8px;
}
.header__logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ton-bg-white);
  box-shadow: 0 2px 8px rgba(30,35,55,0.10);
}
.site-title {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 700;
  color: var(--ton-text-light);
  flex-shrink: 0;
  white-space: nowrap;
}
.header__nav {
  flex: 1;
  margin-left: 24px;
  margin-right: 24px;
  min-width: 0;
}
.header__menu {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}
.header__link {
  color: var(--ton-text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: var(--ton-radius-sm);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.header__link:hover,
.header__link:focus {
  background: var(--ton-bg-white);
  color: var(--ton-primary);
}
.header__cta {
  background: var(--ton-primary);
  color: var(--ton-text-light);
  padding: 10px 24px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  margin-left: 0;
  box-shadow: 0 2px 8px rgba(30,35,55,0.10);
  transition: background 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}
.header__cta:hover,
.header__cta:focus {
  background: #0077b6;
}
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  cursor: pointer;
  margin-left: 16px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 10001;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}
.header__burger:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ton-text-light);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  position: absolute;
}
.header__burger span:nth-child(1) {
  top: 14px;
}
.header__burger span:nth-child(2) {
  top: 21px;
}
.header__burger span:nth-child(3) {
  top: 28px;
}
.header__burger.active {
  background: rgba(0, 152, 234, 0.2);
  border-color: var(--ton-primary);
  transform: rotate(180deg);
}
.header__burger.active span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
  background: var(--ton-primary);
}
.header__burger.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}
.header__burger.active span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
  background: var(--ton-primary);
}

/* --- SECTION BASE --- */
section {
  padding: 70px 0 60px 0;
  position: relative;
  overflow-x: hidden;
  width: 100%;
}
.section__title {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 36px;
  color: var(--ton-primary);
  text-align: center;
  letter-spacing: -1px;
}

/* --- HERO ISLAND LAYOUT --- */
.hero {
  background: linear-gradient(120deg, var(--ton-gradient-from) 0%, var(--ton-gradient-to) 100%);
  color: var(--ton-text-light);
  min-height: 520px;
  display: flex;
  align-items: center;
  box-shadow: var(--ton-shadow);
  border-radius: 0 0 var(--ton-radius) var(--ton-radius);
  margin-bottom: var(--ton-gap);
  overflow-x: hidden;
  width: 100%;
}
.hero__container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  overflow-x: hidden;
  width: 100%;
}
.hero__content {
  max-width: 520px;
  text-align: left;
  flex: 1 1 320px;
  width: 100%;
}
.hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 24px 0;
  line-height: 1.1;
}
.hero__subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 32px;
  line-height: 1.5;
}
.hero__btn {
  display: inline-block;
  background: var(--ton-bg-white);
  color: var(--ton-primary);
  padding: 13px 36px;
  border-radius: 24px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(30,35,55,0.10);
  transition: background 0.2s, color 0.2s;
  margin-top: 32px;
}
.hero__btn:hover,
.hero__btn:focus {
  background: var(--ton-primary);
  color: var(--ton-text-light);
}
.hero__image {
  flex: 1 1 260px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}
.hero__image img {
  width: 320px;
  height: 320px;
  border-radius: 18px;
  box-shadow: var(--ton-shadow);
  object-fit: cover;
}
.hero__text {
  margin: 40px auto 0 auto;
  max-width: 800px;
  background: rgba(255,255,255,0.13);
  border-radius: 18px;
  padding: 28px 36px;
  box-shadow: 0 2px 8px rgba(30,35,55,0.08);
  text-align: left;
  color: var(--ton-text-light);
  width: 100%;
}

/* --- ABOUT (WHAT IS TON) --- */
.about {
  background: var(--ton-bg-white);
  border-radius: var(--ton-radius);
  box-shadow: var(--ton-shadow);
  margin-bottom: var(--ton-gap);
  overflow-x: hidden;
  width: 100%;
}
.about__container {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
.about__content {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  overflow-x: hidden;
}
.about__text {
  flex: 2;
  min-width: 320px;
  max-width: 600px;
}
.about__text p, .about__text h3 {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.about__list {
  margin: 32px 0 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  list-style: none;
  justify-content: center;
  align-items: stretch;
}
.about__list li {
  background: var(--ton-bg-gray);
  border-radius: var(--ton-radius-sm);
  box-shadow: 0 2px 8px rgba(30,35,55,0.06);
  padding: 16px 18px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: box-shadow 0.2s, background 0.2s;
  overflow: hidden;
  width: 100%;
}
.about__list li:hover {
  background: #eaf6fd;
  box-shadow: 0 4px 16px rgba(30,35,55,0.10);
}
.about__list i {
  color: var(--ton-primary);
  font-size: 1.5rem;
  min-width: 32px;
  text-align: center;
}
.about__images {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 200px;
  align-items: center;
  margin: 0 auto;
}
.about__img {
  width: 180px;
  height: 120px;
  border-radius: var(--ton-radius-sm);
  object-fit: cover;
  box-shadow: var(--ton-shadow);
  background: var(--ton-bg-gray);
}

/* --- ADVANTAGES CARD LAYOUT --- */
.advantages {
  background: var(--ton-bg-white);
  border-radius: var(--ton-radius);
  box-shadow: var(--ton-shadow);
  margin-bottom: var(--ton-gap);
  overflow-x: hidden;
  width: 100%;
}
.advantages__container {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
.advantages__content {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  overflow-x: hidden;
}
.advantages__list {
  flex: 2;
  min-width: 320px;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  list-style: none;
  justify-content: center;
  align-items: stretch;
  text-align: left;
}
.advantages__list li {
  background: var(--ton-bg-gray);
  border-radius: var(--ton-radius-sm);
  box-shadow: 0 2px 8px rgba(30,35,55,0.06);
  padding: 16px 18px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: box-shadow 0.2s, background 0.2s;
  overflow: hidden;
  width: 100%;
}
.advantages__list li:hover {
  background: #eaf6fd;
  box-shadow: 0 4px 16px rgba(30,35,55,0.10);
}
.advantages__list i {
  color: var(--ton-primary);
  font-size: 1.5rem;
  min-width: 32px;
  text-align: center;
}
.card-adv {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  text-align: left;
  width: 100%;
  overflow: hidden;
}
.card-adv__icon {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--ton-primary);
  background: #eaf6fd;
  border-radius: 50%;
  margin-top: 2px;
  flex-shrink: 0;
}
.card-adv__title {
  font-weight: 700;
  font-size: 1.08rem;
  margin-bottom: 6px;
}
.card-adv__desc {
  font-size: 1rem;
  color: var(--ton-text-dark);
  line-height: 1.5;
  margin-bottom: 0;
}
.advantages__stats {
  display: flex;
  gap: 32px;
  margin: 24px 0 0 0;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.stat__item {
  background: var(--ton-bg-black);
  color: var(--ton-text-light);
  border-radius: var(--ton-radius-sm);
  padding: 18px 28px;
  text-align: center;
  min-width: 120px;
  box-shadow: 0 2px 8px rgba(30,35,55,0.08);
}
.stat__value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ton-primary);
}
.stat__label {
  font-size: 1rem;
  color: var(--ton-text-light);
}
.advantages__image {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.advantages__img {
  width: 180px;
  height: 120px;
  border-radius: var(--ton-radius-sm);
  object-fit: cover;
  box-shadow: var(--ton-shadow);
  background: var(--ton-bg-gray);
}
.advantages__text {
  margin: 36px auto 0 auto;
  max-width: 800px;
  font-size: 1.1rem;
  color: var(--ton-text-dark);
  background: rgba(0,152,234,0.07);
  border-radius: var(--ton-radius-sm);
  padding: 24px 32px;
  box-shadow: 0 2px 8px rgba(30,35,55,0.08);
}

/* --- HISTORY (TIMELINE) --- */
.history {
  background: var(--ton-bg-black);
  color: var(--ton-text-light);
  border-radius: var(--ton-radius);
  box-shadow: var(--ton-shadow);
  margin-bottom: var(--ton-gap);
  overflow-x: hidden;
  width: 100%;
}
.history__container {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
.history__content {
  display: grid;
  grid-template-columns: 2fr 300px;
  gap: 56px;
  align-items: start;
}

/* --- HISTORY FLEX TIMELINE --- */
.history__flex {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
  overflow-x: hidden;
}
.history__timeline {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}
.timeline__row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 22px;
  position: relative;
  overflow-x: hidden;
}
.timeline__date {
  min-width: 70px;
  font-weight: 700;
  color: var(--ton-primary);
  text-align: right;
  margin-right: 18px;
  font-size: 1.1rem;
  position: relative;
}
.timeline__date:before {
  content: '';
  display: block;
  position: absolute;
  right: -13px;
  top: 10px;
  width: 14px;
  height: 14px;
  background: var(--ton-primary);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(30,35,55,0.10);
  border: 3px solid var(--ton-bg-black);
}
.timeline__desc {
  font-size: 1.05rem;
  background: rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 2px 8px rgba(30,35,55,0.06);
  color: var(--ton-text-light);
  max-width: 400px;
  overflow-wrap: break-word;
}
.history__image {
  justify-self: center;
}
.history__img {
  width: 260px;
  height: 260px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
}
.history__text {
  margin: 36px auto 0 auto;
  max-width: 800px;
  font-size: 1.1rem;
  color: var(--ton-text-light);
  background: rgba(30,35,55,0.13);
  border-radius: var(--ton-radius-sm);
  padding: 24px 32px;
  box-shadow: 0 2px 8px rgba(30,35,55,0.08);
}

/* --- FOOTER & CONTACT --- */
.footer {
  background: var(--ton-bg-black);
  color: var(--ton-text-light);
  padding: 48px 0 32px 0;
  border-radius: var(--ton-radius) var(--ton-radius) 0 0;
  box-shadow: var(--ton-shadow);
  overflow-x: hidden;
  width: 100%;
}
.footer__container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  overflow-x: hidden;
}
.footer__socials {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 12px;
}
.footer__socials a {
  color: var(--ton-primary);
  font-size: 2rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ton-bg-white);
  box-shadow: 0 2px 8px rgba(30,35,55,0.10);
  transition: background 0.2s, color 0.2s;
}
.footer__socials a:hover,
.footer__socials a:focus {
  background: var(--ton-primary);
  color: var(--ton-text-light);
}
.footer__copyright {
  font-size: 16px;
  margin: 0 auto 8px auto;
  text-align: center;
  width: 100%;
}
.footer__form {
  background: rgba(255,255,255,0.08);
  border-radius: var(--ton-radius-sm);
  padding: 24px 32px;
  min-width: 260px;
  max-width: 340px;
  box-shadow: 0 2px 8px rgba(30,35,55,0.08);
  color: var(--ton-text-light);
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto;
  overflow: hidden;
}
.footer__form h3 {
  margin: 0 0 12px 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--ton-primary);
  text-align: center;
}
.form__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.form__group label {
  font-size: 15px;
  color: var(--ton-text-light);
}
.form__group input,
.form__group textarea {
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 16px;
  font-family: inherit;
  background: var(--ton-bg-gray);
  color: var(--ton-text-dark);
  resize: none;
  width: 100%;
  box-sizing: border-box;
}
.form__group input:focus,
.form__group textarea:focus {
  outline: 2px solid var(--ton-primary);
}
.form__btn {
  background: var(--ton-primary);
  color: var(--ton-text-light);
  border: none;
  border-radius: 24px;
  padding: 12px 0;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
  width: 100%;
}
.form__btn:hover,
.form__btn:focus {
  background: #0077b6;
}
.form__msg {
  min-height: 20px;
  font-size: 15px;
  margin-top: 4px;
  color: #1AC9FF;
  text-align: center;
}

/* --- FADE-IN ANIMATION --- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* --- BODY SCROLL LOCK --- */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
  }
  .header__menu {
    gap: 20px;
  }
  .header__link {
    font-size: 15px;
    padding: 6px 10px;
  }
  .header__cta {
    padding: 8px 20px;
    font-size: 15px;
  }
  .hero__container {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  .hero__content {
    max-width: 100%;
    width: 100%;
    text-align: center;
  }
  .hero__image {
    width: 100%;
    text-align: center;
  }
  .hero__image img {
    width: 90vw;
    max-width: 400px;
    height: auto;
  }
  .hero__text {
    max-width: 100%;
    width: 100%;
    margin: 32px auto 0 auto;
    padding: 24px 20px;
    text-align: left;
  }
  .about__list, .advantages__list {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .card-adv {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about__list li, .advantages__list li {
    width: 100%;
  }
  .history__flex {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .timeline__row {
    flex-direction: column;
    align-items: flex-start;
  }
  .timeline__date {
    text-align: left;
    margin-bottom: 4px;
  }
  .timeline__desc {
    max-width: 100%;
  }
  .history__image {
    margin: 24px 0 0 0;
  }
  .footer__container {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .footer__form {
    width: 100%;
    max-width: 100%;
    padding: 16px 8px;
  }
}
@media (max-width: 1024px) {
  .container {
    padding: 0 16px;
  }
  .header__nav {
    display: none;
  }
  .header__burger {
    display: flex !important;
  }
  .header__cta {
    margin-left: 16px;
    padding: 8px 20px;
    font-size: 16px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }
  .header__container {
    height: 60px;
    min-height: 60px;
  }
  .header__nav {
    /* Показываем nav контейнер, но скрываем обычное меню внутри */
    display: block;
  }
  /* Скрываем обычное горизонтальное меню на мобильных */
  .header__nav .header__menu:not(.open) {
    display: none !important;
  }
  .header__burger {
    display: flex !important;
    z-index: 10001;
  }
  .header__cta {
    display: none;
  }
  .site-title {
    font-size: 1rem;
  }
  .header__menu {
    /* Базовые стили для мобильного меню */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 35, 55, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
    /* По умолчанию скрыто */
    display: none;
  }
  .header__menu.open {
    /* Показываем когда открыто */
    display: flex !important;
    opacity: 1;
    visibility: visible;
  }
  .header__menu li {
    width: auto;
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    animation: slideInMenu 0.4s ease forwards;
    list-style: none;
  }
  .header__menu li:nth-child(1) { animation-delay: 0.1s; }
  .header__menu li:nth-child(2) { animation-delay: 0.2s; }
  .header__menu li:nth-child(3) { animation-delay: 0.3s; }
  .header__menu li:nth-child(4) { animation-delay: 0.4s; }
  .header__menu li:nth-child(5) { animation-delay: 0.5s; }
  
  .header__menu .header__link {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 16px 32px;
    color: var(--ton-text-light);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
  }
  .header__menu .header__link:hover {
    background: var(--ton-primary);
    border-color: var(--ton-primary);
    transform: scale(1.05);
  }
  
  /* Кнопка Learn More в мобильном меню */
  .header__menu .mobile-cta {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 32px;
    background: var(--ton-primary);
    color: var(--ton-text-light);
    text-decoration: none;
    border-radius: 24px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--ton-primary);
    cursor: pointer;
  }
  .header__menu .mobile-cta:hover {
    background: transparent;
    color: var(--ton-primary);
    transform: scale(1.05);
  }
  .hero {
    min-height: unset;
    padding: 32px 0 24px 0;
  }
  .hero__container {
    gap: 20px;
    padding: 0;
  }
  .hero__content {
    max-width: 100%;
    width: 100%;
    padding: 0 12px;
  }
  .hero__title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 16px;
  }
  .hero__subtitle {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 24px;
  }
  .hero__text {
    max-width: 100%;
    width: 100%;
    margin: 24px auto 0 auto;
    padding: 20px 16px;
    font-size: 1rem;
    line-height: 1.5;
    text-align: left;
    opacity: 1 !important;
    transform: none !important;
    color: #fff !important;
    background: rgba(30,35,55,0.13) !important;
    display: block !important;
    z-index: 2;
  }
}
@media (max-width: 600px) {
  html, body {
    font-size: 15px;
  }
  .container {
    padding: 0 8px;
  }
  .header__container {
    height: 56px;
    min-height: 56px;
    padding: 4px 0;
  }
  .site-title {
    font-size: 0.95rem;
  }
  .header__burger {
    margin-left: 8px;
    width: 40px;
    height: 40px;
  }
  .header__burger span {
    width: 18px;
    height: 2px;
  }
  .header__burger span:nth-child(1) {
    top: 12px;
  }
  .header__burger span:nth-child(2) {
    top: 19px;
  }
  .header__burger span:nth-child(3) {
    top: 26px;
  }
  .header__burger.active span:nth-child(1) {
    top: 19px;
    transform: rotate(45deg);
  }
  .header__burger.active span:nth-child(3) {
    top: 19px;
    transform: rotate(-45deg);
  }
  .hero__container {
    padding: 0;
  }
  .hero__content {
    padding: 0 8px;
  }
  .hero__title {
    font-size: 1.8rem;
  }
  .hero__subtitle {
    font-size: 1rem;
  }
  .hero__image img {
    width: 95vw;
    max-width: 95vw;
    height: auto;
  }
  .hero__text {
    padding: 16px 12px;
    font-size: 0.95rem;
    margin: 20px auto 0 auto;
    max-width: 100%;
    width: 100%;
  }
  main.container {
    padding: 20px 4px !important;
    min-width: 0 !important;
  }
}
@media (max-width: 400px) {
  .container {
    padding: 0 4px;
  }
  .header__container {
    height: 52px;
    min-height: 52px;
  }
  .site-title {
    font-size: 0.9rem;
  }
  .header__burger {
    width: 36px;
    height: 36px;
  }
  .header__burger span {
    width: 16px;
    height: 2px;
  }
  .header__burger span:nth-child(1) {
    top: 11px;
  }
  .header__burger span:nth-child(2) {
    top: 17px;
  }
  .header__burger span:nth-child(3) {
    top: 23px;
  }
  .header__burger.active span:nth-child(1) {
    top: 17px;
    transform: rotate(45deg);
  }
  .header__burger.active span:nth-child(3) {
    top: 17px;
    transform: rotate(-45deg);
  }
  .hero__content {
    padding: 0 4px;
  }
  .hero__title {
    font-size: 1.6rem;
  }
  .hero__subtitle {
    font-size: 0.95rem;
  }
  .hero__text {
    padding: 12px 8px;
    font-size: 0.9rem;
    margin: 16px auto 0 auto;
  }
  .footer__links a {
    font-size: 13px !important;
  }
}

/* --- MENU ANIMATIONS --- */
@keyframes slideInMenu {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --- PHONE MOCKUP IN HERO --- */
.phone-mockup {
  position: relative;
  width: 260px;
  height: 520px;
  background: #000;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
}
.phone-notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: #000;
  border-radius: 3px;
}
.phone-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 5px;
  background: #ffffff80;
  border-radius: 3px;
}
@media (max-width: 768px) {
  .phone-mockup {
    width: 200px;
    height: 400px;
  }
}
@media (max-width: 480px) {
  .phone-mockup {
    width: 160px;
    height: 320px;
  }
}

/* === ABOUT GRID LAYOUT === */
.about__content{display:grid;grid-template-columns:2fr 1fr;gap:64px;align-items:center}
@media(max-width:1024px){.about__content{grid-template-columns:1fr;gap:32px}}
.about__images{gap:32px}.about__img{width:260px;height:180px;border-radius:20px;transition:transform .3s ease,box-shadow .3s ease}.about__img:hover{transform:scale(1.05);box-shadow:0 6px 24px rgba(0,0,0,.15)}

/* === CARD ADVANCED STYLING === */
.card-adv{background:#fff;border:1px solid #E9EEF5;border-radius:20px;padding:20px;box-shadow:0 2px 8px rgba(0,0,0,.05);transition:transform .25s ease,box-shadow .25s ease}.card-adv:hover{transform:translateY(-4px);box-shadow:0 8px 24px rgba(0,0,0,.08)}
.card-adv__icon{background:linear-gradient(135deg,#EAF6FD 0%,#fff 100%);box-shadow:0 2px 6px rgba(0,0,0,.06)}

/* === TIMELINE IMPROVED === */
.history__timeline{position:relative;padding-left:40px}
.history__timeline:before{content:"";position:absolute;left:14px;top:0;bottom:0;width:4px;border-radius:2px;background:linear-gradient(var(--ton-gradient-from),var(--ton-gradient-to))}
.timeline__row{position:relative;padding-left:16px;margin-bottom:32px}
.timeline__date{position:absolute;left:-40px;top:0;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--ton-primary);color:#fff;font-weight:700;box-shadow:0 2px 6px rgba(0,0,0,.2)}
.timeline__desc{background:rgba(255,255,255,.07);padding:16px 20px;border-radius:14px;border:1px solid rgba(255,255,255,.1);box-shadow:0 2px 6px rgba(0,0,0,.05)}
@media(max-width:768px){.timeline__date{left:-34px}}

/* === STAT CARDS === */
.advantages__stats{gap:48px;margin:48px 0 0}.stat__item{padding:24px 36px;border-radius:20px;background:#fff;border:1px solid #E9EEF5;box-shadow:0 3px 12px rgba(0,0,0,.06)}.stat__value{font-size:2rem}

/* === FADEUP ANIMATION === */
.fade-up{opacity:0;transform:translateY(40px);transition:opacity .8s cubic-bezier(.4,0,.2,1),transform .8s cubic-bezier(.4,0,.2,1)}
.fade-up.visible{opacity:1;transform:none}
@media(max-width:1024px){.history__content{grid-template-columns:1fr;gap:32px}.history__image{order:-1;margin-bottom:24px}.history__img{width:220px;height:220px}}