.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6 {
    margin-top: 0;
    margin-bottom: .5rem;
    line-height: 1.2;
}
h1,h2,h3,h4,h5,h6 {
    font-weight: 500;
}
h1 {
    font-size: calc(1.375rem + 1vw);
}
@media (min-width: 1200px) {
    h1 {
        font-size:2.5rem
    }
}
h2 {
    font-size: calc(1.325rem + .9vw)
}
@media (min-width: 1200px) {
    h2 {
        font-size:2rem
    }
}
h3 {
    font-size: calc(1.3rem + .6vw)
}
@media (min-width: 1200px) {
    h3 {
        font-size:1.75rem
    }
}
h4 {
    font-size: calc(1.275rem + .3vw)
}
@media (min-width: 1200px) {
    h4 {
        font-size:1.5rem
    }
}
h5 {
    font-size: 1.25rem
}
h6 {
    font-size: 1rem
}

.no-enter{
    white-space: nowrap;
}

main > section:not(:first-child){
    margin-top: 3rem;
}
#bottomCTA{
    display: none;
}
.page-title{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 8rem;
}
.page-title *{
    text-align: center;
    max-width: 32ch;
}

.generator-container{
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    margin-top: 3rem;
}
.generator-form, .result-container{
    padding: 3rem 2rem;
    background-color: rgba(240, 240, 240, .05);
    border-radius: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.generator-form h2{
    margin-bottom: 2rem;
}

.generator-form h5{
    margin-bottom: 1rem;
}


label{
    color: rgba(255,255,255, .3);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#page-link-container{
    display: flex;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0);
    color: var(--WHITE);
    border: 0;
    appearance: none;
    margin: 1rem 0 8px;
    line-height: 140%;
    outline: none;
    border-radius: 0;
}
#page-link-container input{
    margin: 0;
    padding: 0;
}

.url-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}
input[type="text"], input[type="tel"]{
    font-size: 16px;
}

.url-prefix {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255, .75);
    font-size: 16px;
    pointer-events: none;
    z-index: 2;
    padding-right: 5px;
}

.url-input {
    padding-left: 60px !important; /* Место для префикса */
    padding-bottom: 3px !important;
}

.utm-params{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-template-rows: auto;
    gap: 1rem;
    align-content: start;
}
.utm-params h5{
    grid-column: 1 / 3;
    margin-bottom: 0;
}
.utm-params h5:not(:first-child){
    margin-top: 1rem;
}
.utm-param{
    display: block;
    font-size: 14px;
}

.utm-param .url-prefix {
    position: static;
    transform: none;
    border-bottom: 1px solid rgb(128, 128, 128);
    padding: 4px 0px 3px;
    margin-bottom: 8px;
    line-height: 1.4;
}
.utm-url-input-wrapper{
    display: flex;
}
.utm-param .url-input{
    padding-left: 4px !important;
    padding-top: 4px !important;
}
label:has(input[type="text"]){
    transition: .15s ease-in-out;
}
label:has(input[type="text"]:focus){
    color: var(--WHITE);
}

.settings-container{
    width: 100%;
}
.preset-container, .settings-container{
    margin-top: 2rem;
}
.preset-list{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    gap: .5rem;
}
.preset-list input{
    display: none;
}
.preset-list label{
    background-color: rgba(255, 255, 255, .1);
    color: var(--WHITE);
    padding: .5rem 1rem;
    text-align: center;
    border-radius: .5rem;
    cursor: pointer;
    transition: background-color .15s;
    width: 100%;
}
.preset-list label:hover{
    background-color: rgba(255, 255, 255, .2);
}
.preset-list label:has(input:checked){
    background-color: var(--MAIN-RED);
}
.preset-list label:has(input:checked):hover{
    background-color: var(--SEC-RED);
}


label.switch input[type=checkbox]{
  height: 0;
  width: 0;
  visibility: hidden;
}

label.switch {
  cursor: pointer;
  text-indent: -9999px;
  width: 3rem;
  height: 1.5rem;
  background: grey;
  display: block;
  border-radius: .75rem;
  position: relative;
}

label.switch:after {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc( (100% - 10px) / 2 );
  height: calc(100% - 10px);
  background: #fff;
  border-radius: 1rem;
  transition: 0.3s;
}

label.switch:has(input:checked) {
  background: #2DC04F;
}

label.switch:has(input:checked):after {
  left: calc(100% - 5px);
  transform: translateX(-100%);
}

label.switch:active:after {
  width: .7rem;
}

.settings-list{
    display: flex;
    flex-direction: column;
}
.seetings-item{
    color: var(--WHITE);
    margin: .25rem 0;
    display: inline-flex;
    gap: .5rem;
    align-items: center;
}
.link-result{
    display: flex;
    flex-direction: column;
    gap: 3rem;
    justify-content: center;
    width: 100%;
}

.copy-link{
    display: grid;
    grid-template-columns: 2rem auto;
    align-items: center;
    justify-content: normal;
    color: var(--WHITE);
    cursor: pointer;
}
.copy-link .fa{
    padding: 12px 4px;
    border-bottom: 1px solid rgb(128, 128, 128);
    text-align: center;
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 8px;
}

#qrcode{
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 340px;
    padding: 1.25rem;
    border-radius: 1rem;
    background-color: white;
    margin-bottom: .5rem;
}
#qrcode canvas{
    width: 100%;
}
#download_qr, #download_qr_svg{
    width: 100%;
    padding: .75rem 1.5rem;
    background-color: var(--GREY);
    color: var(--WHITE);
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color .15s;
    margin-top: .5rem;
}
#download_qr:hover, #download_qr_svg:hover{
    background-color: var(--SEC-RED);
}
.qrcode i{
    margin-right: .5rem;
}
.result-container{
    display: flex;
}
.opacity-50{
    opacity: 0.5;
}
.small{
    font-size: .8rem;
}
.preset-container span{
    margin-top: .5rem;
    padding: 0 .5rem;
    display: block;
}

@media screen and (max-width: 950px) {
    .preset-list{
        grid-template-columns: repeat(2, 1fr);
    }
    .utm-params{
        grid-template-columns: 1fr;
    }
    .utm-params h5{
        grid-column: auto;
        margin-top: 1rem;
    }
    .generator-form {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 620px){
    .result-container{
        flex-direction: column;
        gap: 2rem;
    }
    .mobile-reverse{
        flex-direction: column-reverse;
    }
    #qrcode{
        max-width: 100%;
    }
    .page-title{
        margin-top: 4rem;
    }
    .result-container{
        padding: 1.5rem 1rem;
    }
}
.qr-gen-container{
    align-items: center;
}
.qr-gen-container .url-input {
    padding-left: 1px !important;
}

.info-container{
    max-width: 800px;
}
.info-container{
    h2:not(:first-child){
        margin-top: 3rem;
    }
    h2, h3{
        margin-bottom: 1rem;
        font-weight: 400;
    }
    p, li{
        line-height: 1.6;
    }
    h3{
        opacity: .9;
    }
    p, li{
        opacity: .8;
    }
}
.info-container h3{
    margin-top: 2rem;
}