@import url("./variables.css");
@import url("./font.css");

* {
  margin: 0;
  padding: 0;
}

*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  width: 100%;
  color: var(--color-text);
  background-color: var(--color-bg);
}

a,
a:visited {
  text-decoration: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

input,
textarea,
button {
  font-family: "Roboto", sans-serif;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

button::before,
button::after {
  border: none;
  outline: none;
}

input::-webkit-input-placeholder {
  color: var(--color-text-secondary);
}

input::-moz-placeholder {
  color: var(--color-text-secondary);
}

input:-ms-input-placeholder {
  color: var(--color-text-secondary);
}

input::-ms-input-placeholder {
  color: var(--color-text-secondary);
}

input::placeholder {
  color: var(--color-text-secondary);
}

input:focus::-webkit-input-placeholder {
  opacity: 0;
  -webkit-transition: opacity var(--transition-normal);
  transition: opacity var(--transition-normal);
}

input:focus::-moz-placeholder {
  opacity: 0;
  -moz-transition: opacity var(--transition-normal);
  transition: opacity var(--transition-normal);
}

input:focus:-ms-input-placeholder {
  opacity: 0;
  -ms-transition: opacity var(--transition-normal);
  transition: opacity var(--transition-normal);
}

input:focus::-ms-input-placeholder {
  opacity: 0;
  -ms-transition: opacity var(--transition-normal);
  transition: opacity var(--transition-normal);
}

input:focus::placeholder {
  opacity: 0;
  -webkit-transition: opacity var(--transition-normal);
  -o-transition: opacity var(--transition-normal);
  transition: opacity var(--transition-normal);
}

.logo {
  width: 119px;
  height: 40px;
}

.link {
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  font-weight: 500;
  font-size: 16px;
  border-radius: 50px;
  padding: 12px 24px;
  color: var(--color-link);
  background: transparent;
}

.link_bg {
  border: 1px solid var(--color-primary);
  color: var(--color-link-hover);
  background: var(--color-primary);
}

.header {
  margin: 0 auto;
  padding: 24px 20px;
  max-width: 1180px;
  min-height: 88px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.header__links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 24px;
}

.header__links a {
  font-size: 20px;
}

.header__link {
  position: relative;
  padding-left: 52px;
  border: 1px solid var(--color-bg);
}

.header__link::before {
  content: "";
  position: absolute;
  left: 24px;
  width: 24px;
  height: 24px;
  background: url(../assets/img/icons/iconamoon_profile-circle-fill.svg) center
    no-repeat;
}

.wrapper {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin: 0 auto;
  padding: 80px 20px;
}

.container {
  max-width: 1180px;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 20px 1fr 20px 1fr 20px 1fr 20px 1fr 20px 1fr 20px 1fr
    20px 1fr 20px 1fr 20px 1fr 20px 1fr 20px 1fr;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.title {
  font-weight: 600;
  font-size: 32px;
  line-height: 130%;
}

.block {
  border-radius: 24px;
  padding: 60px;
  background: var(--color-bg-block);
}

.block__title {
  margin-bottom: 30px;
}

.block__heading {
  font-weight: 600;
  font-size: 24px;
  line-height: 130%;
  margin-bottom: 20px;
}

.block__text-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 60px;
}

.block__text {
  font-size: 16px;
  line-height: 120%;
}

.img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  border-radius: 24px;
}

.hero {
  padding: 0 20px 80px;
}

.hero__block_big {
  min-height: 428px;
  padding: 100px 60px;
  -ms-grid-column-span: 8;
  grid-column: span 8;
}

.hero__heading {
  font-weight: 700;
  font-size: 64px;
  line-height: 44%;
}

.hero__sub-heading {
  font-weight: 600;
  font-size: 32px;
  line-height: 120%;
  margin: 24px 0 63px;
}

.hero__text {
  font-size: 20px;
  line-height: 130%;
  margin-top: 40px;
}

.hero__img {
  max-width: 380px;
  -ms-grid-column-span: 4;
  grid-column: span 4;
}

.hero__block {
  min-height: 240px;
  -ms-grid-column-span: 4;
  grid-column: span 4;
}

.video {
  background-color: var(--color-bg-video);
}

.video__info {
  -ms-grid-column-span: 4;
  grid-column: span 4;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 40px;
}

.video__iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  -ms-grid-column-span: 8;
  grid-column: span 8;
}

