/*
Theme Name: Offshore Company Register
Theme URI: https://example.com/
Author: GSL
Author URI: https://example.com/
Description: Лёгкая адаптивная тема для сайтов по регистрации оффшорных компаний.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yourtaxadvice
*/

@font-face {
  font-family: "SF-UI-Display";
  src: url("assets/fonts/SF-UI-Display-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SF-UI-Display";
  src: url("assets/fonts/SF-UI-Display-Medium.woff2") format("woff2");
  font-weight: 600;
  font-style: medium;
  font-display: swap;
}
@font-face {
  font-family: "SF-UI-Display";
  src: url("assets/fonts/SF-UI-Display-Bold.woff2") format("woff2");
  font-weight: 800;
  font-style: bold;
  font-display: swap;
}

:root {
  --primary-color: #004178;
  --primary-color-dark: #002b50;
  --text-color: #222;
  --text-color-hide: #4e4d4d;
  --background-color: #eff3fd;
  --background-color-secondary: #dae2f4;
  --send-color: #fcb900;
  --error-color: #ff4d4f;
  --success-color: #00a86b;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 16px;
  font-weight: 400;
  vertical-align: baseline;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
.grecaptcha-badge {
  visibility: hidden;
}
body {
  line-height: 1.4;
  font-family: "SF-UI-Display", system-ui, sans-serif;
  color: #222;
  background: #fff;
  width: 100%;
}
input,
textarea {
  padding: 1em 1.5em;
  border-radius: 0.75em;
  box-sizing: border-box;
  background: var(--background-color);
  width: 100%;
  border: none;
  font-family: "SF-UI-Display";
  font-size: 1em;
}
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--background-color-secondary) !important;
  outline-offset: 0px !important;
}

input.invalid {
  border: 1px solid red;
}

textarea {
  resize: vertical;
  min-height: 180px;
}
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.container {
  max-width: 1440px;
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.section-title .container {
  display: flex;
  flex-direction: column;
  gap: 2.5em;
}
section.center .container {
  align-items: center;
}
section.center .container h2 {
  text-align: center;
}
section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 2.5em;
  box-sizing: border-box;
}
section.bg-2 {
  padding: 2.5em;
}
.text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1em;
}
ol,
ul {
  list-style: none;
}
ol.custom-list,
ul.custom-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  color: var(--text-color);
  gap: 0.25em;
}
ol.custom-list li,
ul.custom-list li {
  margin-left: 1.2em;
  position: relative;
}
ol.custom-list li::before,
ul.custom-list li::before {
  content: "";
  position: absolute;
  left: -1.2em;
  top: 0.5em;
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  background-color: var(--text-color-hide);
  border-radius: 50%;
}
.list-item--once {
  margin-left: 0 !important;
}
.list-item--once::before {
  content: none;
  display: none !important;
}

a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: var(--primary-color-dark);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0;
}
h1 {
  font-size: 4em;
  font-weight: 800;
  color: var(--text-color);
}
article {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 2.5em 1.5em;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}
article h1 {
  font-size: 2.5em;
  font-weight: 800;
  color: var(--text-color);
}
.hero h1 {
  font-size: 3.5em;
  color: #fff;
  font-weight: 800;
}

section h2 {
  width: 100%;
  font-size: 2.5em;
  color: var(--text-color);
  text-align: left;
}
h3 {
  font-size: 1.25em;
  font-weight: 600;
  color: var(--text-color);
}
p {
  margin-bottom: 1.1em;
}
button {
  width: fit-content;
  background: var(--primary-color);
  color: #fff;
  border: none;
  box-sizing: border-box;
  padding: 1em 2.5em;
  border-radius: 0.75em;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transform: scale(1);
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 0 rgba(0, 65, 120, 0);
}
button span {
  font-size: 1em;
  font-weight: 600;
}
button:hover {
  background: var(--primary-color-dark);
  transform: scale(1.03);
  box-shadow: 0 2px 15px 0px rgba(0, 65, 120, 0.5);
}
button.send {
  pointer-events: none;
  background-color: var(--send-color);
}
button.success {
  pointer-events: none;
  background-color: var(--success-color);
}
button.error {
  pointer-events: none;
  background-color: var(--error-color);
}

.grid-wrapper--4-col {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5em;
}
.grid-wrapper--3-col {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
}
.grid-wrapper--2-col {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5em;
}
main {
  display: flex;
  flex-direction: column;
  gap: 2.5em;
}
.slider-button {
  cursor: pointer;
  user-select: none;
}
.slider-next {
  transform: rotate(90deg);
}
.slider-prev {
  transform: rotate(-90deg);
}
.bg-2 {
  background-color: var(--background-color-secondary);
}

/* Footer */

