:root {
  --bg: #eeedec;
  --ink: #24262b;
  --blue: #1352f1;
  --line: #d0d0cc;
  --dark: #24262b;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site {
  width: 100%;
  max-width: 1440px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg);
  padding-bottom: 35px;
}

.retro-banner {
  position: relative;
  z-index: 20;
  width: 100%;
  min-height: 35px;
  background: #008080;
  color: #fff;
}

.retro-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(1204px, calc(100% - 40px));
  min-height: 35px;
  margin-inline: auto;
  padding-block: 8px;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.retro-banner__inner img {
  display: block;
  width: 14px;
  height: 19px;
  object-fit: contain;
}

.retro-banner__inner a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.header,
.hero,
.section,
.footer {
  width: 1204px;
  margin-inline: auto;
}

.header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 58px;
  padding-top: 24px;
}

.header img {
  width: 95px;
  height: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 32px;
  font-size: 18px;
  font-weight: 500;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: block;
  height: 830px;
  padding: 0;
}

.hero h1 {
  position: absolute;
  left: 0;
  top: 57px;
  width: 745px;
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 50px;
  letter-spacing: 0;
}

.hero h1 span {
  color: var(--blue);
}

.hero-image {
  position: absolute;
  left: 512px;
  top: 170px;
  width: 590px;
  height: 333px;
  object-fit: cover;
  border-radius: 16px;
}

.hero-contacts {
  position: absolute;
  left: 0;
  top: 554px;
  display: grid;
  gap: 16px;
  align-self: start;
  margin-top: 0;
  font-size: 16px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-note {
  position: absolute;
  left: 308px;
  top: 554px;
  width: 585px;
  margin: 0;
  padding-left: 20px;
  border-left: 1px solid #bdbdb8;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}

.hero-button {
  position: absolute;
  right: 0;
  top: 554px;
  width: 199px;
  height: 56px;
  margin-top: 0;
  border: 0;
  border-radius: 16px;
  background: var(--dark);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}

.projects .section-title {
  margin-bottom: 80px;
}

.projects {
  padding-bottom: 220px;
}

.section {
  padding-block: 0;
}

.section-title {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;
}

.section-title h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 26px;
}

.section-title span {
  height: 1px;
  background: var(--line);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card img {
  display: block;
  width: 100%;
  height: 518px;
  border-radius: 16px;
  object-fit: cover;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 20px;
  font-weight: 700;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 16px;
}

.tags span {
  height: 28px;
  padding: 0 10px 4px;
  border-radius: 16px;
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}

.cta-strip {
  display: flex;
  justify-content: center;
  height: auto;
  margin-top: 80px;
  padding: 0;
  background: transparent;
}

.cta-strip b {
  display: none;
}

.cta-strip button {
  width: 388px;
  height: 56px;
  border: 0;
  border-radius: 16px;
  background: var(--dark);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}

.services {
  padding-bottom: 220px;
}

.services-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 260px;
  padding: 20px;
  border-radius: 16px;
  background: var(--card);
}

.service-card:nth-of-type(1) {
  grid-column: 1 / span 7;
  grid-row: 1;
}

.service-card:nth-of-type(2) {
  grid-column: 8 / span 5;
  grid-row: 1;
}

.service-card:nth-of-type(3) {
  grid-column: 1 / span 6;
  grid-row: 2;
}

.service-card:nth-of-type(4) {
  grid-column: 7 / span 6;
  grid-row: 2;
}

.service-card:nth-of-type(5) {
  grid-column: 1 / span 5;
  grid-row: 3;
}

.service-card:nth-of-type(6) {
  grid-column: 6 / span 5;
  grid-row: 3;
}

.service-card h3 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.service-card p {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 26px;
}

.service-work p {
  font-weight: 500;
}

.side-cta {
  grid-column: 11 / 13;
  grid-row: 3;
  width: 100%;
  height: 183px;
  align-self: start;
  padding: 20px;
  border: 0;
  border-radius: 16px;
  background: var(--dark);
  color: #fff;
  text-align: left;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.side-cta span,
.footer-cta span {
  display: block;
  text-align: right;
  margin-bottom: 54px;
}

.services-grid > .blue-dot {
  grid-column: 11 / 13;
  grid-row: 3;
  align-self: end;
  justify-self: start;
}

.blue-dot {
  width: 64px;
  height: 64px;
  align-self: end;
  border-radius: 50%;
  background: var(--blue);
}

.faq {
  padding-bottom: 220px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 388px 796px;
  gap: 20px;
  align-items: end;
}

.question-card {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  width: 304px;
  min-height: 168px;
  padding: 20px;
  border-radius: 16px;
  background: #d8e2ff;
}

.question-card b {
  display: block;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 500;
  line-height: 26px;
}

.question-card button {
  height: 56px;
  padding-inline: 24px;
  border: 0;
  border-radius: 16px;
  background: var(--dark);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}

.small {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  margin-left: -64px;
  justify-self: end;
}

.accordion {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  gap: 10px;
}

details {
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
}

summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  padding: 0 20px;
  font-size: 20px;
  font-weight: 700;
  list-style: none;
}

summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 28px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.32s ease;
}

