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;
  vertical-align: baseline;
}

html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

img, fieldset, a img {
  border: none;
}

input[type=text],
input[type=email],
input[type=tel],
textarea {
  -webkit-appearance: none;
}

input[type=submit],
button {
  cursor: pointer;
}
input[type=submit]::-moz-focus-inner,
button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

textarea {
  overflow: auto;
}

input, button {
  margin: 0;
  padding: 0;
  border: 0;
}

div, input, textarea, select, button,
h1, h2, h3, h4, h5, h6, a, span, a:focus {
  outline: none;
}

ul, ol {
  list-style-type: none;
}

table {
  border-spacing: 0;
  border-collapse: collapse;
  width: 100%;
}

html {
  box-sizing: border-box;
}

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

@font-face {
  font-family: "Cocogoose Classic";
  src: url("../fonts/Cocogoose-Classic-Regular.woff2") format("woff2"), url("../fonts/Cocogoose-Classic-Regular.woff") format("woff");
  font-weight: 400;
}
@font-face {
  font-family: "Cocogoose Classic";
  src: url("../fonts/Cocogoose-Classic-Bold.woff2") format("woff2"), url("../fonts/Cocogoose-Classic-Bold.woff") format("woff");
  font-weight: 700;
}
@font-face {
  font-family: "Cocogoose Classic";
  src: url("../fonts/Cocogoose-Classic-Black.woff2") format("woff2"), url("../fonts/Cocogoose-Classic-Black.woff") format("woff");
  font-weight: 900;
}
html {
  background: #F2DAB2;
}

body {
  position: relative;
  font-family: "Cocogoose Classic";
  font-size: 21px;
  color: #6A3331;
  line-height: 1.3125;
}
@media only screen and (max-width: 1240px) {
  body {
    font-size: 18px;
  }
}
body.no-scroll {
  overflow: hidden;
}

button {
  background: none;
  font-family: "Cocogoose Classic";
  color: #6A3331;
}

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

.page {
  min-height: 100vh;
  overflow: hidden;
}

.container {
  max-width: 1308px;
  margin: 0 auto;
  padding: 0 16px;
}
@media only screen and (max-width: 1240px) {
  .container {
    max-width: 796px;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: #F5E8D8;
  border-radius: 6px;
  font-size: 18px;
  transition: background 0.2s, box-shadow 0.2s;
}
.button:hover {
  background: #E1D1BD;
}
.button:hover svg {
  fill: #F5E8D8;
}
.button--stroke {
  background: none;
  box-shadow: 0 0 0 2px #F5E8D8 inset;
}
.button--stroke:hover {
  box-shadow: 0 0 0 2px #E1D1BD inset;
  background: none;
}
.button svg {
  position: relative;
  top: -2px;
  fill: #DAC5AA;
  transition: fill 0.2s;
}

.logo {
  position: relative;
  width: 176px;
  margin: 0 auto 40px;
}
@media only screen and (max-width: 767px) {
  .logo {
    width: 116px;
    margin-bottom: 30px;
  }
}
.logo__container {
  position: relative;
  z-index: 2;
}
.logo__light {
  position: absolute;
  top: -40px;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
}
.logo__light img {
  max-width: unset;
}

.header {
  position: relative;
  padding: 40px 0 20px;
  -webkit-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);
}
@media only screen and (max-width: 767px) {
  .header {
    padding-top: 30px;
  }
}
.header__main {
  position: relative;
  z-index: 2;
  text-align: center;
}
.header__title {
  margin-bottom: 16px;
  font-size: 36px;
  font-weight: 900;
  text-transform: uppercase;
}
@media only screen and (max-width: 767px) {
  .header__title {
    font-size: 24px;
  }
}
.header__text {
  margin-bottom: 20px;
}
.header__buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.header__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  text-decoration: underline;
  transition: text-decoration-color 0.2s;
}
.header__button:hover {
  text-decoration-color: transparent;
}
.header__button svg {
  position: relative;
  top: -2px;
  fill: #6A3331;
}
.header__decor img {
  position: absolute;
  top: -96px;
  max-width: unset;
}
@media only screen and (max-width: 767px) {
  .header__decor img {
    top: -18px;
    width: 320px;
  }
}
.header__decor img:first-child {
  right: calc(50% + 254px);
}
@media only screen and (max-width: 767px) {
  .header__decor img:first-child {
    right: calc(50% + 90px);
  }
}
.header__decor img:last-child {
  left: calc(50% + 210px);
}
@media only screen and (max-width: 767px) {
  .header__decor img:last-child {
    left: calc(50% + 40px);
  }
}

