<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">

<head>
  <!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
  <o:AllowPNG/>
  <o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocumentSettings>
</xml><![endif]-->
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="IE=Edge">
  <meta name="x-apple-disable-message-reformatting">
  <title>Тема</title>
  <style type="text/css">
  html {
    -webkit-text-size-adjust: none;
    -ms-text-size-adjust: none;
  }

  @media only screen and (max-width: 560px) {
    .mob_100 {
      width: 100% !important;
      max-width: 100% !important;
    }
  }
  </style>
</head>

<body style="padding: 0px; margin: 0px;">
  <div align="center" style="line-height: normal; word-break: normal; -webkit-text-size-adjust: none; -ms-text-size-adjust: none;">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" style="line-height: normal;">
      <tr>
        <td align="center" bgcolor="#ffffff">
          <!-- preheader -->
          <!--[if !mso]><!-->
          <div style="font-size: 0px; line-height: 0px; color: transparent;">
            Клиент перенес запись.
          </div>
          <div style="font-size: 0px; line-height: 0px; color: transparent;">
            &nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;
          </div>
          <!--<![endif]-->
          <!-- preheader END -->
          <!-- main -->
          <!--[if (gte mso 9)|(IE)]>
<table width="900" border="0" cellspacing="0" cellpadding="0" style="width:900px;">
<tr><td width="900" style="width:900px;">
<![endif]-->
          <table width="100%" border="0" cellspacing="0" cellpadding="0" style="max-width: 900px; min-width: 300px;">
            <tr>
              <td align="center" bgcolor="#F0F0E5" style="background-color: #F0F0E5; background-image: url(images/gbg.png); background-repeat: repeat;">
                <!--[if (gte mso 9)|(IE)]>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td align="center" bgcolor="#F0F0E5">