details.is-expanded summary::after {
  transform: rotate(45deg);
}

details p {
  margin: -4px 0 0;
  padding: 0 20px 20px;
  font-size: 20px;
  font-weight: 400;
  line-height: 26px;
}

details.is-animating {
  overflow: hidden;
}

.footer {
  position: relative;
  display: block;
  min-height: 591px;
  padding-bottom: 0;
}

.footer-nav {
  display: grid;
  align-content: start;
  gap: 32px;
  font-size: 18px;
  font-weight: 500;
}

.footer-mark {
  position: absolute;
  left: 184px;
  top: 61px;
  bottom: auto;
  width: 530px;
  height: auto;
}

.footer-cta {
  position: absolute;
  top: 0;
  left: 714px;
  z-index: 2;
  width: 489px;
  height: 183px;
  padding: 20px;
  border: 0;
  border-radius: 16px;
  background: var(--dark);
  color: #fff;
  text-align: left;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.footer-cta span {
  margin-bottom: 91px;
}

.footer-contacts {
  position: absolute;
  left: 716px;
  top: 376px;
  z-index: 2;
  display: grid;
  gap: 20px;
  width: 487px;
  margin: 0;
  font-style: normal;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
}

.footer-contacts a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.modal {
  width: min(791px, calc(100vw - 40px));
  max-width: calc(100vw - 40px);
  max-height: calc(100dvh - 40px);
  margin: auto;
  border: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: transparent;
}

.modal::backdrop {
  background: rgba(238, 237, 236, 0.8);
  backdrop-filter: blur(20px);
}

.modal-card {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.modal-card h2 {
  grid-column: 1;
  min-width: 0;
  margin: 0 0 70px;
  color: #040a1a;
  font-size: 48px;
  font-weight: 700;
  line-height: 50px;
}

.modal-card p {
  grid-column: 2;
  min-width: 0;
  align-self: start;
  margin: 0 0 70px;
  color: #040a1a;
  font-size: 16px;
  font-weight: 600;
  line-height: 18px;
}

.modal-card input:not([type="checkbox"]),
.modal-card textarea {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  min-height: 62px;
  padding: 16px 20px;
  border: 0;
  border-radius: 16px;
  outline: 0;
  background: #fff;
  color: rgba(4, 10, 26, 0.5);
  font-size: 26px;
  font-weight: 700;
}

.modal-card textarea {
  grid-column: 1 / -1;
  min-height: 220px;
  resize: none;
}

.close {
  position: absolute;
  right: 0;
  top: -44px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 28px;
}

.modal-submit {
  grid-column: 1 / -1;
  min-height: 64px;
  border: 0;
  border-radius: 16px;
  background: var(--dark);
  color: #fff;
  text-align: left;
  padding-inline: 20px;
  font-size: 26px;
  font-weight: 700;
}

.modal-submit:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.modal-consent {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 20px;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.modal-consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}

.modal-consent a,
.cookie-banner a {
  color: var(--blue);
  text-underline-offset: 3px;
}

.modal-policy {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0 10px;
  color: rgba(4, 10, 26, 0.5);
  font-size: 16px;
  font-weight: 500;
  line-height: 18px;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: min(564px, calc(100vw - 40px));
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease,
    transform 0.28s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-banner p,
.cookie-banner strong {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
}

.cookie-banner button {
  min-height: 44px;
  padding: 10px 24px 12px;
  border: 0;
  border-radius: 16px;
  background: var(--dark);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: normal;
}

@media (max-width: 900px) {
  body {
    overflow-x: hidden;
  }

  .site {
    max-width: none;
    overflow: hidden;
    padding-bottom: 0;
  }

  .header,
  .hero,
  .section,
  .footer {
    width: 320px;
  }

  .retro-banner__inner {
    gap: 6px;
    width: calc(100% - 24px);
    min-height: 44px;
    padding-block: 7px;
    font-size: 12px;
    text-align: center;
  }

  .retro-banner__inner img {
    width: 11px;
    height: 16px;
  }

  .header {
    position: relative;
    height: 58px;
    padding-top: 24px;
  }

  .header img {
    width: 95px;
  }

  .nav {
    position: absolute;
    top: 64px;
    right: 0;
    z-index: 10;
    display: grid;
    width: 188px;
    gap: 14px;
    padding: 18px;
    border-radius: 10px;
    background: #fbfbfa;
    box-shadow: 0 18px 42px rgba(32, 34, 43, 0.14);
    font-size: 14px;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu-toggle {
    display: grid;
    align-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
  }

  .hero {
    position: static;
    display: block;
    height: auto;
    padding-top: 60px;
    padding-bottom: 150px;
  }

  .hero h1 {
    position: static;
    width: auto;
    font-size: 28px;
    line-height: 30px;
    font-weight: 700;
  }

  .hero-image {
    position: static;
    width: 100%;
    height: 181px;
    margin-top: 23px;
    border-radius: 16px;
  }

  .hero-contacts {
    position: static;
    margin-top: 60px;
    font-size: 16px;
    gap: 16px;
  }

  .hero-note {
    position: static;
    width: auto;
    margin-top: 13px;
    padding-left: 0;
    border-left: 0;
    font-size: 13px;
    line-height: 1.35;
  }

  .hero-button {
    position: static;
    width: 100%;
    height: 56px;
    margin-top: 18px;
    border-radius: 16px;
    font-size: 18px;
  }

  .section {
    padding-bottom: 150px;
  }

  .projects {
    padding-bottom: 150px;
  }

  .section-title {
    gap: 40px;
    margin-bottom: 60px;
  }

  .section-title h2 {
    font-size: 24px;
    line-height: 26px;
  }

  .project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 100px;
  }

  .project-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 388 / 517;
    border-radius: 16px;
  }

  .project-card:nth-child(2) img {
    width: 100%;
    height: auto;
  }

  .project-card:nth-child(3) img {
    width: 100%;
    height: auto;
  }

  .project-meta {
    width: 100%;
    margin-top: 16px;
    font-size: 20px;
  }

  .tags {
    width: 100%;
    gap: 4px;
    margin-top: 16px;
  }

  .tags span {
    height: 28px;
    padding: 0 10px 4px;
    font-size: 18px;
  }

  .cta-strip {
    display: block;
    height: auto;
    margin-top: 60px;
    padding: 0;
    background: transparent;
  }

  .cta-strip b {
    display: none;
  }

  .cta-strip button {
    width: 100%;
    height: 56px;
    background: var(--dark);
    color: #fff;
    border-radius: 16px;
    font-size: 18px;
  }

  .services {
    padding-bottom: 150px;
  }

  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    position: relative;
  }

  .service-wide {
    grid-column: auto;
  }

  .service-card:nth-of-type(n),
  .side-cta,
  .services-grid > .blue-dot {
    grid-column: auto;
    grid-row: auto;
  }

  .service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    min-height: 240px;
    padding: 20px;
    border-radius: 16px;
  }

  .service-card h3 {
    font-size: 20px;
    line-height: 1;
  }

  .service-card p {
    margin-top: 0;
    font-size: 16px;
    line-height: 26px;
  }

  .side-cta {
    grid-column: auto;
    grid-row: auto;
    width: 243px;
    height: 183px;
    margin-top: 0;
    padding: 20px;
    border-radius: 16px;
    font-size: 18px;
  }

  .side-cta span {
    margin-bottom: 64px;
  }

  .blue-dot {
    position: static;
    width: 67px;
    height: 67px;
  }

  .services-grid > .blue-dot {
    position: absolute;
    right: 0;
    bottom: 0;
  }

  .faq-layout {
    grid-template-columns: 1fr 64px;
    gap: 20px;
    align-items: end;
    min-height: 0;
  }

  .faq {
    padding-bottom: 150px;
  }

  .question-card {
    grid-column: 1 / 2;
    grid-row: 2;
    width: auto;
    min-height: 168px;
    padding: 20px;
    border-radius: 16px;
  }

  .question-card b {
    font-size: 18px;
    line-height: 26px;
    margin-bottom: 20px;
  }

  .question-card button {
    height: 54px;
    padding-inline: 26px;
    border-radius: 16px;
    font-size: 18px;
  }

  .small {
    grid-column: 2;
    grid-row: 2;
    position: static;
    width: 64px;
    height: 64px;
    margin-left: 0;
    justify-self: auto;
  }

  .accordion {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 20px;
  }

  summary {
    min-height: 64px;
    padding-inline: 20px;
    font-size: 20px;
  }

  summary::after {
    font-size: 18px;
  }

  details p {
    padding: 0 20px 18px;
    font-size: 16px;
    line-height: 18px;
  }

  .footer {
    display: flex;
    position: relative;
    flex-direction: column;
    min-height: 0;
    padding-bottom: 60px;
  }

  .footer-nav {
    position: static;
    gap: 18px;
    margin-bottom: 44px;
    font-size: 18px;
  }

  .footer-mark {
    position: static;
    left: auto;
    top: auto;
    bottom: auto;
    display: block;
    width: 320px;
    margin: 0;
  }

  .footer-cta {
    position: static;
    left: auto;
    top: auto;
    right: auto;
    width: 100%;
    height: 183px;
    margin-top: 20px;
    padding: 20px;
    border-radius: 16px;
    font-size: 26px;
  }

  .footer-cta span {
    margin-bottom: 36px;
  }

  .footer-contacts {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    margin: 60px 0 0;
    gap: 20px;
    font-size: 16px;
  }

  .modal {
    width: min(320px, calc(100vw - 40px));
    max-width: calc(100vw - 40px);
    max-height: calc(100dvh - 32px);
  }

  .modal-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .modal-card h2 {
    grid-column: 1;
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 30px;
  }

  .modal-card p {
    grid-column: 1;
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 400;
    line-height: 18px;
  }

  .modal-card input:not([type="checkbox"]),
  .modal-card textarea {
    grid-column: 1;
    min-width: 0;
    font-size: 20px;
  }

  .modal-card textarea {
    min-height: 220px;
  }

  .modal-submit {
    grid-column: 1;
    min-width: 0;
    font-size: 26px;
  }

  .modal-consent {
    grid-template-columns: 22px 1fr;
    padding: 14px 16px;
    font-size: 12px;
  }

  .modal-policy {
    grid-column: 1;
    margin: 0;
    font-size: 14px;
  }

  .cookie-banner {
    left: 50%;
    bottom: 12px;
    width: min(320px, calc(100vw - 24px));
    padding: 16px;
    transform: translate(-50%, 18px);
  }

  .cookie-banner.is-visible {
    transform: translate(-50%, 0);
  }

  .cookie-banner p,
  .cookie-banner strong {
    font-size: 12px;
  }

  .cookie-banner button {
    min-height: 42px;
    font-size: 16px;
  }
}