.editor {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
@media only screen and (max-width: 1240px) {
  .editor {
    flex-direction: column;
  }
}
.editor.uploaded .editor__container {
  margin-bottom: 52px;
}
.editor.uploaded .editor__preview {
  background-image: none !important;
}
.editor.uploaded .editor__buttons {
  top: calc(100% + 20px);
  left: -10px;
  display: flex;
  justify-content: space-between;
  width: calc(100% + 20px);
  -webkit-transform: none;
          transform: none;
}
@media only screen and (max-width: 767px) {
  .editor.uploaded .editor__buttons {
    top: calc(100% + 14px);
    left: -4px;
    width: calc(100% + 8px);
  }
}
.editor.uploaded .editor__buttons .button {
  height: 40px;
}
.editor.uploaded .editor__upload span:nth-child(2) {
  display: none;
}
.editor.uploaded .editor__upload span:nth-child(3) {
  display: block;
}
.editor.uploaded .editor__text {
  display: none;
}
.editor.uploaded .editor__clear {
  display: flex;
}
.editor__container {
  position: relative;
  flex: 0 0 748px;
  padding: 10px;
  background: #FFF5E9;
  border-radius: 16px;
}
@media only screen and (max-width: 1240px) {
  .editor__container {
    flex: auto;
    width: 100%;
  }
}
@media only screen and (max-width: 767px) {
  .editor__container {
    padding: 4px;
    border-radius: 8px;
  }
}
.editor__crop {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 100px;
  height: 100px;
  overflow: hidden;
}
.editor__result, .editor__facebook {
  position: absolute;
  top: 0;
  left: 0;
}
.editor__result li, .editor__facebook li {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.editor__result {
  width: 1200px;
  aspect-ratio: 198/155;
}
.editor__facebook {
  display: flex;
  justify-content: center;
  width: 1200px;
  height: 630px;
  background: #F2DAB2;
}
.editor__facebook ul {
  position: relative;
  width: 804px;
  height: 630px;
}
.editor__canvas {
  position: relative;
  display: block;
  background-color: #ECE8DE;
  aspect-ratio: 198/155;
}
.editor__preview {
  background-color: #ECE8DE;
}
.editor__preview.dragging {
  cursor: move;
}
.editor__preview,
.editor__preview li {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.editor__buttons {
  position: absolute;
  top: 50%;
  left: 50%;
  width: -webkit-max-content;
  width: max-content;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}
.editor__buttons .button {
  background: white;
}
@media only screen and (max-width: 767px) {
  .editor__buttons .button {
    padding: 10px;
  }
}
.editor__buttons .button:hover {
  background: #E1D1BD;
}
.editor__upload {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.editor__upload span:nth-child(2) {
  display: none;
}
.editor__upload input {
  position: absolute;
  bottom: 100%;
  right: 100%;
  opacity: 0;
}
.editor__text {
  margin-top: 20px;
  text-align: center;
}
@media only screen and (max-width: 767px) {
  .editor__text {
    background: #ECE8DE;
    box-shadow: 0 0 0 10px #ECE8DE;
  }
}
.editor__clear {
  display: none;
}
.editor__content {
  position: relative;
  flex: 1;
  background: #FFF5E9;
  border-radius: 16px;
}
@media only screen and (max-width: 1240px) {
  .editor__content {
    flex: auto;
    max-width: 100%;
  }
}
.editor__caption {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 50px;
  padding: 8px 20px 0;
  border-bottom: 1px solid #F2DAB2;
}
@media only screen and (max-width: 767px) {
  .editor__caption {
    height: 44px;
    padding: 2px 16px 0;
  }
}
.editor__caption svg {
  position: relative;
  top: -2px;
  fill: #AA917A;
}
.editor__gallery {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.editor__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 540px;
  padding: 16px 0 16px 20px;
  overflow: auto;
}
@media only screen and (max-width: 1240px) {
  .editor__list {
    flex-direction: row;
    height: auto;
    padding: 16px 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}
@media only screen and (max-width: 767px) {
  .editor__list {
    padding: 16px;
  }
}
.editor__list::-webkit-scrollbar {
  width: 24px;
}
@media only screen and (max-width: 1240px) {
  .editor__list::-webkit-scrollbar {
    display: none;
  }
}
.editor__list::-webkit-scrollbar-thumb {
  background: #F2DAB2;
  border: 10px solid #FFF5E9;
  border-radius: 12px;
}
.editor__list li {
  cursor: pointer;
}
@media only screen and (max-width: 1240px) {
  .editor__list li {
    flex: 0 0 254px;
    width: 254px;
  }
}
@media only screen and (max-width: 767px) {
  .editor__list li {
    flex: 0 0 164px;
    width: 164px;
  }
}
.editor__list li:hover img {
  border-color: #A89175;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}
.editor__list img {
  border: 1px solid #FFF6EB;
  border-radius: 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.editor__nav {
  position: absolute;
  left: calc(50% - 44px);
  bottom: -54px;
  display: flex;
  gap: 20px;
}
@media only screen and (max-width: 1240px) {
  .editor__nav {
    display: none;
  }
}
.editor__nav button {
  width: 34px;
  height: 34px;
}
.editor__nav button:last-child {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}
.editor__nav button:hover svg {
  fill: #AD5F20;
}
.editor__nav svg {
  width: 34px;
  height: 34px;
  fill: #6A3331;
  transition: fill 0.2s;
}

.share {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 748px;
  background: #F2DAB2;
  box-shadow: 0 0 0 20px #F2DAB2;
  border-radius: 4px;
}
@media only screen and (max-width: 767px) {
  .share {
    flex-direction: column;
    gap: 10px;
  }
}
@media only screen and (max-width: 767px) {
  .share button {
    width: 100%;
  }
}
.share button:last-child {
  margin-left: auto;
}
@media only screen and (max-width: 767px) {
  .share button:last-child {
    margin-top: 10px;
  }
}

.help {
  transition: opacity 0.2s;
}
.help.hidden {
  opacity: 0;
  pointer-events: none;
}
.help__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 30;
}
.help__message {
  display: none;
  position: fixed;
  top: 50vh;
  left: 50%;
  z-index: 50;
  width: calc(100% - 32px);
  max-width: 520px;
  padding: 24px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}
@media only screen and (max-width: 767px) {
  .help__message {
    padding: 16px;
  }
}
.help__message.visible {
  display: block;
}
.help__text {
  margin-bottom: 24px;
}
.help__buttons {
  display: flex;
  gap: 16px;
}
.help__buttons button {
  flex: 1;
}
@media only screen and (max-width: 767px) {
  .help__buttons button {
    flex: 1 1 auto;
  }
}

[data-step].active {
  position: relative;
  z-index: 40;
}

.footer {
  position: relative;
  height: 124px;
  margin-top:60px;
}
@media only screen and (max-width: 767px) {
  .footer {
    height: 76px;
  }
}
.footer__decor img {
  position: absolute;
  bottom: -184px;
  max-width: unset;
}
@media only screen and (max-width: 767px) {
  .footer__decor img {
    bottom: -80px;
  }
}
.footer__decor img:first-child {
  right: calc(50% - 144px);
}
@media only screen and (max-width: 767px) {
  .footer__decor img:first-child {
    width: 404px;
    right: calc(50% - 202px);
  }
}
.footer__decor img:last-child {
  left: calc(50% + 16px);
}
@media only screen and (max-width: 767px) {
  .footer__decor img:last-child {
    display: none;
  }
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  opacity: 0;
  transition: opacity 0.2s;
  overflow: auto;
  pointer-events: none;
}
.modal.visible {
  opacity: 1;
  pointer-events: auto;
}
.modal__container {
  width: 100%;
  max-width: 764px;
  margin: auto;
  padding: 24px;
  background: #F5E8D8;
  border: 16px solid #E1CEB6;
  border-radius: 16px;
  text-align: left;
}
@media only screen and (max-width: 767px) {
  .modal__container {
    padding: 16px;
    border-width: 4px;
  }
}
.modal__title {
  margin-bottom: 20px;
  font-size: 36px;
  color: #6A3331;
}
.modal__content p {
  margin-bottom: 20px;
}
.modal__close {
  background: #FFF6EB;
  float: right;
}
.modal__close:hover {
  background: #E1D1BD;
}
.footer__decor{
  z-index:1;
}