.pet-card__img {
  -ms-grid-column-span: 7;
  grid-column: span 7;
  -ms-grid-row-span: 2;
  grid-row: span 2;
}

.pet-card__block {
  -ms-grid-column-span: 5;
  grid-column: span 5;
}

.medicine {
  background-color: var(--color-bg-medicine);
}

.medicine__block_big {
  -ms-grid-column-span: 8;
  grid-column: span 8;
}

.medicine__img_big {
  -ms-grid-column-span: 4;
  grid-column: span 4;
  -ms-grid-row-span: 2;
  grid-row: span 2;
}

.medicine__block {
  -ms-grid-column-span: 4;
  grid-column: span 4;
}

.donation__img {
  -ms-grid-column-span: 3;
  grid-column: span 3;
}

.donation__img_m {
  -ms-grid-column-span: 5;
  grid-column: span 5;
}

.donation__block {
  -ms-grid-column-span: 4;
  grid-column: span 4;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.donation__block_xl {
  -ms-grid-column-span: 7;
  grid-column: span 7;
}

.donation__block_m {
  -ms-grid-column-span: 5;
  grid-column: span 5;
}

.donation__links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 65px;
  margin-top: 30px;
}

.donation__link {
  border: 1px solid var(--color-link);
}

.partner__block {
  -ms-grid-column-span: 6;
  grid-column: span 6;
}

.partner__block:first-child {
  a {
    font-weight: 600;
    color: var(--color-text);
    -webkit-transition: color 0.2s ease-in;
    -o-transition: color 0.2s ease-in;
    transition: color 0.2s ease-in;
  }

  a:hover {
    color: var(--color-primary);
    -webkit-transition: color var(--transition-fast);
    -o-transition: color var(--transition-fast);
    transition: color var(--transition-fast);
  }
}

.partner__block:nth-of-type(2) {
  min-height: 460px;
}

.partner__img {
  -ms-grid-column-span: 6;
  grid-column: span 6;
  -ms-grid-row-span: 2;
  grid-row: span 2;
}

.partner__inputs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 8px;

  input {
    font-size: 14px;
    line-height: 140%;
    border-radius: 16px;
    padding: 16px 24px;
  }
}

.partner__btn-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
}

.partner__text {
  display: none;
  font-size: 12px;
  line-height: 120%;

  a {
    color: var(--color-link);
  }
}

.footer {
  width: 100%;
  color: var(--color-footer);
  background: var(--color-footer-bg);

  a {
    color: var(--color-footer);
    -webkit-transition: color var(--transition-fast);
    -o-transition: color var(--transition-fast);
    transition: color var(--transition-fast);
  }
}

.footer__info {
  -ms-grid-column-span: 5;
  grid-column: span 5;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 18px;

  p {
    max-width: 450px;
  }
}

.footer__contacts {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 40px;

  > a {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
  }
}

.socials {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
}

.footer__links {
  -ms-grid-column-span: 3;
  grid-column: span 3;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 20px;
}
.footer__links ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 20px;
}

.footer__requisites {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 16px;
  -ms-grid-column-span: 4;
  grid-column: span 4;
}
.footer__requisites ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 4px;
}
.footer__requisites li {
  font-size: 14px;
  line-height: 120%;
}

.partner__form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 16px;
}
.partner__form-status {
  min-width: 120px;
  display: inline-block;
  font-size: 14px;
  margin-left: 16px;
  -webkit-transition: color 0.3s;
  -o-transition: color 0.3s;
  transition: color 0.3s;
}
.partner__form-status_success {
  color: #2ecc40;
}
.partner__form-status_error {
  color: #e74c3c;
}

