@font-face {
	font-family: 'Arkhip';
    src: url("../fonts/Arkhip/Arkhip.eot");
	src: local('☺'),   url("../fonts/Arkhip/Arkhip.woff") format("woff"),
    url("../fonts/Arkhip/Arkhip.ttf") format("truetype"),
    url("../fonts/Arkhip/Arkhip.eot?#iefix")format("embedded-opentype");
    font-weight: 400;
}
@font-face {
	font-family: 'Avalon';
    src: url("../fonts/Avalon/Avalon.eot");
	src: local('☺'),   url("../fonts/Avalon/Avalon.woff") format("woff"),
    url("../fonts/Avalon/Avalon.ttf") format("truetype"),
    url("../fonts/Avalon/Avalon.eot?#iefix")format("embedded-opentype");
    font-weight: 400;
}

@font-face {
	font-family: 'SF Pro';
    src: url("../fonts/SFProText-Light/SFProText-Light.eot");
	src: local('☺'),   url("../fonts/SFProText-Light/SFProText-Light.woff") format("woff"),
    url("../fonts/SFProText-Light/SFProText-Light.ttf") format("truetype"),
    url("../fonts/SFProText-Light/SFProText-Light.eot?#iefix")format("embedded-opentype");
    font-weight: 300;
}
@font-face {
	font-family: 'SF Pro';
    src: url("../fonts/SFProText-Regular/SFProText-Regular.eot");
	src: local('☺'),   url("../fonts/SFProText-Regular/SFProText-Regular.woff") format("woff"),
    url("../fonts/SFProText-Regular/SFProText-Regular.ttf") format("truetype"),
    url("../fonts/SFProText-Regular/SFProText-Regular.eot?#iefix")format("embedded-opentype");
    font-weight: 400;
}
@font-face {
	font-family: 'SF Pro';
    src: url("../fonts/SFProText-Bold/SFProText-Bold.eot");
	src: local('☺'),   url("../fonts/SFProText-Bold/SFProText-Bold.woff") format("woff"),
    url("../fonts/SFProText-Bold/SFProText-Bold.ttf") format("truetype"),
    url("../fonts/SFProText-Bold/SFProText-Bold.eot?#iefix")format("embedded-opentype");
    font-weight: 700;
}


/* CSS Reset */
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, p {
  margin: 0;
  padding: 0;
  border: 0;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
ol, ul {
  list-style: none;
}
/* End of CSS Reset */
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
html {
  height: 100%;
  width: 100%;
  overflow-x: hidden;

}
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary {
  display: block;
}
body {
  width: 100%;
  font-size: 18px;
  line-height: 1.3;
  font-family: 'SF Pro', sans-serif;
  font-weight: 400;
  color: #4e4e57;
  background-image: linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.4)), url(https://wallpapercave.com/wp/wp3252572.jpg);  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img {
  border: none;
}

.clearfix::after {
    display: block;
    content: "";
    clear: both;
}


/*==========PAGES STYLES==========*/
.container {
    width: 300px;
    margin: 0 auto;
    position: relative;
}
section {
    padding: 50px 0;
    min-height: 700px;
}
section.first {
    text-align: center;
}
section.first .bab {
    width: 300px;
    height: 150px;
    background: url('http://party.romanovn.ru/IMG_1165.PNG') top center no-repeat;
    background-size: contain;
    animation-name: bab;
    animation-duration: 3000ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    margin-bottom: 20px;
}
section.first .name {
    font-family: 'Avalon';
    color: #1d1d1f;
    font-size: 80px;
    margin-bottom: 40px;
}
section.first .invite {
    color: #38383e;
    font-size: 26px;
    font-weight: 300;
    letter-spacing: -2px;
}
section.first .party {
    font-family: 'Arkhip';
    color: #da0000;
    font-size: 38px;
    font-weight: 700;
}
section.first .party span {
    position: relative;
    display: inline-block;
}
section.first .party span .svechi {
    display: block;
    position: absolute;
    top: -5px;
    right: 5px;
    width: 16px;
    height: 11px;
    background: url('../images/svechi.png') top center no-repeat;
    background-size: contain;
    animation-name: sv;
    animation-duration: 1000ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}
section.first .date {
    margin-top: 50px;
    font-size: 30px;
    color: #da0000;
    letter-spacing: -2px;
}
section.first .infos {
    margin-top: 20px;
    color: #4e4e57;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: -1px;
}
.inf {
    margin-bottom: 35px;
}
.inf i {
    width: 40px;
    height: 40px;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    display: block;
    margin-bottom: 10px;
}
.inf i.taxi {
    background-image: url('../images/taxi-x2.png')
}
.inf i.babochka {
    background-image: url('../images/babochka-x2.png')
}
.inf i.para {
    background-image: url('../images/para-x2.png')
}
.inf i.telefon {
    background-image: url('../images/telefon-x2.png')
}
.inf p {
    letter-spacing: -1px;
}
.inf .h {
    color: #1d1d1f;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -2px;
}


@keyframes bab {
  0% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(0.98) rotate(-2deg);
  }
 50% {
    transform: scale(1) rotate(0deg);
  }
  75% {
    transform: scale(0.98) rotate(2deg);
  }
 99% {
    transform: scale(1) rotate(0deg);
  }
}
@keyframes sv {
  0% {
    transform: scale(1);
    filter: brightness(100%);
  }
 50% {
    transform: scale(0.99);
    filter: brightness(150%);
  }
 99% {
    transform: scale(1);
    filter: brightness(100%);
  }
}
