:root {
  --blue: #194893;
  --blue-dark: #15478f;
  --blue-top: #17346d;
  --yellow: #fda805;
  --yellow-hover: #ffaf16;
  --red: #b43e38;
  --text: #222;
  --muted: #666f7d;
  --line: #e4e8ef;
  --white: #fff;
  --soft: #f7f8fb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.is-lightbox-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.container {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
}

.section-blue {
  color: var(--white);
  background-color: var(--blue);
  background-image: linear-gradient(90deg, #173b7d, #2458aa);
}

.site-header {
  color: var(--white);
  background: var(--blue-top);
}

.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-block;
  gap: 3px;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
}

.brand__name {
  display: block;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 31px;
  font-weight: 800;
  line-height: .95;
}

.brand__sub {
  display: block;
  margin-top: 5px;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.header-contact {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.header-contact__phone {
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.header-contact__mail {
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
}

.hero {
  min-height: 560px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 342px;
  align-items: center;
  gap: 64px;
  padding: 44px 0 48px;
}

.hero-copy h1 {
  max-width: 530px;
  margin: 0 0 24px;
  color: var(--yellow);
  font-size: 33px;
  font-weight: 800;
  line-height: 1.16;
  text-transform: uppercase;
}

.hero-copy p {
  max-width: 510px;
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 400;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 22px;
  border: 0;
  border-radius: 4px;
  color: var(--white);
  background: var(--yellow);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.button:hover {
  background: var(--yellow-hover);
}

.certificate {
  margin: 0;
  padding: 16px;
  background: var(--white);
}

.certificate img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.request {
  padding: 58px 0 66px;
  background: var(--white);
}

.request-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 408px;
  align-items: center;
  gap: 52px;
}

.offer {
  position: relative;
  min-height: 250px;
  padding: 14px 0 0 10px;
}

.offer::after {
  content: "";
  position: absolute;
  top: 18px;
  right: -12px;
  width: 245px;
  height: 150px;
  background: url("data:image/svg+xml,%3Csvg width='245' height='150' viewBox='0 0 245 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10C92 31 162 63 197 133' fill='none' stroke='%23345a96' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M197 133l-28-10M197 133l7-28' fill='none' stroke='%23345a96' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .85;
}

.offer::before {
  content: none;
}

.offer h2 {
  max-width: 330px;
  margin: 0 0 30px;
  color: var(--red);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.12;
  text-transform: uppercase;
}

.offer p {
  max-width: 430px;
  margin: 0 0 30px;
  color: #616976;
  font-size: 18px;
}

.timer {
  display: flex;
  gap: 10px;
}

.timer div {
  width: 72px;
  text-align: center;
}

.timer strong {
  display: block;
  padding: 6px 0;
  border-radius: 4px;
  color: #202020;
  background: linear-gradient(#ffe87c, #eebc32);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .16);
  font-size: 32px;
  line-height: 1;
}

.timer span {
  display: block;
  margin-top: 4px;
  color: #767676;
  font-size: 11px;
}

.lead-form {
  padding: 30px 28px;
  color: var(--white);
  background: var(--blue-top);
}

.lead-form h2 {
  margin: 0;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.lead-form p {
  margin: 3px 0 20px;
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
  text-align: center;
}

.lead-form label {
  display: block;
  margin-top: 10px;
}

.lead-form label > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-form input {
  width: 100%;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 8px 12px;
  color: #333;
  background: var(--white);
  font: inherit;
  font-size: 14px;
}

.lead-form input:focus {
  border-color: var(--yellow);
  outline: 2px solid rgba(253, 168, 5, .22);
}

.lead-form__consent {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  line-height: 1.35;
}

.lead-form__consent input {
  width: auto;
  height: auto;
  margin-top: 2px;
}

.lead-form__consent span {
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
}

.lead-form__consent a {
  color: var(--white);
}

.website-field {
  position: absolute;
  left: -9999px;
}

.lead-form__button {
  width: 100%;
  min-height: 44px;
  margin-top: 16px;
  font-size: 16px;
}

.form-status {
  min-height: 19px;
  margin-top: 10px;
  color: #dce9ff;
  font-size: 13px;
  text-align: center;
}

.services,
.works {
  padding: 58px 0 64px;
}

.section-title {
  margin: 0 0 34px;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

.section-title--light {
  color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 52px;
  max-width: 780px;
  margin: 0 auto;
}

.services-grid div {
  position: relative;
  min-height: 28px;
  padding-left: 34px;
  font-size: 17px;
  font-weight: 700;
}

.services-grid div::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--white);
  background: #5f92ce;
  font-size: 14px;
}

.team {
  padding: 58px 0 66px;
  background: var(--white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  max-width: 840px;
  margin: 0 auto;
}

.person {
  text-align: center;
}

.person img {
  width: 118px;
  height: 142px;
  margin: 0 auto 14px;
  object-fit: cover;
}

.person h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
}

.person p {
  margin: 0;
  color: #555f70;
  font-size: 14px;
  line-height: 1.35;
}

.person a {
  color: #1d4d9a;
  text-decoration: none;
}

.person a:hover {
  text-decoration: underline;
}

.carousel {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 42px;
}

.carousel__viewport {
  overflow: hidden;
}

.carousel__track {
  display: flex;
  width: 100%;
  gap: 8px;
  transition: transform .25s ease;
  will-change: transform;
}

.work-card {
  flex: 0 0 calc((100% - 16px) / 3);
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, .08);
}

.work-card a {
  display: block;
  cursor: zoom-in;
}

.work-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.carousel__button {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 36px;
  height: 48px;
  border: 0;
  color: rgba(255, 255, 255, .8);
  background: transparent;
  font-size: 52px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.carousel__button:hover {
  color: var(--white);
}

.carousel__button--prev {
  left: 0;
}

.carousel__button--next {
  right: 0;
}

.contacts {
  padding: 58px 0 66px;
  background: var(--white);
}

.address {
  margin: 0 auto 30px;
  color: #404958;
  font-size: 18px;
  text-align: center;
}

.office-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 840px;
  margin: 0 auto 36px;
}

.office-carousel {
  position: relative;
  max-width: 840px;
  margin: 0 auto 36px;
}

.office-carousel__viewport {
  overflow: visible;
}

.office-carousel .office-gallery {
  margin-bottom: 0;
}

.office-carousel__button {
  display: none;
}

.office-gallery a {
  display: block;
  overflow: hidden;
}

.office-gallery img {
  width: 100%;
  aspect-ratio: 1.75 / 1;
  object-fit: cover;
  transition: transform .2s ease, opacity .2s ease;
}

.office-gallery a:hover img {
  opacity: .92;
  transform: scale(1.03);
}

.map-frame {
  max-width: 860px;
  height: 360px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
}

.map-frame iframe {
  display: block;
}

.footer {
  padding: 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 190px minmax(320px, 1fr) 44px max-content;
  align-items: center;
  gap: 28px;
}

.footer-note,
.footer-center p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .42);
  font-size: 13px;
}

.footer-center {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  text-align: center;
}

.footer-center a {
  color: rgba(255, 255, 255, .74);
}

.vk-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--white) !important;
  background: #507dab;
  font-weight: 800;
  text-decoration: none;
}