footer {
  margin-top: 2.5em;
  background-color: var(--background-color);
  padding: 2em 0;
}
.footer__content {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}
.footer__row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5em;
}
.footer__row--menu {
  padding: 0 0.5em;
}
.footer__menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__menu > li {
  margin: 0;
}
.footer__menu .footer-link {
  white-space: nowrap;
}
.img-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  border-radius: 0.75em;
  overflow: hidden;
}
.img-wrapper img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

/* Hero section */

.hero {
  position: relative;
  background: #003a8652;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  background-size: cover;
  background-position: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  padding: 2.5em 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #00143068;
  z-index: 1;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero__subtitle {
  font-size: 1.5em;
  color: #fff;
  font-weight: 600;
}
.hero__title {
  max-width: 1000px;
}

.hero-banner {
  padding: 1.5em;
  max-width: 1000px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  border-radius: 0.75em;
}
.hero-banner__title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--primary-color);
}
.hero-banner__text {
  font-size: 1.25em;
  color: var(--primary-color);
}

/* Benefit card */

.bg-2 .benefit-card {
  background: white;
}

.benefit-card {
  background: var(--background-color);
  padding: 1.5em;
  border-radius: 0.75em;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  box-sizing: border-box;
}
.benefit-card--no-icon {
  padding: 2.5em 1.5em;
  justify-content: center;
}
.benefit-card__icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-slider .swiper {
  width: 100%;
  height: 100%;
}

.benefit-slider {
  display: flex;
  gap: 1em;
  align-items: center;
}

/* Swiper styles */

.swiper-pagination {
  position: relative !important;
  bottom: 0 !important;
  display: none;
}
.swiper-pagination-bullet {
  background-color: var(--background-color-secondary) !important;
  width: 0.5em !important;
  height: 0.5em !important;
  border-radius: 50% !important;
  opacity: 1 !important;
  transition: background-color 0.3s ease-in-out !important;
}
.swiper-pagination-bullet-active {
  background-color: var(--primary-color) !important;
}
.swiper-pagination {
  margin-top: 0.75em;
}
@media (max-width: 768px) {
  .slider-button {
    display: none;
  }
  .swiper-pagination {
    display: block;
  }
}

/* Steps section */

.step-item {
  position: relative;
  display: flex;
  gap: 0.75em;
  padding: 1em 0;
}
.step-item:first-child {
  padding-top: 0;
}
.step-item:last-child {
  padding-bottom: 0;
}
.step-rigth {
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.step-item::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 29px;
  width: 4px;
  height: calc(100% - 60px - 1em);
  background-color: var(--background-color-secondary);
}
.step-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 29px;
  width: 4px;
  height: 1em;
  background-color: var(--background-color-secondary);
}
.step-item:first-child:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 29px;
  width: 4px;
  height: calc(100% - 60px);
  background-color: var(--background-color-secondary);
}
.step-item:last-child:before {
  display: none;
}
.step-item:first-child:after {
  display: none;
}

/* Tariff card */

.tariff-card {
  padding: 1.5em 2em;
  background: var(--background-color);
  border-radius: 0.75em;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  box-sizing: border-box;
}
.tariff-card--rec {
  background: var(--background-color-secondary);
}
.tariff-card__types-wrapper {
  display: flex;
  justify-content: space-between;
}
.tariff-card__type {
  font-weight: 800;
  font-size: 1.25em;
  color: var(--primary-color);
}
.tariff-card__recommended {
  font-size: 0.875em;
  line-height: 1.5em;
  color: white;
  background: var(--primary-color);
  padding: 0.25em 0.75em;
  border-radius: 0.75em;
  font-weight: 600;
  box-sizing: border-box;
  height: fit-content;
}
.tariff-card__total-cost {
  font-size: 2.25em;
  font-weight: 800;
  line-height: 1;
}
.tariff-card__total-cost-text {
  font-size: 1.125em;
  color: var(--text-color-hide);
}
.tariff-card__top-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.tariff-card__total-cost-wrapper {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.25em;
}
.tariff-card__annual-renewal-fee {
  font-size: 1.125em;
  color: var(--text-color-hide);
}
.tariff-card ol.custom-list li,
.tariff-card ul.custom-list li {
  margin-left: 2.8em;
  position: relative;
  top: 0.25em;
}
.tariff-card ol.custom-list,
.tariff-card ul.custom-list {
  gap: 1.25em;
}
.tariff-card ol.custom-list li::before,
.tariff-card ul.custom-list li::before {
  content: "";
  position: absolute;
  left: -2.8em;
  top: -0.25em;
  display: inline-block;
  width: 2em;
  height: 2em;
  background: #fff;
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg width='17' height='13' viewBox='0 0 17 13' fill='none' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' clip-rule='evenodd' d='M13.8724 0.51037C14.4265 -0.058028 15.375 -0.104106 15.9907 0.407452C16.6065 0.91901 16.6564 1.79449 16.1022 2.36289L7.10224 11.5936C6.52733 12.1833 5.53433 12.2074 4.92664 11.6465L0.926644 7.95415C0.340858 7.41343 0.340858 6.53674 0.926644 5.99601C1.51243 5.45529 2.46218 5.45529 3.04796 5.99601L5.93001 8.65636L13.8724 0.51037Z' fill='%23004178'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1em 0.75em;
  box-sizing: border-box;
}
.tariff-card__list-wrapper {
  padding-top: 1.5em;
  border-top: 2px dashed #1a1a1a2e;
}

