:root {
    font-size: 16px;
  }
  
/* header, footer, main {display: block;}  */

body {
padding: 0;
margin: 0;
/* min-height: 100%;  */
  font-size: 1rem;
  font-weight: 400;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

html,
body {
  height: 100%;
}

.regwrapper {
padding: 0;
margin: 0;
width: 100%;
height: 100%;
}

.BGdark {
    background: #00494f;
}	

.hdfcol {
    color: #fff;
}
  
.hdstr {
min-height: 6.25em;
height: max-content;
display: flex;
align-items: center;
}

.ftstr {
margin: auto 0;
}

footer {
  width: 100%;
  background: #00494f;
  height: auto; /* 3.125em; */
  padding: 1em;
  display: flex;
}

#minLogoTitleW {
    letter-spacing: 0.063em;
    font-size: 150%;
    color: #fff;
    cursor: pointer;
    text-decoration: none;	
}

#minLogoW {

    color: #fff;
    cursor: pointer;
    text-decoration: none;	
}

#minLogoW img {min-width: 45px; min-height: 49px; width: 100%; height: 100%;} /* {width: 100%; height: 100%;} */

* {box-sizing: border-box; }

#flex-obert {display: flex; height: 100%; width: 100%; flex-direction: row; align-content: center; justify-content: space-between; }
#flex-obert  > div:nth-of-type(2) {padding: 1.25em; align-self: center; width: max-content;}
#flex-obert  > div:nth-of-type(2) a {color: #fff; }
#flex-obert  > div:nth-of-type(2) p {
    margin: 0;
    line-height: 1rem;
 }

#flex-obert  > div:nth-of-type(2) p.middleParagraph {
	line-height: 2rem;
}

#flex-obert  > div:nth-of-type(1) {align-self: center; }  

#flex-container {display: flex; height: 100%; flex-wrap: nowrap; padding-left: 0.85em; gap: 0.6em;}
#flex-container > div {margin: 0; padding: 0; }
#flex-container > div:nth-of-type(1) {

                                      min-width: 45px; 
                                      min-height: 49px;
                                      width: 2.813em; 
                                      height: 3.063em; 
				      align-self: center; 
}

#flex-container > div:nth-of-type(2) {padding: 0 0 0 0.625em; align-self: center; width: auto;}




/* main {width: 100%; height: auto; padding: 1.5em; position: relative; min-height: calc(100vh - 6.25em - 3.125em); }  */
main {width: 100%; padding: 1.5em; }
.wrpmain {margin: 0 auto;}

main .wrpmain h1 {font-size: 150%; color: #00494f; text-align: center; padding-bottom: 2rem;}

main .wrpmain a {color: #00494f; text-decoration: underline;}

@media screen and (min-width: 1300px){
.wrpmain {width: min(900px, 70%); }
}


@media screen and (min-width: 1100px)  and (max-width: 1299px) {
.wrpmain {width: 85%; }
}

@media screen and (min-width: 903px) and (max-width: 1099px) {
.wrpmain {width: 90%; }
}

@media screen and (min-width: 547px) and (max-width: 902px) {
.wrpmain {width: 100%; }
#flex-obert {justify-content: flex-start; align-content: flex-start; flex-direction: column;  }
#flex-obert  > div:nth-of-type(1) {align-self: flex-start; width: auto;} 
#flex-container { padding-left: 1.25em;}
#flex-container > div:nth-of-type(2) {white-space: normal;}
/* .hdstr {height: 11em; } */
/* main {min-height: calc(100vh - 11em - 3.125em); }  */

}

@media screen and (max-width: 546px) {
.wrpmain {width: 100%; }
#flex-obert {justify-content: flex-start; align-content: flex-start; flex-direction: column;  }
#flex-obert  > div:nth-of-type(1) {align-self: flex-start; width: auto;} 
#flex-container { padding-left: 1.25em;}
#flex-container > div:nth-of-type(2) {white-space: normal;}
/*.hdstr {height: 11em; } */
/* main {min-height: calc(100vh - 11em - 3.125em); }  */
}


@media screen and (max-width: 25em) {
.wrpmain {width: 100%;}
/*.hdstr {height: 14em; } */
/* main {min-height: calc(100vh - 14em - 3.125em); } */
#flex-container > div:nth-of-type(1) {
    display: none;
}

#minLogoTitleW {
    font-size: 120%;
    padding-top: 0;
}

#block-webform-client-block-4 h2 {display: none;}

.hidpole {display: none;}



.fragmZel {color: #00494f; font-weight: bold;}


}	

main {
 flex: 1 0 auto;  

}

footer {
  flex: 0 0 auto;
}

header {
  flex: 0 0 auto;
}

main {
  display: flex;
  align-items: center;
  width: 100%;
  flex-direction: column;
  justify-content: flex-start;
}

main section {
    width: 100%;
}
/*
main h2 {
    color: #00494f;
    text-align: center;
}

main h1 {
    color: #00494f;
    font-size: 1.5em;
    text-align: center;
}
*/

main h1, main h2 {
    font-weight: 400;
    letter-spacing: 1px;
    color: #c41e3a /*ff867b*/;
    line-height: 3.7rem;
    font-size: 3.5rem;
    text-align: center;

}

main h3 {
    padding-top: 30px;

}


#edit-name, #edit-pass {
   width: 200px;
   background: rgba(0, 73, 79, 0.5);
}

