/* ===== Tokens ===== */
:root {
  --ink: #101013;
  --ink-2: #2e343b;
  --ink-3: #4a4a52;
  --body: #55555f;
  --muted: #6a6a74;
  --muted-2: #8a8a95;
  --line: #101013;
  --card-bg: #fbfbfb;
  --soft: #f3f4f5;
  --blue: #4189ff;
  --blue-2: #58779f;
  --blue-3: #2f74f0;
  --bg-soft: #f3f6fb;
  --footer-line: #dfe5ee;
  --primary: #418cff;

  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Golos Text", system-ui, sans-serif;
  --font-alt: "Onest", system-ui, sans-serif;

  --radius-card: 40px;
  --radius-media: 30px;
  --container: 1290px;
  --gap: 20px;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  position: relative;
  font-family: var(--font-body);
  color: var(--ink-2);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html {
  background: #fff;
}

.bg-video {
  display: block;
  position: absolute;
  top: -7.5%;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--container));
  height: 115%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 60px;
  padding: 0 34px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.btn:hover {
  opacity: 0.88;
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--white {
  background: #fff;
  color: var(--blue-3);
  font-family: var(--font-alt);
  font-weight: 600;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #f7f8fd;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(16, 16, 19, 0.06);
}
.header__inner {
  height: 80px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo img {
  height: 25px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 28px;
  margin-left: 44px;
}
.main-nav a {
  font-size: 14px;
  color: var(--ink-3);
  transition: color 0.2s;
}
.main-nav a:hover {
  color: var(--blue-3);
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
.header__phone {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.15px;
  color: var(--ink);
}
.header__inner .btn {
  background-color: var(--primary);
  height: 40px;
  padding: 0 22px;
  font-size: 14px;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 8px;
}
.burger span {
  width: 24px;
  height: 2px;
  background: var(--ink-2);
  border-radius: 2px;
  transition:
    transform 0.25s,
    opacity 0.25s;
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 50px 0 200px;
}
.hero__badge {
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 28px;
  text-transform: uppercase;
}
.hero__title {
  font-weight: 800;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -4.14px;
  color: var(--ink);
  max-width: 618px;
  margin-bottom: 28px;
}
.hero__text {
  font-size: 21px;
  line-height: 1.5;
  color: var(--body);
  max-width: 593px;
}
.hero__badge,
.hero__title,
.hero__text {
  position: relative;
  z-index: 1;
}

/* ===== Section head ===== */
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 44px;
}
.section-label {
  display: block;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 1.44px;
  color: var(--muted-2);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.section-label--blue {
  color: var(--blue-2);
}
.section-title {
  font-weight: 800;
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: -2.32px;
  color: var(--ink-2);
}
.section-head__text {
  max-width: 320px;
  font-size: 15px;
  line-height: 1.2;
  color: var(--muted);
  padding-top: 52px;
}
.section-head__text--blue {
  color: var(--blue-2);
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.section-cta .btn {
  padding: 0 60px;
}

/* ===== Solutions (top two cards) ===== */
.solutions {
  padding: 0 0 100px;
  margin-top: -140px;
  position: relative;
  z-index: 2;
}
.solutions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 379px));
  gap: var(--gap);
}
.solution-card {
  background: #fff;
  border: 1px solid rgb(16, 16, 19, 0.08);
  border-radius: 22px;
  padding: 26px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.solution-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(16, 16, 19, 0.08);
}
.solution-card__num {
  font-size: 12px;
  letter-spacing: 1.2px;
  color: var(--muted-2);
}
.solution-card__title {
  font-weight: 700;
  font-size: 26px;
  line-height: 1.36;
  letter-spacing: -0.65px;
  color: var(--ink-2);
  padding-top: 6px;
}
.solution-card__text {
  font-size: 15px;
  line-height: 1.2;
  color: var(--muted);
  max-width: 321px;
}

/* ===== Products ===== */
.products {
  padding: 0 0 110px;
}
.products__grid {
  display: grid;
  grid-template-columns: 474fr 802fr;
  gap: var(--gap);
}
.products__sub {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.product-card {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 10px;
  overflow: hidden;
}

.product-card--tall {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
}
.product-card--wide {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr 356px;
  align-items: center;
}
.product-card--sm {
  display: flex;
  flex-direction: column;
}

.product-card__body {
  padding: 26px 26px 0;
}
.product-card--wide .product-card__body {
  padding: 0 10px 36px 26px;
}
.product-card__title {
  font-weight: 700;
  font-size: 30px;
  line-height: 1.36;
  letter-spacing: 0.3px;
  color: var(--ink-3);
  margin-bottom: 26px;
}
.product-card--sm .product-card__title {
  font-size: 30px;
  margin-bottom: 20px;
}
.product-card__text {
  font-family: var(--font-alt);
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-2);
}
.product-card--sm .product-card__text {
  font-size: 15px;
  line-height: 1.45;
}
.product-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.product-card--tall .product-card__media {
  margin-top: auto;
  padding: 12px 20px 20px;
}
.product-card--wide .product-card__media {
  padding: 20px;
}
.product-card--sm .product-card__media {
  margin-top: auto;
  padding: 4px 20px 20px;
}
.product-card__media img {
  max-width: 100%;
  max-height: 100%;
}
.product-card--tall .product-card__media img {
  max-height: 462px;
}

/* ===== Services ===== */
.services {
  padding: 0 0 110px;
}
.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: stretch;
}
.services__col {
  display: contents;
}
.services__col:first-child > :nth-child(1) {
  grid-column: 1;
  grid-row: 1;
  overflow: hidden;
  display: flex;
}
.services__col:first-child > :nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}
.services__col:first-child > :nth-child(3) {
  grid-column: 1;
  grid-row: 3;
}
.services__col:last-child > :nth-child(1) {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.services__col:last-child > :nth-child(2) {
  grid-column: 2;
  grid-row: 3;
}
.services__sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.service-card {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 10px;
  overflow: hidden;
}
.service-card--wide {
  display: grid;
  grid-template-columns: 1fr 300px;
  align-items: center;
  min-height: 300px;
}
.service-card--tall {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 680px;
}
.service-card--col {
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.service-card__body {
  padding: 24px 26px 26px;
}
.service-card--tall .service-card__body {
  width: 412px;
  max-width: 100%;
  box-sizing: border-box;
}
.service-card--wide .service-card__body {
  padding: 36px 10px 36px 26px;
}
.service-card__title {
  font-weight: 600;
  font-size: 26px;
  line-height: 1.36;
  letter-spacing: 0.26px;
  color: #182e47;
  margin-bottom: 20px;
}
.service-card--tall .service-card__title,
.service-card--wide .service-card__title {
  font-family: var(--font-head);
  font-weight: 600;
}
.service-card__text {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}
.service-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.service-card--wide .service-card__media {
  justify-content: flex-end;
  align-self: flex-start;
}
.service-card__media--top {
  margin-top: 0;
}
.service-card--col .service-card__media {
  padding: 10px 10px 0;
}
.service-card__media img {
  max-width: 100%;
  max-height: 100%;
}
.service-card--wide .service-card__media img {
  max-height: 260px;
}
.service-card--tablets {
  height: 300px;
  overflow: visible;
  z-index: 2;
}
.service-card--tablets .service-card__media {
  padding: 0;
  overflow: visible;
}
.service-card--tablets .service-card__media img {
  width: 300px;
  height: 375px;
  max-width: none;
  max-height: none;
}
.service-card--tall .service-card__media:not(.service-card__media--phone) img {
  max-height: 300px;
}

/* App phone composition */
.service-card__media--phone {
  position: relative;
  align-items: flex-end;
  justify-content: center;
  padding: 0 20px;
  flex: 1;
  min-height: 0;
}
.service-card__media--phone .phone {
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  max-height: none;
  max-width: none;
}
.phone-card {
  position: absolute;
  z-index: 2;
}
.phone-card--rating {
  top: 80px;
  right: 90px;
  width: 176px;
}
.phone-card--order {
  left: 70px;
  bottom: 90px;
  width: 204px;
}

/* ===== Cases ===== */
.cases {
  padding: 0 0 110px;
}
.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.case-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 10px;
  display: flex;
  flex-direction: column;
}
.case-card__media {
  height: 244px;
  border-radius: var(--radius-media);
  background: linear-gradient(135deg, #efefef 0%, #f8f8f8 50%, #efefef 100%);
}
.case-card__body {
  padding: 22px 28px 30px;
}
.case-card__title {
  font-family: var(--font-alt);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.27;
  letter-spacing: 0.22px;
  color: #182e47;
  margin-bottom: 10px;
}
.case-card__text {
  font-family: var(--font-alt);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* ===== Clients ===== */
.clients {
  padding: 0 0 110px;
}
.clients__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px 48px;
}
.clients__logos img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.85;
}

/* ===== Articles ===== */
.articles {
  padding: 0 0 110px;
}
.articles__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.articles__link {
  font-size: 15px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.articles__link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.articles__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.articles__sub {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.article-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.article-card--big {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.article-card--row {
  grid-column: 2;
  grid-row: 1;
  flex-direction: row;
  align-items: center;
  gap: 0;
  padding: 20px;
}
.article-card__media {
  border-radius: var(--radius-media);
  background: linear-gradient(135deg, #efefef 0%, #f8f8f8 50%, #efefef 100%);
}
.article-card--big .article-card__media {
  height: 332px;
}
.article-card--row .article-card__media {
  width: 252px;
  height: 240px;
  flex: none;
}
.article-card--sm .article-card__media {
  height: 104px;
}
.article-card__body {
  padding: 0 8px 10px;
}
.article-card--row .article-card__body {
  padding: 0 10px 0 30px;
}
.article-card--sm .article-card__body {
  padding: 0 4px 4px;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-alt);
  font-size: 14px;
  line-height: 1.28;
  color: #7a7a7a;
  margin-bottom: 14px;
}
.article-card--sm .article-card__meta {
  display: block;
  margin-bottom: 8px;
}
.article-card__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.2;
  color: #182e47;
  margin-bottom: 12px;
}
.article-card--row .article-card__title {
  font-size: 24px;
  line-height: 1.22;
}
.article-card--sm .article-card__title {
  font-size: 19px;
  line-height: 1.25;
}
.article-card__text {
  font-family: var(--font-alt);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}
.article-card--sm .article-card__text {
  font-size: 14px;
  line-height: 1.5;
}

/* ===== Contact ===== */
.contact {
  background: var(--bg-soft);
  padding: 64px 0 40px;
}
.contact .container {
  max-width: 1373px;
}
.contact__card {
  background: var(--blue);
  border-radius: var(--radius-card);
  padding: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 600px;
  gap: 40px;
  align-items: start;
}
.contact__col {
  padding: 12px 0 0;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.contact__title {
  font-family: var(--font-alt);
  font-weight: 700;
  font-size: 50px;
  line-height: 1.05;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 32px;
}
.contact__text {
  font-family: var(--font-alt);
  font-size: 18px;
  line-height: 1.4;
  color: #fff;
  max-width: 418px;
  margin-bottom: 46px;
}
.contact__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 46px;
}
.contact__actions .btn {
  padding: 0 40px;
}
.contact__note {
  font-family: var(--font-alt);
  font-size: 14px;
  line-height: 1.35;
  color: #fff;
  max-width: 216px;
}
.contact__messengers {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex: 1 1 auto;
}
.messengers {
  display: flex;
  gap: 10px;
}
.messenger {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-alt);
  font-weight: 600;
  font-size: 16px;
  color: #0f1b2d;
  transition: transform 0.2s;
}
.messenger:hover {
  transform: translateY(-3px);
}
.contact__contacts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-left: 20px;
}
.contact__contacts a {
  font-family: var(--font-alt);
  font-size: 24px;
  line-height: 1.3;
  color: #fff;
}

/* AI chat */
.ai-chat {
  background: #fff;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 520px;
  width: 600px;
  max-width: 100%;
}
.ai-chat__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 28px;
  border-bottom: 1px solid #eef1f6;
}
.ai-chat__avatar {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: #eaf2ff;
  color: #3d86ff;
  font-family: var(--font-alt);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.ai-chat__who {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ai-chat__name {
  font-family: var(--font-alt);
  font-weight: 600;
  font-size: 17px;
  color: #0f1b2d;
}
.ai-chat__status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-alt);
  font-size: 13px;
  color: #7a8597;
}
.ai-chat__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2fbf71;
}
.ai-chat__new {
  margin-left: auto;
  font-family: var(--font-alt);
  font-weight: 500;
  font-size: 13px;
  color: #7a8597;
  padding: 6px 12px;
  border-radius: 16px;
}
.ai-chat__new:hover {
  background: #f2f5fa;
}