<![endif]-->
                <!--[if (gte mso 9)|(IE)]>
  <table width="560" border="0" cellspacing="0" cellpadding="0" style="width:560px;">
  <tr><td width="560" style="width:560px;">
  <![endif]-->
                <table width="100%" border="0" cellspacing="0" cellpadding="0" style="max-width: 560px;">
                  <tr>
                    <td align="center" style="padding: 0 24px;">
                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td height="28" style="font-size: 0; line-height: 28px;"></td>
                        </tr>
                      </table>
                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td align="left" valign="middle" style="padding-right: 20px;">
                            <table width="130" border="0" cellspacing="0" cellpadding="0" style="width: 100%; max-width: 130px;">
                              <tr>
                                <td align="left">
                                  <a href="{{ org['company_link'] }}" target="_blank" style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 14px; color: #323855;">
                                    <img src="images/logo01.png" width="130" alt="Яндекс.Бизнес" border="0" style="display: block; width: 100%; max-width: 130px;" /></a>
                                </td>
                              </tr>
                            </table>
                          </td>
                          <td align="right" valign="middle">
                            <!-- button -->
                            <table width="116" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td align="center" valign="middle" height="30" style="border: 1px solid #403650; border-radius: 4px;">
                                  <!--[if gte mso 9]>
        <table border="0" cellspacing="0" cellpadding="0">
        <tr><td nowrap align="center" valign="middle" height="30" style="padding: 0 12px;">
        <![endif]-->
                                  <a href="{{ org['cabinet_link'] }}" target="_blank" style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 11px; line-height: 30px; color: #403650; white-space: nowrap; text-decoration: none; display: block; padding: 0 12px;">
                                    Личный кабинет
                                  </a>
                                  <!--[if gte mso 9]>
        </td></tr>
        </table>
        <![endif]-->
                                </td>
                              </tr>
                            </table>
                            <!-- button END -->
                          </td>
                        </tr>
                      </table>
                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td height="55" style="font-size: 0; line-height: 55px;"></td>
                        </tr>
                      </table>
                      <div style="line-height: 44px;">
                        <span style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 40px; line-height: 44px; color: #323855; font-weight: bold;">
                          Клиент перенес запись
                        </span>
                      </div>
                    </td>
                  </tr>
                </table>
                <!--[if (gte mso 9)|(IE)]>
  </td></tr>
  </table>
  <![endif]-->
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="32" style="font-size: 0; line-height: 32px;"></td>
                  </tr>
                </table>
                <!--[if (gte mso 9)|(IE)]>
  <table width="618" border="0" cellspacing="0" cellpadding="0" style="width:618px;">
  <tr><td width="618" style="width:618px;">
  <![endif]-->
                <table width="100%" border="0" cellspacing="0" cellpadding="0" style="max-width: 618px;">
                  <tr>
                    <td align="center" style="padding: 0 8px;">
                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td align="center" bgcolor="#ffffff" style="background-color: #ffffff; border-radius: 8px; padding: 0 16px;">
                            <!--[if (gte mso 9)|(IE)]>
      <table width="512" border="0" cellspacing="0" cellpadding="0" style="width:512px;">
      <tr><td width="512" style="width:512px;">
      <![endif]-->
                            <table width="100%" border="0" cellspacing="0" cellpadding="0" style="max-width: 512px;">
                              <tr>
                                <td align="center">
                                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td height="38" style="font-size: 0; line-height: 38px;"></td>
                                    </tr>
                                  </table>
                                  <!-- items -->
                                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td align="left" valign="top" style="font-size: 0px; line-height: 0px;">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td align="left" style="font-size: 14px; line-height: 16px;">
                                              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                  <td align="left" valign="top" width="30%" style="padding-right: 22px; padding-bottom: 8px;">
                                                    <div style="line-height: 24px;">
                                                      <span style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 17px; line-height: 24px; color: #323855; font-weight: bold;">
                                                        Имя клиента
                                                      </span>
                                                    </div>
                                                  </td>
                                                  <td align="left" valign="top" width="70%" style="padding-bottom: 8px;">
                                                    <div style="line-height: 24px;">
                                                      <span style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 17px; line-height: 24px; color: #323855;">
                                                        {{ client['name'] }}
                                                      </span>
                                                    </div>
                                                  </td>
                                                </tr>
                                                <tr>
                                                  <td align="left" valign="top" width="30%" style="padding-right: 22px; padding-bottom: 8px;">
                                                    <div style="line-height: 24px;">
                                                      <span style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 17px; line-height: 24px; color: #323855; font-weight: bold;">
                                                        Телефон
                                                      </span>
                                                    </div>
                                                  </td>
                                                  <td align="left" valign="top" width="70%" style="padding-bottom: 8px;">
                                                    <div style="line-height: 24px;">
                                                      <span style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 17px; line-height: 24px; color: #323855;">
                                                        {{ client['phone'] }}
                                                      </span>
                                                    </div>
                                                  </td>
                                                </tr>
                                                {% if order['comment'] %}
                                                <tr>
                                                  <td align="left" valign="top" width="30%" style="padding-right: 22px; padding-bottom: 40px;">
                                                    <div style="line-height: 24px;">
                                                      <span style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 17px; line-height: 24px; color: #323855; font-weight: bold;">
                                                        Комментарий клиента
                                                      </span>
                                                    </div>
                                                  </td>
                                                  <td align="left" valign="top" width="70%" style="padding-bottom: 40px;">
                                                    <div style="line-height: 24px;">
                                                      <span style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 17px; line-height: 24px; color: #323855;">
                                                        {{ order['comment'] }}
                                                      </span>
                                                    </div>
                                                  </td>
                                                </tr>
                                                {% endif %}
                                                <tr>
                                                  <td align="left" valign="top" width="30%" style="padding-right: 22px; padding-bottom: 8px;">
                                                    <div style="line-height: 24px;">
                                                      <span style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 17px; line-height: 24px; color: #323855; font-weight: bold; white-space: nowrap;">
                                                        Время
                                                      </span>
                                                    </div>
                                                  </td>
                                                  <td align="left" valign="top" width="70%" style="padding-bottom: 8px;">
                                                    <div style="line-height: 24px;">
                                                      <span style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 17px; line-height: 24px; color: #323855;">
                                                        {{ order['items'][0]['booking_timestamp'] }}
                                                      </span>
                                                    </div>
                                                  </td>
                                                </tr>
                                                {% if org['formatted_address'] %}
                                                <tr>
                                                  <td align="left" valign="top" width="30%" style="padding-right: 22px; padding-bottom: 8px;">
                                                    <div style="line-height: 24px;">
                                                      <span style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 17px; line-height: 24px; color: #323855; font-weight: bold; white-space: nowrap;">
                                                        Адрес
                                                      </span>
                                                    </div>
                                                  </td>
                                                  <td align="left" valign="top" width="70%" style="padding-bottom: 8px;">
                                                    <div style="line-height: 24px;">
                                                      <span style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 17px; line-height: 24px; color: #323855;">
                                                        {{ org['formatted_address'] }}
                                                      </span>
                                                    </div>
                                                  </td>
                                                </tr>
                                                {% endif %}
                                                <tr>
                                                  <td align="left" valign="top" width="30%" style="padding-right: 22px; padding-bottom: 8px;">
                                                    <div style="line-height: 24px;">
                                                      <span style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 17px; line-height: 24px; color: #323855; font-weight: bold; white-space: nowrap;">
                                                        Номер записи
                                                      </span>
                                                    </div>
                                                  </td>
                                                  <td align="left" valign="top" width="70%" style="padding-bottom: 8px;">
                                                    <div style="line-height: 24px;">
                                                      <span style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 17px; line-height: 24px; color: #323855;">
                                                        {{ order['booking_code'] }}
                                                      </span>
                                                    </div>
                                                  </td>
                                                </tr>
                                                <tr>
                                                  <td align="left" valign="top" width="30%" style="padding-right: 22px; padding-bottom: 8px;">
                                                    <div style="line-height: 24px;">
                                                      <span style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 17px; line-height: 24px; color: #323855; font-weight: bold; white-space: nowrap;">
                                                        Источник
                                                      </span>
                                                    </div>
                                                  </td>
                                                  <td align="left" valign="top" width="70%" style="padding-bottom: 8px;">
                                                    <div style="line-height: 24px;">
                                                      <span style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 17px; line-height: 24px; color: #323855;">
                                                        {{ order['source'] }}
                                                      </span>
                                                    </div>
                                                  </td>
                                                </tr>
                                              </table>
                                            </td>
                                          </tr>
                                        </table>
                                      </td>
                                    </tr>
                                  </table>
                                  <!-- items END -->
                                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td height="18" style="font-size: 0; line-height: 18px;"></td>
                                    </tr>
                                  </table>
                                  <!--[if (gte mso 9)|(IE)]>
    <table width="280" border="0" cellspacing="0" cellpadding="0">
    <tr><td>
    <![endif]-->
                                  {% if details_link %}
                                  <table width="100%" border="0" cellspacing="0" cellpadding="0" style="max-width: 280px;">
                                    <tr>
                                      <td align="left">
                                        <!-- button -->
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td align="center" valign="middle" bgcolor="#6951FF" height="48" style="background-color: #6951FF; border-radius: 8px;">
                                              <!--[if gte mso 9]>
        <table border="0" cellspacing="0" cellpadding="0">
        <tr><td nowrap align="center" valign="middle" height="48" style="padding: 0 20px;">
        <![endif]-->
                                              <a href="{{ details_link }}" target="_blank" style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 17px; line-height: 48px; color: #ffffff; white-space: nowrap; text-decoration: none; display: block; padding: 0 20px;">
                                                Посмотреть запись
                                              </a>
                                              <!--[if gte mso 9]>
        </td></tr>
        </table>
        <![endif]-->
                                            </td>
                                          </tr>
                                        </table>
                                        <!-- button END -->
                                      </td>
                                    </tr>
                                  </table>
                                  {% endif %}
                                  <!--[if (gte mso 9)|(IE)]>
    </td></tr>
    </table>
    <![endif]-->
                                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td height="40" style="font-size: 0; line-height: 40px;"></td>
                                    </tr>
                                  </table>
                                </td>
                              </tr>
                            </table>
                            <!--[if (gte mso 9)|(IE)]>
      </td></tr>
      </table>
      <![endif]-->
                          </td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                </table>
                <!--[if (gte mso 9)|(IE)]>
  </td></tr>
  </table>
  <![endif]-->
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="20" style="font-size: 0; line-height: 20px;"></td>
                  </tr>
                </table>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td align="center" style="background-image: url(images/bg01.png); background-position: center bottom; background-size: 900px auto; background-repeat: no-repeat;">
                      <!--[if (gte mso 9)|(IE)]>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td align="center" valign="bottom" width="150">
                                    <img src="images/rect01.png" width="150" height="317" alt="" border="0"
                                         style="display: block;"/>
                                </td>
                                <td align="center">
                        <![endif]-->
                      <!--[if !mso]><!-->
                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td align="center" style="padding: 0 8px;">
                            <!--<![endif]-->
                            <!--[if (gte mso 9)|(IE)]>
                            <table width="600" border="0" cellspacing="0" cellpadding="0" style="width:600px;">
                            <tr><td width="600" style="width:600px;">
                            <![endif]-->
                            <table width="100%" border="0" cellspacing="0" cellpadding="0" style="max-width: 600px;">
                              {% for item in order['items'] %}
                              <tr>
                                <td align="center" bgcolor="#ffffff" style="background-color: #ffffff; border-radius: 8px; padding: 0 16px;">
                                  <!--[if (gte mso 9)|(IE)]>
                                  <table width="512" border="0" cellspacing="0" cellpadding="0" style="width:512px;">
                                  <tr><td width="512" style="width:512px;">
                                  <![endif]-->
                                  <table width="100%" border="0" cellspacing="0" cellpadding="0" style="max-width: 512px;">
                                    <tr>
                                      <td align="center">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td height="34" style="font-size: 0; line-height: 34px;"></td>
                                          </tr>
                                        </table>
                                        <!-- items -->
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td align="left" valign="top" style="font-size: 0px; line-height: 0px;">
                                              <table width="100%" border="0" cellspacing="0" cellpadding="0" >
                                                <tr>
                                                  <td align="left" style="font-size: 14px; line-height: 16px;">
                                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                      <tr>
                                                        <td align="left" valign="top" width="30%" style="padding-right: 22px; padding-bottom: 8px;">
                                                          <div style="line-height: 24px;">
                                                            <span style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 17px; line-height: 24px; color: #323855; font-weight: bold; white-space: nowrap;">
                                                              Время
                                                            </span>
                                                          </div>
                                                        </td>
                                                        <td align="left" valign="top" width="70%" style="padding-bottom: 8px;">
                                                          <div style="line-height: 24px;">
                                                            <span style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 17px; line-height: 24px; color: #323855;">
                                                              {{ item['booking_timestamp'] }}
                                                            </span>
                                                          </div>
                                                        </td>
                                                      </tr>
                                                      <tr>
                                                        <td align="left" valign="top" width="30%" style="padding-right: 22px; padding-bottom: 8px;">
                                                          <div style="line-height: 24px;">
                                                            <span style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 17px; line-height: 24px; color: #323855; font-weight: bold; white-space: nowrap;">
                                                              Услуга
                                                            </span>
                                                          </div>
                                                        </td>
                                                        <td align="left" valign="top" width="70%" style="padding-bottom: 8px;">
                                                          <div style="line-height: 24px;">
                                                            <span style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 17px; line-height: 24px; color: #323855;">
                                                              {{ item['name'] }}
                                                            </span>
                                                          </div>
                                                        </td>
                                                      </tr>
                                                      <tr>
                                                        <td align="left" valign="top" width="30%" style="padding-right: 22px; padding-bottom: 8px;">
                                                          <div style="line-height: 24px;">
                                                            <span style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 17px; line-height: 24px; color: #323855; font-weight: bold; white-space: nowrap;">
                                                              Сотрудник
                                                            </span>
                                                          </div>
                                                        </td>
                                                        <td align="left" valign="top" width="70%" style="padding-bottom: 8px;">
                                                          <div style="line-height: 24px;">
                                                            <span style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 17px; line-height: 24px; color: #323855;">
                                                              {{ item['employee_name'] }}
                                                            </span>
                                                          </div>
                                                        </td>
                                                      </tr>
                                                      <tr>
                                                        <td align="left" valign="top" width="30%" style="padding-right: 22px; padding-bottom: 8px;">
                                                          <div style="line-height: 24px;">
                                                            <span style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 17px; line-height: 24px; color: #323855; font-weight: bold; white-space: nowrap;">
                                                              Цена
                                                            </span>
                                                          </div>
                                                        </td>
                                                        <td align="left" valign="top" width="70%" style="padding-bottom: 8px;">
                                                          <div style="line-height: 24px;">
                                                            <span style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 17px; line-height: 24px; color: #323855;">
                                                              {% if item['cost']['final_cost'] %}
                                                                {% if item['cost']['cost_before_discounts'] %}<span style="color: #989BAA; text-decoration: line-through;">{{ item['cost']['cost_before_discounts'] }}</span> {% endif %}{{ item['cost']['final_cost'] }}
                                                              {% else %}
                                                                {% if item['cost']['cost_before_discounts'] %}
                                                                  <span style="color: #989BAA; text-decoration: line-through;">от {{ item['cost']['cost_before_discounts'] }}</span> {{ item['cost']['minimal_cost'] }}
                                                                {% else %}
                                                                  от {{ item['cost']['minimal_cost'] }}
                                                                {% endif %}
                                                              {% endif %}
                                                            </span>
                                                          </div>
                                                        </td>
                                                      </tr>
                                                    </table>
                                                  </td>
                                                </tr>
                                              </table>
                                            </td>
                                          </tr>
                                        </table>
                                        <!-- items END -->
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td height="30" style="font-size: 0; line-height: 30px;"></td>
                                          </tr>
                                        </table>
                                      </td>
                                    </tr>
                                  </table>
                                  <!--[if (gte mso 9)|(IE)]>
                                  </td></tr>
                                  </table>
                                  <![endif]-->
                                </td>
                              </tr>
                              <tr><td height="20" style="line-height: 20px;font-size: 0;"><!--[if (gte mso 9)|(IE)]>
                                  <table width="100%" bgcolor="#323855" border="0" cellspacing="0" cellpadding="0">
                                  <tr><td height="20" bgcolor="#323855" style="line-height: 20px;font-size: 0;"></td></tr></table>
                                  <![endif]--></td></tr>
                              {% endfor %}
                              <tr>
                                <td align="center" bgcolor="#ffffff" style="background-color: #ffffff; border-radius: 8px; padding: 0 16px;">
                                  <!--[if (gte mso 9)|(IE)]>
                                  <table width="512" border="0" cellspacing="0" cellpadding="0" style="width:512px;">
                                  <tr><td width="512" style="width:512px;">
                                  <![endif]-->
                                  <table width="100%" border="0" cellspacing="0" cellpadding="0" style="max-width: 512px;">
                                    <tr>
                                      <td align="center">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td height="34" style="font-size: 0; line-height: 34px;"></td>
                                          </tr>
                                        </table>
                                        <!-- items -->
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td align="left" valign="top" style="font-size: 0px; line-height: 0px;">
                                              <table width="100%" border="0" cellspacing="0" cellpadding="0" >
                                                <tr>
                                                  <td align="left" style="font-size: 14px; line-height: 16px;">
                                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                      <tr>
                                                        <td align="left" valign="top" width="30%" style="padding-right: 22px;padding-top: 6px;">
                                                          <div style="line-height: 24px;">
                                                            <span style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 17px; line-height: 24px; color: #323855; font-weight: bold; white-space: nowrap;">
                                                              К оплате
                                                            </span>
                                                          </div>
                                                        </td>
                                                        <td align="left" valign="top" width="70%" style="font-size: 0">
                                                          <!--[if (gte mso 9)|(IE)]>
                                                          <table width="358" border="0" cellpadding="0" cellspacing="0">
                                                          <tr><td valign="middle" width="115" style="width:115px;">
                                                          <![endif]-->
                                                          <div class="mf-col" style="display: inline-block; vertical-align: middle;">
                                                            <table cellpadding="0" border="0" cellspacing="0" width="100%" style="max-width: 115px;">
                                                              <tr>
                                                                <td align="left" style="padding-bottom: 5px;">
                                                                  <div style="line-height: 36px;">
                                                                    <span style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 30px; line-height: 36px; color: #323855; font-weight: bold; white-space: nowrap;">
                                                                      {% if order['total_cost']['final_cost']%}
                                                                          {{ order['total_cost']['final_cost']}}
                                                                      {% else %}
                                                                          от {{ order['total_cost']['minimal_cost'] }}
                                                                      {% endif %}
                                                                    </span>
                                                                  </div>
                                                                </td>
                                                              </tr>
                                                            </table>
                                                          </div>
                                                          <!--[if (gte mso 9)|(IE)]>
                                                          </td>
                                                          {% if order['total_cost']['discount'] %}
                                                          <td valign="middle" width="243" style="width:243px;">
                                                          <![endif]-->
                                                          <div class="mf-col" style="display: inline-block; vertical-align: middle;">
                                                            <table cellpadding="0" border="0" cellspacing="0" width="100%" style="max-width: 243px;">
                                                              <tr>
                                                                <td align="left" style="padding-bottom: 5px; padding-left: 10px;">
                                                                  <table width="105" border="0" cellspacing="0" cellpadding="0">
                                                                    <tr>
                                                                      <td align="center" valign="middle" bgcolor="#DAFFF0" height="28" style="border-radius: 14px;">
                                                                        <!--[if gte mso 9]>
                                                                        <table border="0" cellspacing="0" cellpadding="0">
                                                                        <tr><td nowrap align="center" valign="middle" height="28" style="padding: 0 24px;">
                                                                        <![endif]-->
                                                                        <span style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 12px; line-height: 28px; color: #00E087; white-space: nowrap; padding: 0 10px;text-decoration: none;">
                                                                          скидка {{ order['total_cost']['discount']['value'] }}
                                                                        </span>
                                                                        <!--[if gte mso 9]>
                                                                        </td></tr>
                                                                        </table>
                                                                        <![endif]-->
                                                                      </td>
                                                                    </tr>
                                                                  </table>
                                                                </td>
                                                              </tr>
                                                            </table>
                                                          </div>
                                                          <!--[if (gte mso 9)|(IE)]>
                                                          </td>
                                                          {% endif %}
                                                          </tr></table>
                                                          <![endif]-->
                                                        </td>
                                                      </tr>
                                                    </table>
                                                  </td>
                                                </tr>
                                              </table>
                                            </td>
                                          </tr>
                                        </table>
                                        <!-- items END -->
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td height="30" style="font-size: 0; line-height: 30px;"></td>
                                          </tr>
                                        </table>
                                      </td>
                                    </tr>
                                  </table>
                                  <!--[if (gte mso 9)|(IE)]>
                                  </td></tr>
                                  </table>
                                  <![endif]-->
                                </td>
                              </tr>
                            </table>
                            <!--[if (gte mso 9)|(IE)]>
                            </td></tr>
                            </table>
                            <![endif]-->
                            <!--[if !mso]><!-->
                          </td>
                        </tr>
                      </table>
                      <!--<![endif]-->
                      <!--[if (gte mso 9)|(IE)]>
                        </td>
                        <td align="center" valign="bottom" width="150">
                            <img src="images/rect02.png" width="150" height="317" alt="" border="0"
                                 style="display: block;"/>
                        </td></tr>
                        </table>
                        <![endif]-->
                      <!--[if (gte mso 9)|(IE)]>
                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr><td align="center" bgcolor="#323855">
                      <![endif]-->
                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td align="center" style="padding: 0 8px;">
                            <!--[if (gte mso 9)|(IE)]>
                            <table width="544" border="0" cellspacing="0" cellpadding="0" style="width:544px;">
                            <tr><td width="544" style="width:544px;">
                            <![endif]-->
                            <table width="100%" border="0" cellspacing="0" cellpadding="0" style="max-width: 544px;">
                              <tr>
                                <td width="16">
                                  <div style="width: 16px;">&nbsp;</div>
                                </td>
                                <td align="left">
                                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td height="32" style="font-size: 0; line-height: 32px;"></td>
                                    </tr>
                                  </table>
                                  <div style="line-height: 16px;">
                                    <span style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 12px; line-height: 16px; color: #6F7484;">
                                      Ответы на&nbsp;вопросы вы&nbsp;можете найти в&nbsp;разделе <a href="https://yandex.ru/support/business-priority/index.html" target="_blank" style="color: #6F7484; text-decoration: underline;">помощь</a>, либо напишите нам в&nbsp;<a href="https://yandex.ru/chat/#/user/03260906-cb47-944e-45eb-5914572be194" target="_blank" style="color: #6F7484; text-decoration: underline; white-space: nowrap;">чат</a>.<br><br>
                                      Если не&nbsp;хотите получать наши письма, то&nbsp;нажмите <a href="{{ unsubscribe_link }}" target="_blank" style="color: #6F7484; text-decoration: underline;">здесь</a>, и&nbsp;мы&nbsp;больше не&nbsp;будем вас беспокоить.
                                    </span>
                                  </div>
                                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td height="31" style="font-size: 0; line-height: 31px;"></td>
                                    </tr>
                                  </table>
                                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td align="left" style="padding-right: 10px;">
                                        <table border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td align="left" valign="middle">
                                              <div style="line-height: 16px;">
                                                <span style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 12px; line-height: 16px; color: #6F7484;">
                                                  &copy;&nbsp;ООО&nbsp;Яндекс
                                                </span>
                                              </div>
                                            </td>
                                          </tr>
                                        </table>
                                      </td>
                                      <td align="right" valign="middle">
                                        <div style="line-height: 16px;">
                                          <span style="font-family: Helvetica, Arial, Tahoma, sans-serif; font-size: 12px; line-height: 16px; color: #6F7484;">
                                            0+
                                          </span>
                                        </div>
                                      </td>
                                    </tr>
                                  </table>
                                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td height="35" style="font-size: 0; line-height: 35px;"></td>
                                    </tr>
                                  </table>
                                </td>
                                <td width="16">
                                  <div style="width: 16px;">&nbsp;</div>
                                </td>
                              </tr>
                            </table>
                            <!--[if (gte mso 9)|(IE)]>
                            </td></tr>
                            </table>
                            <![endif]-->
                          </td>
                        </tr>
                      </table>
                      <!--[if (gte mso 9)|(IE)]>
                      </td></tr>
                      </table>
                      <![endif]-->
                    </td>
                  </tr>
                </table>
                <!--[if (gte mso 9)|(IE)]>
</td></tr>
</table>
<![endif]-->
              </td>
            </tr>
          </table>
          <!--[if (gte mso 9)|(IE)]>
</td></tr>
</table>
<![endif]-->
          <!-- main END -->
        </td>
      </tr>
    </table>
  </div>
</body>

</html>