.bot-space {
    padding-bottom: 20px;
}

/*
#edit-submit, .webform-button--next, .webform-button--previous, .webform-button--submit {
  background: #00494f;
  color: #fff;
  height: auto;
  width: auto;
  font-size: 100%;
  padding: 0.625em;
  cursor: pointer;
}
*/

#webform-submission-dannye-dlya-roszdravna-node-25-add-form #edit-actions-submit {
    display: flex;
    max-width: 100%;
    background-color:	rgb(0, 209, 178);
    position: relative;
    padding-right: 15px;
    padding-left: 15px;	
    align-self: stretch;	
	height: 72px;
	color: #fff;
	box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 3px 1px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size:16px;
    font-weight: 700;
border-color: rgb(0, 121, 132);
border-radius: 8px;
border-style: none; 
outline-color: rgb(0, 121, 132);
outline-style: none;
outline-width: 0px;
margin: auto;
  cursor: pointer;
}

#webform-submission-olymp-questions-node-22-add-form #edit-actions-wizard-next,
#webform-submission-olymp-questions-node-22-add-form #edit-actions-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 50%;
  background-color: rgb(0, 209, 178);
  padding: 0 15px;
  height: 72px;
  color: #fff;
  box-shadow: rgba(0, 0, 0, 0.3) 0 2px 3px 1px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
               "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  outline: none;
  margin: auto;
  cursor: pointer;
}



#webform-submission-olymp-questions-node-22-add-form #edit-actions-wizard-next {
    width: auto;
    height: 50px;
}

#webform-submission-dannye-dlya-roszdravna-node-25-add-form #edit-actions-submit:hover, #webform-submission-olymp-questions-node-22-add-form #edit-wizard-next:hover {

  background-color: rgb(0, 196, 167);
}

#webform-submission-dannye-dlya-roszdravna-node-25-add-form [type="checkbox"], #webform-submission-dannye-dlya-roszdravna-node-25-add-form [type="radio"], #webform-submission-olymp-questions-node-22-add-form [type="checkbox"], #webform-submission-olymp-questions-node-22-add-form [type="radio"]  {
    margin-right: 5px;
    margin-top: 5px;
}


#webform-submission-olymp-questions-node-22-add-form .form-item  {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: start;
    padding-bottom: 15px !important;
}


.zapolnit-auto {
  background: #ddd;
  color: #00494f;
  height: auto;
  width: auto;
  font-size: 100%;
  padding: 10px;
  cursor: pointer;
  border-radius: 25px;
  border: 2px solid #00494f;
  margin-bottom: 30px;
}

.layout-content a {
    color: #00494f;
}

.fieldset-legend {
   font-weight: bold;
   padding-bottom: 20px;
   display: block;
   max-width: 800px;
}