.ai-chat__body {
  flex: 1;
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ai-chat__bubble {
  background: #f2f5fa;
  border-radius: 24px 24px 24px 6px;
  padding: 12px 20px;
  font-family: var(--font-alt);
  font-size: 15px;
  line-height: 1.45;
  color: #0f1b2d;
  max-width: 477px;
}
.ai-chat__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 470px;
}
.chip {
  border: 1px solid #d6e4ff;
  border-radius: 18px;
  padding: 8px 18px;
  font-family: var(--font-alt);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.28;
  color: var(--blue-3);
  background: #fff;
  transition: background 0.2s;
}
.chip:hover {
  background: #f5f9ff;
}
.ai-chat__input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 20px 20px 28px;
  border-top: 1px solid #eef1f6;
}
.ai-chat__input input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-family: var(--font-alt);
  font-size: 16px;
  color: #0f1b2d;
  background: transparent;
}
.ai-chat__input input::placeholder {
  color: #757575;
}
.ai-chat__input button {
  height: 48px;
  padding: 0 24px;
  border-radius: 24px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-alt);
  font-weight: 600;
  font-size: 15px;
  transition: opacity 0.2s;
}
.ai-chat__input button:hover {
  opacity: 0.9;
}

/* ===== Footer ===== */
.site-footer {
  padding: 48px 4px 20px;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-alt);
  font-size: 16px;
}
.footer__brand,
.footer__title {
  font-weight: 600;
  color: #0f1b2d;
}
.footer__muted,
.footer__col a {
  color: #5b6678;
}
.footer__col a {
  transition: color 0.2s;
}
.footer__col a:hover {
  color: var(--blue-3);
}
.footer__phone {
  font-size: 24px;
  line-height: 1.3;
  color: #0f1b2d !important;
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--footer-line);
  font-family: var(--font-alt);
  font-size: 14px;
  color: #7a8597;
}
.footer__bottom a {
  color: #7a8597;
}
.footer__bottom a:hover {
  color: #0f1b2d;
}

