@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Roboto:wght@400;500;600;700&display=swap");

:root {
  --navy: #091d30;
  --navy-deep: #061524;
  --blue: #2248c9;
  --text: #3f4c5d;
  --muted: #586779;
  --line: #dfe6ef;
  --surface: #f3f6fb;
  --display-font: "Libre Baskerville", Georgia, serif;
  --body-font: Roboto, Arial, sans-serif;
  --content-width: 75rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-space: clamp(3.8rem, 8vw, 7rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 1rem/1.7 var(--body-font);
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
figure, h1, h2, h3, p { margin: 0; }

h1, h2, h3 {
  color: var(--navy);
  font-family: var(--display-font);
  font-weight: 400;
  line-height: 1.22;
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid #5080ef;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 5;
  inset: .75rem auto auto .75rem;
  transform: translateY(-200%);
  padding: .65rem 1rem;
  background: #fff;
  color: var(--navy);
}

.skip-link:focus { transform: translateY(0); }

.container,
.identity-header__inner,
.identity-hero__inner,
.one-page-footer__inner {
  width: min(var(--content-width), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.identity-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  color: #fff;
}

.identity-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.75rem;
  border-bottom: 1px solid rgb(255 255 255 / 22%);
  color: #dce6f4;
  font-size: .875rem;
}

.identity-header a,
.identity-brand,
.one-page-footer__brand {
  text-decoration: none;
}

.identity-header__bar a:hover,
.identity-header__phone:hover { text-decoration: underline; }

.identity-header__inner {
  display: flex;
  min-height: 5.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  border-bottom: 1px solid rgb(255 255 255 / 22%);
}

.identity-brand {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  color: #fff;
}

.identity-brand__mark {
  display: grid;
  grid-template-columns: 1.25rem .35rem;
  grid-template-rows: 1.2rem 1.2rem;
  align-items: center;
  font: 1.65rem/.85 Georgia, serif;
}

.identity-dot {
  width: .3rem;
  height: .3rem;
  align-self: end;
  margin-bottom: .14rem;
  border-radius: 50%;
}

.identity-dot--green { background: #76c4a5; }
.identity-dot--navy { background: #a0bcff; }

.identity-brand__wordmark {
  display: grid;
  gap: .25rem;
  padding-left: .9rem;
  border-left: 1px solid rgb(255 255 255 / 32%);
  letter-spacing: .06em;
  line-height: 1.2;
}

.identity-brand__wordmark strong { font-size: .95rem; }

.identity-brand__wordmark small {
  color: #dce6f4;
  font-size: .75rem;
  text-transform: uppercase;
}

.identity-header__phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .25rem 1.25rem;
  margin-inline-start: auto;
}

.identity-header__phone { white-space: nowrap; }

.identity-header__contact,
.identity-button,
.contact-form-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.125rem;
  padding: .65rem 1.3rem;
  border: 1px solid transparent;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.35;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.identity-header__contact,
.identity-button--secondary {
  border-color: rgb(255 255 255 / 58%);
  color: #fff;
}

.identity-header__contact:hover,
.identity-button--secondary:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 13%);
}

.identity-hero {
  display: grid;
  align-items: center;
  min-height: clamp(39rem, 51vw, 49rem);
  padding: 11rem 0 4rem;
  background: var(--navy-deep);
  background-image:
    linear-gradient(90deg, rgb(6 21 36 / 96%) 0%, rgb(6 21 36 / 82%) 33%, rgb(6 21 36 / 23%) 69%),
    linear-gradient(180deg, rgb(6 21 36 / 57%), transparent 40%, rgb(6 21 36 / 20%)),
    url("./images/kancelaria-hero.webp");
  background-position: center, center, right center;
  background-size: cover;
  color: #fff;
}

.identity-hero__content { max-width: 43rem; }

.identity-eyebrow {
  margin-bottom: 1rem;
  color: #bad2ff;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.identity-hero h1 {
  font-size: clamp(2.5rem, 4.8vw, 4.75rem);
  letter-spacing: -.055em;
  color: #fff;
}

.identity-hero h1 em { font-style: normal; }

.identity-hero__lead {
  max-width: 35rem;
  margin-top: 1.5rem;
  color: #e0e8f5;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}

.identity-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}

.identity-button--primary {
  background: #fff;
  color: #1c389a;
}

.identity-button--primary:hover {
  border-color: #bdd1ff;
  background: #bdd1ff;
  color: var(--navy-deep);
}

.identity-hero__signature {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .35rem .6rem;
  margin-top: 2rem;
  color: #dce6f4;
  font-size: .875rem;
}

.identity-hero__signature strong { color: #fff; }

.section-shortcuts { background: #112a47; }

.section-shortcuts__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-shortcuts a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .75rem;
  min-height: clamp(5.75rem, 11vw, 8.25rem);
  padding: 1rem clamp(.7rem, 2.35vw, 2.25rem);
  border-inline-start: 1px solid rgb(255 255 255 / 18%);
  color: #fff;
  font: clamp(.9rem, 1.8vw, 1.45rem)/1.25 var(--display-font);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color 160ms ease;
}

.section-shortcuts a:last-child { border-inline-end: 1px solid rgb(255 255 255 / 18%); }

.section-shortcuts a::after {
  content: "";
  width: 1.75rem;
  border-bottom: 2px solid #8faef5;
}

.section-shortcuts a:hover,
.section-shortcuts a:focus-visible { background: #203f64; }

.one-page-section {
  padding-block: var(--section-space);
  scroll-margin-top: 1rem;
}

.one-page-section__heading {
  width: min(var(--content-width), calc(100% - 2 * var(--gutter)));
  margin: 0 auto clamp(1.75rem, 4vw, 3.15rem);
}

.one-page-section__heading h2::before {
  content: "";
  display: block;
  width: 2.5rem;
  margin: 0 auto .95rem;
  border-bottom: 2px solid var(--blue);
}

.one-page-section__heading h2 {
  font-size: clamp(1.85rem, 4vw, 3rem);
  letter-spacing: -.045em;
  text-align: center;
}

.identity-office__article {
  display: flow-root;
  max-width: 66rem;
  margin-inline: auto;
}

.identity-office__portrait {
  float: right;
  width: 36%;
  margin: .3rem 0 1.7rem clamp(1.75rem, 4vw, 3.5rem);
  background: var(--surface);
}

.identity-office__image-frame { border-top: 4px solid var(--blue); }

.identity-office__image-frame img {
  width: 100%;
  height: auto;
}

.identity-office__copy p + p,
.one-page-remuneration__content p + p { margin-top: 1rem; }

.one-page-section--uslugi { background: var(--surface); }
.one-page-section--uslugi .one-page-section__heading { margin-bottom: .9rem; }

.identity-services__intro {
  margin-bottom: 2rem;
  text-align: center;
  color: var(--muted);
}

.identity-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.identity-service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: clamp(1rem, 2.3vw, 1.8rem);
  background: #fff;
  text-align: center;
}

.identity-service-card h3 { font-size: 1.125rem; }

.identity-service-card__icon,
.identity-contact__icon {
  display: grid;
  flex: none;
  place-items: center;
}

.identity-service-card__icon {
  width: 3.1rem;
  height: 3.1rem;
  color: var(--blue);
}

.identity-service-card__icon svg,
.identity-contact__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.one-page-remuneration__card {
  display: grid;
  grid-template-columns: minmax(10rem, .55fr) minmax(0, 1.45fr);
  max-width: 66rem;
  margin-inline: auto;
  overflow: hidden;
  background: var(--surface);
}

.one-page-remuneration__image {
  position: relative;
  min-height: 12rem;
  background: var(--navy);
}

.one-page-remuneration__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 60%;
}

.one-page-remuneration__content { padding: clamp(1.4rem, 4vw, 3rem); }

.one-page-remuneration__content ul {
  margin-block: .75rem 1rem;
  padding-inline-start: 1.4rem;
}

.one-page-remuneration__content li + li { margin-top: .35rem; }

.one-page-section--kontakt {
  background: linear-gradient(112deg, var(--navy-deep), #153564);
  color: #e1eafa;
}

.one-page-section--kontakt h2,
.one-page-section--kontakt h3 { color: #fff; }
.one-page-section--kontakt h2::before { border-color: #8faef5; }

.identity-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.identity-contact__intro {
  margin-bottom: 1.25rem;
  color: #fff;
  font: clamp(1.25rem, 2vw, 1.65rem)/1.45 var(--display-font);
}

.identity-contact__item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1rem 0;
  border-top: 1px solid rgb(255 255 255 / 20%);
}

.identity-contact__icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: .6rem;
  border: 1px solid rgb(190 214 255 / 40%);
  color: #bfd5ff;
}

.identity-contact__label {
  display: block;
  margin-bottom: .25rem;
  color: #c4d6f8;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.identity-contact__item a {
  overflow-wrap: anywhere;
  text-underline-offset: .2em;
}

.identity-contact__form { scroll-margin-top: 1rem; }
.identity-contact__form h3 { margin-bottom: 1.25rem; font-size: clamp(1.35rem, 2.5vw, 1.85rem); }

.contact-form-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-form-form label {
  display: grid;
  align-content: start;
  gap: .35rem;
  color: #e1eafa;
  font-size: .875rem;
}

.contact-form-form label:first-child,
.contact-form-form label:last-of-type { grid-column: 1 / -1; }

.contact-form-form input,
.contact-form-form textarea {
  width: 100%;
  min-width: 0;
  padding: .65rem .75rem;
  border: 1px solid rgb(218 233 255 / 46%);
  border-radius: 0;
  background: rgb(255 255 255 / 7%);
  color: #fff;
  font-size: 1rem;
}

.contact-form-form textarea { resize: vertical; }

.contact-form-form input::placeholder,
.contact-form-form textarea::placeholder { color: #c0cfeb; }

.contact-form-form button {
  grid-column: 1 / -1;
  justify-self: start;
  background: #fff;
  color: #1c389a;
  cursor: pointer;
}

.contact-form-form button:hover { background: #bdd1ff; }

.identity-contact__map {
  margin-top: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgb(218 233 255 / 35%);
  background: #e3e9f1;
}

.identity-contact__map iframe {
  display: block;
  width: 100%;
  height: clamp(16rem, 35vw, 24rem);
  border: 0;
}

.one-page-footer {
  padding-block: 1.6rem;
  background: var(--navy-deep);
  color: #d6e3f6;
  font-size: .875rem;
}

.one-page-footer__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.one-page-footer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1rem;
}

.one-page-footer__contacts a { white-space: nowrap; }

.one-page-footer__brand {
  flex: none;
  padding-right: 1rem;
  border-right: 1px solid rgb(218 233 255 / 40%);
  color: #fff;
  font: 1.4rem/1.2 var(--display-font);
}

@media (max-width: 56rem) {
  .identity-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 42rem) {
  .identity-header__bar { display: none; }

  .identity-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .45rem .75rem;
    padding-block: .85rem;
  }

  .identity-brand { grid-column: 1 / -1; justify-self: start; }

  .identity-header__phones {
    justify-content: flex-start;
    gap: .15rem 1rem;
    margin-inline-start: 0;
  }

  .identity-header__phone { display: block; padding-block: .15rem; }

  .identity-hero {
    min-height: 37rem;
    padding: 10rem 0 3.2rem;
    background-position: center, 78% center;
    background-image:
      linear-gradient(90deg, rgb(6 21 36 / 97%), rgb(6 21 36 / 64%)),
      url("./images/kancelaria-hero.webp");
  }

  .identity-hero__content { max-width: 32rem; }

  .identity-hero__signature { display: none; }

  .one-page-footer__inner { gap: .75rem; }
  .one-page-footer__brand { padding-right: .75rem; }
  .one-page-footer__contacts { display: none; }

  .identity-office__portrait {
    float: none;
    width: min(100%, 22rem);
    margin: 0 auto 2rem;
  }

  .identity-contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 31rem) {
  .identity-header__inner { gap: .5rem; }
  .identity-brand { gap: .45rem; }
  .identity-brand__wordmark { padding-left: .5rem; }
  .identity-brand__wordmark strong { font-size: .875rem; }
  .identity-header__contact { min-height: 2.6rem; padding-inline: .65rem; font-size: .75rem; }
  .identity-hero h1 { font-size: clamp(2.05rem, 9vw, 2.7rem); }
  .section-shortcuts__inner {
    width: 100%;
    grid-template-columns: 1fr .8fr 1.35fr;
  }

  .section-shortcuts a { padding-inline: .65rem; }
  .section-shortcuts a:first-child { border-inline-start: 0; }
  .section-shortcuts a:last-child { border-inline-end: 0; }

  .one-page-remuneration__card,
  .contact-form-form { grid-template-columns: 1fr; }

  .one-page-remuneration__image {
    min-height: 0;
    aspect-ratio: 1.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
