/*
Breakpoints
xs: 0,
sm: 576px,
md: 768px,
lg: 992px,
xl: 1200px,
xxl: 1400px

Containers
sm: 540px,
md: 720px,
lg: 960px,
xl: 1140px,
xxl: 1320px
*/

@layer reset, site, common, page;

@layer reset {
  /*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */
  /*
Document
========
*/
  /**
Use a better box model (opinionated).
*/
  *,
  ::before,
  ::after {
    box-sizing: border-box;
  }

  html {
    /* Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) */
    font-family:
      system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
      "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.15; /* 1. Correct the line height in all browsers. */
    -webkit-text-size-adjust: 100%; /* 2. Prevent adjustments of font size after orientation changes in iOS. */
    tab-size: 4; /* 3. Use a more readable tab size (opinionated). */
  }

  /*
Sections
========
*/
  body {
    margin: 0; /* Remove the margin in all browsers. */
  }

  /*
Text-level semantics
====================
*/
  /**
Add the correct font weight in Chrome and Safari.
*/
  b,
  strong {
    font-weight: bolder;
  }

  /**
1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
2. Correct the odd 'em' font sizing in all browsers.
*/
  code,
  kbd,
  samp,
  pre {
    font-family:
      ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo,
      monospace; /* 1 */
    font-size: 1em; /* 2 */
  }

  /**
Add the correct font size in all browsers.
*/
  small {
    font-size: 80%;
  }

  /**
Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
*/
  sub,
  sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }

  sub {
    bottom: -0.25em;
  }

  sup {
    top: -0.5em;
  }

  /*
Tabular data
============
*/
  /**
Correct table border color inheritance in Chrome and Safari. (https://issues.chromium.org/issues/40615503, https://bugs.webkit.org/show_bug.cgi?id=195016)
*/
  table {
    border-color: currentcolor;
  }

  /*
Forms
=====
*/
  /**
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
*/
  button,
  input,
  optgroup,
  select,
  textarea {
    font-family: inherit; /* 1 */
    font-size: 100%; /* 1 */
    line-height: 1.15; /* 1 */
    margin: 0; /* 2 */
  }

  /**
Correct the inability to style clickable types in iOS and Safari.
*/
  button,
  [type="button"],
  [type="reset"],
  [type="submit"] {
    -webkit-appearance: button;
    appearance: button;
  }

  /**
Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
*/
  legend {
    padding: 0;
  }

  /**
Add the correct vertical alignment in Chrome and Firefox.
*/
  progress {
    vertical-align: baseline;
  }

  /**
Correct the cursor style of increment and decrement buttons in Safari.
*/
  ::-webkit-inner-spin-button,
  ::-webkit-outer-spin-button {
    height: auto;
  }

  /**
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/
  [type="search"] {
    -webkit-appearance: textfield; /* 1 */
    appearance: textfield;
    outline-offset: -2px; /* 2 */
  }

  /**
Remove the inner padding in Chrome and Safari on macOS.
*/
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  /**
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to 'inherit' in Safari.
*/
  ::-webkit-file-upload-button {
    -webkit-appearance: button; /* 1 */
    appearance: button;
    font: inherit; /* 2 */
  }

  /*
Interactive
===========
*/
  /*
Add the correct display in Chrome and Safari.
*/
  summary {
    display: list-item;
  }

  svg {
    color-interpolation-filters: sRGB;
    rendering-intent: relative-colorimetric; /* помогает с точностью цветопередачи */
  }
}

/*
Site CSS
========
*/

@layer site {
  :root {
    --color-primary: #001524;
    --color-accent: #ff7d00;
    --color-bg-gray: #e8eaed;
    --color-border: #d8d8d8;
    --color-link: #0000ff;
    --color-pdf-bg: #ffecd1;
    --color-disabled: #6a7073;
    --whatsapp-color: #25d366;
    --whatsapp-accent-color: #128c7e;
    --whatsapp-text-color: #ffffff;
  }

  html {
    font-size: 16px;
  }

  body {
    margin: 0;
    padding: 0;
    font-family: "Onest", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    background-color: #fafbfc;
  }

  h1,
  h2,
  h3 {
    font-family: "Commissioner", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings:
      "slnt" 0,
      "FLAR" 0,
      "VOLM" 0;
    color: var(--color-primary);
  }

  h3 {
    margin-bottom: 0.5rem;
  }

  p {
    color: var(--color-primary);
    line-height: 1.4rem;
    margin-top: 0.5rem;
  }

  img {
    max-width: 100%;
  }

  span.inline-block {
    display: inline-block;
  }

  /* GRID */
  .segment {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .container {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;

    .row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 3rem;

      @media screen and (min-width: 576px) {
        gap: 6rem;
      }
    }
  }

  @media screen and (min-width: 576px) {
    .container {
      width: 540px;
      margin: auto;
    }
  }

  @media screen and (min-width: 768px) {
    .container {
      width: 720px;
    }
  }

  @media screen and (min-width: 992px) {
    .container {
      width: 960px;
    }
  }

  @media screen and (min-width: 1200px) {
    .container {
      width: 1140px;
    }
  }

  .section-divider {
    display: flex;
    margin: 2rem 0;
  }

  /* END GRID */
  img.icon {
    width: 1rem;
    margin: 0;
    display: flex;
  }

  .text-page {
    h1 {
      margin-bottom: 2rem;
    }

    h2 {
      margin-top: 2rem;
      margin-bottom: 1rem;
    }

    h3 {
      margin-top: 2rem;
      margin-bottom: 1rem;
    }

    .text-content {
      max-width: 50rem;
      justify-self: start;
    }
  }
}

@layer common {
}