._border {
  border: 1px solid #dbdfe5;
}

.bg-pill {
  background-color: rgba(65, 137, 255, 0.2);
  width: fit-content;
  height: 28px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  padding: 0 15px;
}

/* ===== Responsive ===== */
@media (max-width: 1180px) {
  .section-title {
    font-size: 46px;
    letter-spacing: -1.8px;
  }
  .products__grid {
    grid-template-columns: 1fr;
  }
  .products__sub {
    grid-column: 1;
    grid-row: auto;
  }
  .product-card--tall {
    grid-column: 1;
    grid-row: auto;
  }
  .product-card--wide {
    grid-column: 1;
    grid-row: auto;
  }
  .services__grid {
    grid-template-columns: 1fr;
  }
  .services__col {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
  }
  .services__grid > .services__col > * {
    grid-column: auto;
    grid-row: auto;
  }
  .service-card--tall {
    min-height: 0;
  }
  .service-card__media--phone {
    min-height: auto;
  }
  .service-card__media--phone .phone {
    position: static;
    transform: none;
    height: auto;
    max-height: 480px;
    width: auto;
  }
  .cases__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact__card {
    padding: 40px;
    grid-template-columns: 1fr 1fr;
  }
  .ai-chat {
    width: auto;
  }
  .contact__title {
    font-size: 40px;
  }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }
  .burger {
    display: flex;
  }
  .header__actions {
    margin-left: 0;
  }
  .header__phone {
    display: none;
  }
  .header__inner .btn {
    display: none;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 24px 28px;
    gap: 18px;
    box-shadow: 0 20px 40px rgba(16, 16, 19, 0.1);
  }
  .main-nav.open a {
    font-size: 18px;
    color: var(--ink-2);
  }

  .section-head {
    flex-direction: column;
    gap: 20px;
  }
  .section-head__text {
    padding-top: 0;
  }
  .section-title {
    font-size: 38px;
    letter-spacing: -1.4px;
  }

  .hero {
    padding: 20px 0 48px;
  }
  .bg-video {
    position: static;
    width: 100%;
    height: auto;
    margin-top: -100%;
    transform: none;
  }
  .solutions {
    margin-top: 0;
  }
  .hero__title {
    font-size: 40px;
    letter-spacing: -2px;
    max-width: none;
  }

  .solutions__grid {
    grid-template-columns: 1fr;
  }
  .products__sub,
  .services__sub,
  .articles__sub {
    grid-template-columns: 1fr;
  }

  .product-card--wide {
    grid-template-columns: 1fr;
  }
  .service-card--wide {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .service-card__media--phone .phone {
    max-height: 480px;
  }
  .phone-card--rating {
    top: 40px;
    right: 20px;
  }
  .phone-card--order {
    left: 10px;
    bottom: 40px;
  }

  .articles__grid {
    grid-template-columns: 1fr;
  }
  .article-card--big {
    grid-column: 1;
    grid-row: auto;
  }
  .article-card--row {
    grid-column: 1;
    grid-row: auto;
  }
  .articles__sub {
    grid-column: 1;
  }

  .contact {
    padding: 40px 0 24px;
  }
  .contact__card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 32px;
  }
  .contact__title {
    font-size: 32px;
  }
  .contact__text {
    margin-bottom: 32px;
  }
  .contact__actions {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 32px;
  }
  .contact__note {
    max-width: none;
  }
  .contact__messengers {
    flex-wrap: wrap;
  }
  .contact__contacts {
    margin-left: 0;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }
  .hero__title {
    font-size: 32px;
  }
  .section-title {
    font-size: 30px;
  }
  .section-cta .btn {
    width: 100%;
  }

  .services__col:first-child > :nth-child(1) {
    display: block;
    height: auto;
    overflow: visible;
  }
  .service-card--tall .service-card__body {
    width: auto;
  }
  .service-card--tablets .service-card__media {
    padding: 10px;
    overflow: hidden;
  }
  .service-card--tablets .service-card__media img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
  }

  .ai-chat__input button {
    flex: none;
    padding: 0 18px;
  }

  .product-card__title,
  .product-card--sm .product-card__title {
    font-size: 24px;
    margin-bottom: 14px;
  }
  .product-card__body {
    padding: 22px 20px 0;
  }
  .service-card__title {
    font-size: 22px;
  }
  .cases__grid {
    grid-template-columns: 1fr;
  }
  .case-card__media {
    height: 200px;
  }

  .article-card--row {
    flex-direction: column;
    gap: 16px;
  }
  .article-card--row .article-card__media {
    width: 100%;
    height: 200px;
  }
  .article-card--row .article-card__body {
    padding: 0 4px 4px;
  }
  .article-card__title {
    font-size: 24px;
  }
  .article-card--row .article-card__title {
    font-size: 22px;
  }

  .contact__title {
    font-size: 26px;
  }
  .contact__contacts a {
    font-size: 20px;
  }
  .messenger {
    width: 60px;
    height: 60px;
  }
  .ai-chat__body,
  .ai-chat__header,
  .ai-chat__input {
    padding-left: 18px;
    padding-right: 18px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