.wrap-radio {
   display: block;
   padding-bottom: 10px;
}

.wrap-radio div {
   display: inline;
}

.form-actions {
    margin-top: 20px;
}

.webform-progress {
    padding-top: 10px;
    padding-bottom: 10px;
}

.form-actions {

    margin: auto;
    width: max-content
}

.webform-confirmation__message p {
    text-align: center;
}

.center {
   text-align: center;
}

.cursive {
   font-style: italic;
}

.webform-button--draft {
    display: none;
}

.form-type-checkbox {
   display: flex;
   gap: 5px;
}

.form-item-add3 img {
   width: 100%;
   max-width: 600px;
   height: auto;
}

.form-item-add4 img {
   width: 100%;
   height: auto;

}

        .wrap_areas {
            display: flex;
            align-items: flex-start;
            justify-content: center;
            gap: 10px;
            margin-bottom: 10px;
        }

.wrap_areas textarea {
    width: 800px; 
    height: 150px;
}

.cust_text {
  padding: 6px 10px;
  font-size: 14px;
  margin-bottom: 15px;
  margin-top: 15px;
  width: 200px;
}

/*
#edit-pole-universitet {
  width: 800px;
}

.form-item-pole-universitet {
  width: 800px;
}
*/
.form-item-pole-universitet option, #webform-submission-dannye-dlya-sertifikata-node-15-add-form {
  width: 800px;    
}


#webform-submission-dannye-dlya-sertifikata-node-15-add-form #edit-container, #webform-submission-dannye-dlya-sertifikata-node-15-add-form #edit-submit {
/*    display: none;  */
    display: flex;
    flex-direction: column;
    align-items: center;  
    visibility: hidden;
}

.messages--status p {
  text-align: center;
}

.form-item-pole-universitet {
  text-align: center;
}

.wrap_button_univ, #block-olymp22-soderzhimoestranicy {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/*

.wrap-webform-content {
   width: min(900px, 70%);
}




@media screen and (max-width: 1200px) {
.wrap-webform-content {
   width: 80%;
}

}

*/


.webform-element-description, #edit-examples-nam, #edit-examples-name p, #edit-examples-name ol, #edit-examples-name li, #edit-gratitude-examples p, #edit-gratitude-examples ol, #edit-gratitude-examples li {
    color: #888;
    font-style: italic;
}

/*
.webform-element-description {
    text-align: left;
    align-items: start;
    padding-left: 7px;
    display: block;
}

*/
.messages--error {
    display: none;
}

#edit-examples-name, #edit-gratitude-examples {
    text-align: left;
}

#edit-examples-name p, #edit-gratitude-examples p {
    margin-top:2px;
}



#block-olymp22-menyuadmin-cert ul, #block-olymp22-menyuorganizatora ul {
    list-style-type: none;
    display: flex;
    flex-direction: row;
    padding: 0;
    margin: 0;
    justify-content: center;
    flex-wrap: wrap;
}

#block-olymp22-menyuadmin-cert .contextual-links, #block-olymp22-menyuorganizatora  .contextual-links {
    display: none;
}


#block-olymp22-menyuadmin-cert li:not(:last-child)::after, #block-olymp22-menyuorganizatora li:not(:last-child)::after {
    content: '|';
    margin: 0 10px; 
}

.color_warning {
    background: rgba(255, 0, 0, 0.3);
}


.color_field_ok {
    background: rgba(0, 73, 79, 0.5);

}

/* Сам ползунок */
input[type="range"] {
  accent-color: #00494f; /* работает в большинстве современных браузеров */
}

/* Chrome, Edge */
input[type="range"]::-webkit-slider-thumb {
  background: #00494f;
}

/* Firefox */
input[type="range"]::-moz-range-thumb {
  background: #00494f;
}