/* hover effects */
.link,
.donation__link,
button {
  -webkit-transition: color var(--transition-normal),
    background var(--transition-normal), border-color var(--transition-normal),
    -webkit-box-shadow var(--transition-normal),
    -webkit-transform var(--transition-fast);
  transition: color var(--transition-normal),
    background var(--transition-normal), border-color var(--transition-normal),
    -webkit-box-shadow var(--transition-normal),
    -webkit-transform var(--transition-fast);
  -o-transition: color var(--transition-normal),
    background var(--transition-normal), border-color var(--transition-normal),
    box-shadow var(--transition-normal), transform var(--transition-fast);
  transition: color var(--transition-normal),
    background var(--transition-normal), border-color var(--transition-normal),
    box-shadow var(--transition-normal), transform var(--transition-fast);
  transition: color var(--transition-normal),
    background var(--transition-normal), border-color var(--transition-normal),
    box-shadow var(--transition-normal), transform var(--transition-fast),
    -webkit-box-shadow var(--transition-normal),
    -webkit-transform var(--transition-fast);
}

.link:hover,
.donation__link:hover {
  color: var(--color-link-hover);
  background: var(--color-primary);
  -webkit-box-shadow: 0 4px 16px rgba(68, 86, 210, 0.12);
  box-shadow: 0 4px 16px rgba(68, 86, 210, 0.12);
}

.link_bg:hover,
button.link_bg:hover {
  background: #fff;
  color: var(--color-primary);
  -webkit-box-shadow: 0 4px 16px rgba(68, 86, 210, 0.18);
  box-shadow: 0 4px 16px rgba(68, 86, 210, 0.18);
}

.header__link:hover {
  color: var(--color-primary);
  background: var(--color-bg);
  border: 1px solid var(--color-primary);
}

button:hover {
  -webkit-filter: brightness(1.08);
  filter: brightness(1.08);
}

.footer a:hover {
  color: var(--color-text-secondary);
}

.socials a svg rect {
  fill: var(--color-svg-bg);
  -webkit-transition: fill var(--transition-normal);
  -o-transition: fill var(--transition-normal);
  transition: fill var(--transition-normal);
}

.socials a:hover svg rect {
  fill: var(--color-primary);
}

/*Form yookassa styles */
.yoomoney-payment-form {
  padding: 0 !important;
}
.yoomoney-payment-form .ym-input-icon-rub:after {
  top: 10px !important;
  right: 16px !important;
}
.ym-input-icon-rub {
  width: 100%;
  margin-right: 0 !important;
}
.ym-btn-pay {
  height: 43px !important;
  min-height: 43px !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  border: 1px solid var(--color-primary) !important;
  border-radius: 50px !important;
  background: var(--color-primary) !important;
  margin-right: 0 !important;
  padding: 16px 24px !important;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;

  -webkit-transition: color var(--transition-normal),
    background var(--transition-normal), border-color var(--transition-normal),
    -webkit-box-shadow var(--transition-normal),
    -webkit-transform var(--transition-fast) !important;

  transition: color var(--transition-normal),
    background var(--transition-normal), border-color var(--transition-normal),
    -webkit-box-shadow var(--transition-normal),
    -webkit-transform var(--transition-fast) !important;

  -o-transition: color var(--transition-normal),
    background var(--transition-normal), border-color var(--transition-normal),
    box-shadow var(--transition-normal), transform var(--transition-fast) !important;

  transition: color var(--transition-normal),
    background var(--transition-normal), border-color var(--transition-normal),
    box-shadow var(--transition-normal), transform var(--transition-fast) !important;

  transition: color var(--transition-normal),
    background var(--transition-normal), border-color var(--transition-normal),
    box-shadow var(--transition-normal), transform var(--transition-fast),
    -webkit-box-shadow var(--transition-normal),
    -webkit-transform var(--transition-fast) !important;
}
.ym-text-crop {
  text-align: center !important;
  margin-right: 0 !important;
}
.ym-payment-btn-block {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 30px;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
}
.ym-input {
  width: 100% !important;
  height: 52px !important;
  border-radius: 16px !important;
  padding-right: 32px !important;
}
.ym-btn-pay:hover {
  background: #fff !important;
  color: var(--color-primary) !important;
  -webkit-box-shadow: 0 4px 16px rgba(68, 86, 210, 0.18) !important;
  box-shadow: 0 4px 16px rgba(68, 86, 210, 0.18) !important;
}