/* FAQ section */

.faq__section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.faq__elem {
  display: flex;
  justify-content: space-between;
  gap: 1.5em;
  padding: 1.5em 2em;
  background: var(--background-color);
  border-radius: 0.75em;
}
.faq__questions-wrapper {
  display: flex;
  flex-direction: column;
}
.faq__elem--active .faq__questions-wrapper {
  gap: 1em;
}
.faq__questions-unswer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-in-out;
  color: var(--text-color-hide);
  will-change: max-height;
}
.faq__arrow-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.faq__arrow-wrapper img {
  transform: rotate(180deg);
  transition: transform 0.2s ease-in-out;
  user-select: none;
}
.faq__elem--active .faq__arrow-wrapper img {
  transform: rotate(0deg);
}

/* Form */

.form-wrapper {
  width: 100%;
  max-width: 1024px;
}
.form-wrapper form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
}
.inputs-row {
  width: 100%;
  display: flex;
  gap: 1em;
}
.textarea-row {
  width: 100%;
}
.form-group {
  width: 100%;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.modal-overlay.open {
  opacity: 1;
}
.modal-body-wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  max-width: 425px;
  width: 100%;
  opacity: 0;
  transform: translate(-50%, -46%) scale(0.96);
  transition:
    opacity 0.3s,
    transform 0.3s;
  pointer-events: auto;
  box-sizing: border-box;
  padding: 2.5em 1.5em;
  height: 100%;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  align-items: center;
}
.modal-body-wrapper::-webkit-scrollbar {
  display: none;
}
.modal-body-wrapper.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.modal-body {
  background: #fff;
  padding: 1.5em;
  border-radius: 0.75em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.modal-body .feedback-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding-top: 1.5em;
}
.modal-body .inputs-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.modal-body button[type="submit"] {
  width: 100%;
}
.close-modal {
  position: relative;
  cursor: pointer;
  color: var(--primary-color);
  width: 1.5em;
  height: 1.5em;
}
.close-modal:after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background-color: var(--primary-color);
  transform: rotate(45deg);
}
.close-modal:before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background-color: var(--primary-color);
  transform: rotate(-45deg);
}
.modal-title {
  font-size: 1.5em;
  font-weight: 600;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-bottom: 1.5em;
  border-bottom: 1px solid var(--background-color-secondary);
}
.privacy {
  font-size: 0.875em;
  color: var(--text-color-hide);
}
.privacy a {
  font-size: 14px;
}

/* Document */
.document__title {
  margin-bottom: 1em;
}

@media (max-width: 1280px) {
  .grid-wrapper--4-col {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
  }
}
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3em;
  }
  section h2 {
    font-size: 2em;
  }
  .grid-wrapper--4-col {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5em;
  }
  .grid-wrapper--3-col {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5em;
  }
  section {
    padding: 0 2em;
  }
  section.bg-2 {
    padding: 2em;
  }
}
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.25em;
  }
  .hero-banner__title {
    font-size: 1.25em;
  }
  .hero-banner__text {
    font-size: 1em;
  }
  .hero__subtitle {
    font-size: 1.25em;
  }
  .grid-wrapper--4-col {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5em;
  }
  .grid-wrapper--3-col {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5em;
  }
  .grid-wrapper--2-col {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5em;
  }
  .inputs-row {
    flex-direction: column;
  }
  .form-wrapper button {
    width: 100%;
  }
}
@media (max-width: 425px) {
  button:hover {
    background: var(--primary-color);
    color: #fff;
    border: none;
    box-sizing: border-box;
    padding: 1em 2.5em;
    border-radius: 0.75em;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transform: scale(1);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 0 rgba(0, 65, 120, 0);
  }
  .footer__row {
    flex-direction: column;
    align-items: center;
  }
  .footer__row--menu {
    width: 100%;
  }
  .footer__menu {
    flex-direction: column;
    align-items: center;
  }
  .hero h1 {
    font-size: 2em;
  }
  section {
    padding: 0 0.75em;
  }
  section.bg-2 {
    padding: 2.5em 0.75em;
  }
  .tariff-card__total-cost-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  .modal-body-wrapper {
    padding: 1.5em 0.75em;
    display: block;
  }
  .modal-body {
    height: auto;
    width: 100%;
  }
}