.range_templ {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.range_templ input[type="range"] {
    margin-left: 10px;
    margin-right: 10px;
}

.form-item-vyberite-uchastnika label, .form-item-vyberite-uchastnika {
    text-align: center;
    display: block;
    width: 400px;
}

.form-item-vyberite-universitet {
    width: 422.09px;
    text-align: center;
}

.form-item-vyberite-gorod {
    display: none;
}

.webform-submission-diplomy-node-19-add-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.diploma-views-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.diploma-views-wrapper > .view-wrapper {
  flex: 1 1 48%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .diploma-views-wrapper > .view-wrapper {
    flex: 1 1 100%;
  }
}

div[role="status"] {
  background-color: #e6ffed;
  border: 1px solid #4caf50;
  padding: 12px 16px;
  margin: 20px 0;
  border-radius: 6px;
  color: #2e7d32;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
  width: max-content;
}

div[role="status"]::before {
  content: "✔ ";
  color: #00494f;
  font-size: 1.2em;
  margin-right: 4px;
}

.messages__wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
}



div:has(#edit-nazvanie-universiteta) {
  text-align: center;
}

.add_center_code {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.add_width_restr {
    display: flex;
    justify-content: center;
}



ul.submenu {
  display: none;
  margin-left: 1em; /* отступ для вложенности */
}

li.has-children:hover > ul.submenu {
  display: block;
}

li.has-children > .menu-title {
  cursor: default;
  font-style: italic;
}

[data-drupal-selector="edit-tip-diploma"] .fieldset-wrapper .webform-options-display-one-column 
 {
    display: flex;
    flex-direction: row;
}

.webform-options-display-one-column .form-item-tip-diploma:not(:first-of-type) {
  padding-left: 10px;
}

[data-drupal-selector="edit-tip-diploma"] .fieldset-legend, [data-drupal-selector="edit-pol-uchastnika"] .fieldset-legend  {
    font-weight: normal;
}

#edit-tip-diploma-legend, #edit-pol-uchastnika--wrapper-legend {
    width: 100%;
    text-align: center;
}

.form-item-pol-uchastnika {
   display: inline;
}

#edit-pol-uchastnika .form-item-pol-uchastnika:not(:first-of-type) {
  padding-left: 10px;

}

.form-item-pol-uchastnika {
    width: max-content;
    display: inline;

}

#edit-pol-uchastnika legend {
    margin: auto;
}

#edit-pol-uchastnika {
    padding-bottom: 20px;
}

.js-form-item-blagodarim-items-0--item-, .js-form-item-blagodarim-items-1--item-, .js-form-item-blagodarim-items-2--item-, .js-form-item-blagodarim-items-3--item-, .js-form-item-blagodarim-items-4--item-, .js-form-item-blagodarim-items-5--item-, .js-form-item-blagodarim-items-6--item-, .js-form-item-blagodarim-items-7--item-, .js-form-item-blagodarim-items-8--item-, .js-form-item-blagodarim-items-9--item-, .js-form-item-blagodarim-items-10--item-, .js-form-item-blagodarim-items-11--item- {
  display: flex;
  align-items: flex-start; 
  gap: 0.5em; 
}

.js-form-item-blagodarim-items-0--item- .field-prefix, .js-form-item-blagodarim-items-1--item- .field-prefix, .js-form-item-blagodarim-items-2--item- .field-prefix, .js-form-item-blagodarim-items-3--item- .field-prefix, .js-form-item-blagodarim-items-4--item- .field-prefix, .js-form-item-blagodarim-items-5--item- .field-prefix, .js-form-item-blagodarim-items-6--item- .field-prefix, .js-form-item-blagodarim-items-7--item- .field-prefix, .js-form-item-blagodarim-items-8--item- .field-prefix, .js-form-item-blagodarim-items-9--item- .field-prefix, .js-form-item-blagodarim-items-10--item- .field-prefix, .js-form-item-blagodarim-items-11--item- .field-prefix {
  white-space: nowrap;
  color: rgb(136, 136, 136);
}

a.tabledrag-handle .handle {
    background: none;
}

.js-form-item-gratitude, #edit-gratitude-examples {
  display: none;
}

.form-item-nazvanie-universiteta .form-required::before,  .form-item-metka-gratitude .form-required::before {
  content: "*";
  color: red;
  margin-right: 0.25em;
}