.footer-cta {
  display: grid;
  justify-items: stretch;
  gap: 6px;
  width: max-content;
  text-align: center;
}

.footer-cta p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
}

.footer-phone {
  display: block;
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.footer-cta .button {
  width: 100%;
  min-height: 42px;
  padding: 11px 14px;
  font-size: 14px;
}

.legal-page {
  background: var(--soft);
}

.legal-main {
  padding: 54px 0 72px;
}

.legal-card {
  max-width: 920px;
  margin: 0 auto;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.legal-card h1 {
  margin: 0 0 22px;
  color: var(--text);
  font-size: 34px;
  line-height: 1.2;
}

.legal-card h2 {
  margin: 26px 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.legal-card p,
.legal-card li {
  color: #475467;
}

.thanks-main {
  min-height: calc(100vh - 76px);
}

.thanks-hero {
  padding: 72px 0 78px;
}

.thanks-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 58px;
}

.thanks-copy h1 {
  max-width: 620px;
  margin: 0 0 18px;
  color: var(--yellow);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.12;
  text-transform: uppercase;
}

.thanks-copy p {
  max-width: 620px;
  margin: 0 0 18px;
  font-size: 18px;
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button--outline {
  border: 1px solid rgba(255, 255, 255, .65);
  color: var(--white);
  background: transparent;
}

.button--outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, .1);
}

.discount-panel {
  padding: 28px;
  color: var(--text);
  background: var(--white);
}

.discount-panel__label {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.discount-panel strong {
  display: block;
  color: var(--blue-dark);
  font-size: 72px;
  font-weight: 800;
  line-height: .95;
}

.discount-panel h2 {
  margin: 10px 0 12px;
  color: var(--blue-top);
  font-size: 25px;
  line-height: 1.15;
  text-transform: uppercase;
}

.discount-panel p {
  margin: 0 0 20px;
  color: #555f70;
  font-size: 15px;
}
.coupon-card {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.coupon-card img {
  width: 100%;
}

.coupon-download {
  width: 100%;
  min-height: 44px;
  margin-bottom: 20px;
  padding: 11px 14px;
  font-size: 14px;
}

.thanks-next {
  padding: 56px 0 62px;
  background: var(--white);
}

.thanks-next h2 {
  margin: 0 0 26px;
  color: var(--blue-top);
  font-size: 30px;
  font-weight: 800;
  text-align: center;
}

.thanks-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.thanks-steps li {
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  background: var(--soft);
}

.thanks-steps span {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 24px;
  font-weight: 800;
}

.thanks-steps h3 {
  margin: 0 0 8px;
  color: var(--blue-top);
  font-size: 18px;
}

.thanks-steps p {
  margin: 0;
  color: #555f70;
  font-size: 15px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 44px 72px;
  background: rgba(6, 14, 30, .88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__image {
  max-width: min(100%, 1100px);
  max-height: calc(100vh - 88px);
  object-fit: contain;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
}

.lightbox__close,
.lightbox__button {
  position: absolute;
  border: 0;
  color: var(--white);
  background: rgba(0, 0, 0, .22);
  cursor: pointer;
}

.lightbox__close {
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 34px;
  line-height: 1;
}

.lightbox__button {
  top: 50%;
  width: 54px;
  height: 76px;
  font-size: 58px;
  line-height: 1;
  transform: translateY(-50%);
}

.lightbox__button--prev {
  left: 18px;
}

.lightbox__button--next {
  right: 18px;
}

.lightbox__close:hover,
.lightbox__button:hover {
  background: rgba(0, 0, 0, .38);
}

.services h2,
.works h2,
.team h2 {
  margin: 0 0 34px;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

.services h2,
.works h2 {
  color: var(--white);
}

.services-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 64px;
  max-width: 840px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.services-list li {
  position: relative;
  min-height: 28px;
  padding-left: 34px;
  font-size: 17px;
  font-weight: 700;
}

.services-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #5f92ce;
}

.services-list li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  width: 7px;
  height: 11px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-legal {
  display: grid;
  justify-items: start;
  gap: 4px;
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
}

.footer-legal p {
  margin: 0;
  color: rgba(255, 255, 255, .56);
}

.footer-requisites {
  display: grid;
  gap: 5px;
  color: rgba(255, 255, 255, .66);
  font-size: 13px;
  line-height: 1.35;
}

.footer-requisites strong {
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  font-weight: 700;
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 7px;
}

.footer-legal a {
  color: rgba(255, 255, 255, .78);
}

@media (max-width: 860px) {
  .header-grid {
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    padding: 18px 0;
    text-align: center;
  }

  .header-contact {
    justify-items: center;
    text-align: center;
  }

  .hero-grid,
  .request-grid,
  .thanks-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero {
    min-height: 0;
  }

  .hero-grid {
    padding: 40px 0 48px;
  }

  .hero-copy,
  .hero-copy h1,
  .hero-copy p,
  .thanks-copy,
  .thanks-copy h1,
  .thanks-copy p,
  .offer h2,
  .offer p {
    max-width: none;
    text-align: center;
  }

  .thanks-actions {
    justify-content: center;
  }

  .discount-panel {
    width: min(380px, 100%);
    margin: 0 auto;
    text-align: center;
  }

  .thanks-steps {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .certificate {
    width: min(342px, 100%);
    margin: 0 auto;
  }

  .offer {
    min-height: 0;
    padding-left: 0;
  }

  .offer::before,
  .offer::after {
    display: none;
  }

  .timer {
    justify-content: center;
  }

  .lead-form {
    width: min(408px, 100%);
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .services-list {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 520px;
  }

  .work-card {
    flex-basis: calc((100% - 8px) / 2);
  }

  .carousel {
    max-width: 680px;
    padding: 0 40px;
  }

  .office-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-legal {
    justify-items: center;
    text-align: center;
  }

  .footer-requisites,
  .footer-legal__links {
    justify-content: center;
  }

  .footer-cta {
    justify-items: stretch;
    width: max-content;
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 24px, 960px);
  }

  .brand__name {
    font-size: 27px;
  }

  .header-contact__phone,
  .footer-phone {
    font-size: 22px;
  }

  .hero-copy h1 {
    font-size: 27px;
  }

  .thanks-copy h1 {
    font-size: 29px;
  }

  .hero-copy p,
  .offer p,
  .address {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .certificate img {
    max-height: 430px;
  }

  .request,
  .thanks-hero,
  .thanks-next,
  .services,
  .team,
  .works,
  .contacts {
    padding: 44px 0;
  }

  .lead-form {
    padding: 24px 18px;
  }

  .timer div {
    width: 64px;
  }

  .timer strong {
    font-size: 27px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .office-carousel {
    max-width: 390px;
    padding: 0 34px;
  }

  .office-carousel__viewport {
    overflow: hidden;
  }

  .office-gallery {
    display: flex;
    grid-template-columns: none;
    gap: 0;
    max-width: none;
    transition: transform .25s ease;
    will-change: transform;
  }

  .office-gallery a {
    flex: 0 0 100%;
  }

  .office-gallery img {
    aspect-ratio: 4 / 3;
  }

  .office-carousel__button {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: block;
    width: 28px;
    height: 52px;
    padding: 0;
    border: 0;
    color: var(--blue);
    background: transparent;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
  }

  .office-carousel__button:disabled {
    opacity: .28;
    cursor: default;
  }

  .office-carousel__button--prev {
    left: 0;
  }

  .office-carousel__button--next {
    right: 0;
  }

  .person img {
    width: 118px;
    height: 142px;
  }

  .carousel {
    max-width: 390px;
    padding: 0 32px;
  }

  .carousel__track {
    gap: 0;
  }

  .work-card {
    flex-basis: 100%;
  }

  .carousel__button {
    width: 28px;
    font-size: 42px;
  }

  .map-frame {
    height: 310px;
  }

  .legal-card {
    padding: 28px 18px;
  }

  .lightbox {
    padding: 56px 42px;
  }

  .lightbox__image {
    max-height: calc(100vh - 112px);
  }

  .lightbox__button {
    width: 34px;
    height: 58px;
    font-size: 42px;
  }

  .lightbox__button--prev {
    left: 4px;
  }

  .lightbox__button--next {
    right: 4px;
  }
}