#paragraph-id-14 > .rotor-group:nth-child(-n+2) {
  display: none !important;
}

/* Только для данного таймера */
#paragraph-id-14 {
  display: inline-block;        
  width: fit-content;           
  max-width: 100%;            
}

/* Скрыть кнопку "Предыдущая страница" Webform Wizard глобально */
input[data-drupal-selector="edit-wizard-prev"],
#edit-wizard-prev,
input.webform-button--previous {
  display: none !important;
}

/* Чёрный цвет и без курсива */
.webform-element-description.add_center_code {
  color: #000 !important;
  font-style: normal !important;
}

/* На всякий случай уберём курсив у вложенных <em>/<i> */
.webform-element-description.add_center_code em,
.webform-element-description.add_center_code i {
  font-style: normal !important;
}

#minLogoTitleW {
    padding: 13px 6px 2px 0px;
    font-family: Times/*Palatino*/;
    font-weight: bold;
    letter-spacing: 1px;
}

main {
    padding-bottom: 5em;
}

footer, footer h4 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

main {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.col-md-8 {
    -ms-flex: 0 0 33.33333333%;
    flex: 0 0 33.33333333%;
    max-width: 33.33333333%;
	
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;	
}

.address {
    padding-left: 10px;
    text-align: left;
    width: 100%;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

h4 {
    display: block;
    font-size: 15px;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: 700;
    unicode-bidi: isolate;
    margin-top: 0;
    margin-bottom: 0.5rem;
    /* display: block; */
    width: inherit;
}

footer h4 {
    padding-top: 10px;
    padding-bottom: 10px;

}

/*
.footer .social {
    background-color: #00494f;
    border: none !important;
    justify-content: left;
    margin-bottom: 1rem;
}
*/

.social {
    display: flex;
    text-decoration: none;
    align-items: center;
    padding: 0;
    margin: 0.1rem 0 0.1rem 0;
/*
    background-color: #fff;
    color: #007984;
*/
    letter-spacing: 0.02rem;
    border-radius: 0.5rem;
  /*  border: 1px solid #ccc; */
    overflow: hidden;
    width: 100%;
    justify-content: start;
    gap: 7px;
    margin-bottom: 20px;
}

.fontSmall {
    font-size: 12.8px;
    line-height: 1.2em;
    font-weight: 300;
}

.fontSmall  a {
    color: #aff;
    text-decoration: none;
}


@media (max-width: 700px) {

  main h1, main h2 {
     font-size: 32px;
     line-height: 120%;
  }


}


@media (max-width: 800px) {

  main h1, main h2 {
     font-size: 38px;
     line-height: 130%;
  }

  footer.hdfcol .row {
    flex-direction: column;      
    margin-left: 0;
    margin-right: 0;             
  }

  footer.hdfcol .col-md-8 {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    
  }

}

.errmess_red {
    color: #c41e3a;
}

* {
  font-style: normal !important;
}


/* Центрирование блока с кнопкой */
.cta-wrap {
  display: flex;
  justify-content: center;
  padding: 12px 0;            /*  внешний отступ */
}

/* Стили “кнопки”-ссылки */
.cta-btn {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 10px;
  background: linear-gradient(90deg, #18d7c3 0%, #0fcfb8 100%); /* бирюзовый градиент */
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(0,0,0,.15);
  transition: transform .05s ease, box-shadow .15s ease, filter .15s ease;
  white-space: nowrap;        /* чтобы текст не переносился */
}

/* Ховер/фокус/нажатие — как у кнопки */
.cta-btn:hover,
.cta-btn:focus {
  filter: brightness(1.03);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
  outline: none;
}
.cta-btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}

/*
.form-item-subjektrf {
    max-width: 450px;
    margin: 0 !important;
}


@media (min-width: 1100px) and (max-width: 1499.98px) {
  .form-item-subjektrf {
    max-width: none !important;  
    width: 100%;                  
    margin: 0;                   
  }


  .form-item-subjektrf .select2-container {
    width: 100% !important;
  }
}
*/